added code for import, compensated for changes in the llapr library
This commit is contained in:
@@ -2182,8 +2182,34 @@ void LLFloaterView::closeAllChildren(bool app_quitting)
|
||||
floaterp->close(app_quitting);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// <edit>
|
||||
void LLFloaterView::minimizeAllChildren()
|
||||
{
|
||||
// iterate over a copy of the list, because closing windows will destroy
|
||||
// some windows on the list.
|
||||
child_list_t child_list = *(getChildList());
|
||||
|
||||
for (child_list_const_iter_t it = child_list.begin(); it != child_list.end(); ++it)
|
||||
{
|
||||
LLView* viewp = *it;
|
||||
child_list_const_iter_t exists = std::find(getChildList()->begin(), getChildList()->end(), viewp);
|
||||
if (exists == getChildList()->end())
|
||||
{
|
||||
// this floater has already been removed
|
||||
continue;
|
||||
}
|
||||
|
||||
LLFloater* floaterp = (LLFloater*)viewp;
|
||||
|
||||
if (!floaterp->isDead())
|
||||
{
|
||||
floaterp->setMinimized(TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
// </edit>
|
||||
|
||||
BOOL LLFloaterView::allChildrenClosed()
|
||||
{
|
||||
|
||||
@@ -368,6 +368,9 @@ public:
|
||||
// attempt to close all floaters
|
||||
void closeAllChildren(bool app_quitting);
|
||||
BOOL allChildrenClosed();
|
||||
// <edit>
|
||||
void minimizeAllChildren();
|
||||
// </edit>
|
||||
|
||||
LLFloater* getFrontmost();
|
||||
LLFloater* getBackmost();
|
||||
|
||||
Reference in New Issue
Block a user