1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Introjucer: minor refactoring + enabled clang c++0x option.

This commit is contained in:
jules 2012-02-04 17:33:34 +00:00
parent a6fe278654
commit f7d3521e06
15 changed files with 72 additions and 60 deletions

View file

@ -76,8 +76,7 @@ void ProjectContentComponent::setProject (Project* newProject)
if (project != nullptr)
{
addAndMakeVisible (projectTree = new TreeView());
projectTree->setComponentID ("tree");
addChildAndSetID (projectTree = new TreeView(), "tree");
projectTree->setRootItemVisible (true);
projectTree->setMultiSelectEnabled (true);
projectTree->setDefaultOpenness (true);
@ -93,9 +92,9 @@ void ProjectContentComponent::setProject (Project* newProject)
projectTree->setBounds ("0, 0, left + " + lastTreeWidth + ", parent.height");
addAndMakeVisible (resizerBar = new ResizableEdgeComponent (projectTree, &treeSizeConstrainer,
ResizableEdgeComponent::rightEdge));
resizerBar->setComponentID ("resizer");
addChildAndSetID (resizerBar = new ResizableEdgeComponent (projectTree, &treeSizeConstrainer, ResizableEdgeComponent::rightEdge),
"resizer");
resizerBar->setBounds ("tree.right, 0, tree.right + 4, parent.height");
project->addChangeListener (this);