mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-06 04:00:08 +00:00
Introjucer: items which are not included in the project are now crossed-out.
This commit is contained in:
parent
2ae82c4db4
commit
80dc4c57b0
14 changed files with 93 additions and 116 deletions
|
|
@ -43,12 +43,8 @@ void TreePanelBase::setRoot (JucerTreeViewBase* root)
|
|||
tree.restoreOpennessState (*treeOpenness, true);
|
||||
|
||||
for (int i = tree.getNumSelectedItems(); --i >= 0;)
|
||||
{
|
||||
JucerTreeViewBase* item = dynamic_cast<JucerTreeViewBase*> (tree.getSelectedItem (i));
|
||||
|
||||
if (item != nullptr)
|
||||
if (JucerTreeViewBase* item = dynamic_cast<JucerTreeViewBase*> (tree.getSelectedItem (i)))
|
||||
item->cancelDelayedSelectionTimer();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -229,18 +225,10 @@ void JucerTreeViewBase::handlePopupMenuResult (int)
|
|||
|
||||
ProjectContentComponent* JucerTreeViewBase::getProjectContentComponent() const
|
||||
{
|
||||
Component* c = getOwnerView();
|
||||
|
||||
while (c != nullptr)
|
||||
{
|
||||
ProjectContentComponent* pcc = dynamic_cast <ProjectContentComponent*> (c);
|
||||
|
||||
if (pcc != nullptr)
|
||||
for (Component* c = getOwnerView(); c != nullptr; c = c->getParentComponent())
|
||||
if (ProjectContentComponent* pcc = dynamic_cast <ProjectContentComponent*> (c))
|
||||
return pcc;
|
||||
|
||||
c = c->getParentComponent();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue