added code for import, compensated for changes in the llapr library

This commit is contained in:
Hazim Gazov
2010-05-03 04:09:35 -03:00
parent 95c4ec1bdd
commit 4319caf5c9
3 changed files with 226 additions and 10 deletions

View File

@@ -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()
{

View File

@@ -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();