BOOL LLMultiFloater::postBuild() { mCloseSignal.connect(boost::bind(&LLMultiFloater::closeAllFloaters, this)); // remember any original xml minimum size getResizeLimits(&mOrigMinWidth, &mOrigMinHeight); if (mTabContainer) { return TRUE; } mTabContainer = getChild<LLTabContainer>("Preview Tabs"); setCanResize(mResizable); return TRUE; }
LLMultiPreview::LLMultiPreview() : LLMultiFloater(LLSD()) { // start with a rect in the top-left corner ; will get resized LLRect rect; rect.setLeftTopAndSize(0, gViewerWindow->getWindowHeightScaled(), 200, 400); setRect(rect); LLFloater* last_floater = LLFloaterReg::getLastFloaterInGroup("preview"); if (last_floater) { stackWith(*last_floater); } setTitle(LLTrans::getString("MultiPreviewTitle")); buildTabContainer(); setCanResize(TRUE); mAutoResize = FALSE; }
LLMultiPreview::LLMultiPreview() : LLMultiFloater(LLSD()) { // *TODO: There should be a .xml file for this const LLRect& nextrect = LLFloaterReg::getFloaterRect("preview"); // place where the next preview should show up if (nextrect.getWidth() > 0) { setRect(nextrect); } else { // start with a rect in the top-left corner ; will get resized LLRect rect; rect.setLeftTopAndSize(0, gViewerWindow->getWindowHeightScaled(), 200, 200); setRect(rect); } setTitle(LLTrans::getString("MultiPreviewTitle")); buildTabContainer(); setCanResize(TRUE); }
void FloaterAO::onClickLess() { LLRect fullSize=getRect(); LLRect smallSize=mSmallInterfacePanel->getRect(); smallSize.setLeftTopAndSize(0,0,smallSize.getWidth(),smallSize.getHeight()+getHeaderHeight()); gSavedPerAccountSettings.setRect("floater_rect_animation_overrider_full",fullSize); mMore=FALSE; mSmallInterfacePanel->setVisible(TRUE); mMainInterfacePanel->setVisible(FALSE); setCanResize(FALSE); gSavedPerAccountSettings.setBOOL("UseFullAOInterface",FALSE); reshape(getRect().getWidth(),smallSize.getHeight()); // save current size and position gSavedPerAccountSettings.setRect("floater_rect_animation_overrider_full",fullSize); }
void FloaterAO::onClickMore() { LLRect fullSize=gSavedPerAccountSettings.getRect("floater_rect_animation_overrider_full"); LLRect smallSize=getRect(); if(fullSize.getHeight()<getMinHeight()) fullSize.setOriginAndSize(fullSize.mLeft,fullSize.mBottom,fullSize.getWidth(),getRect().getHeight()); if(fullSize.getWidth()<getMinWidth()) fullSize.setOriginAndSize(fullSize.mLeft,fullSize.mBottom,getRect().getWidth(),fullSize.getHeight()); mMore=TRUE; mSmallInterfacePanel->setVisible(FALSE); mMainInterfacePanel->setVisible(TRUE); setCanResize(TRUE); gSavedPerAccountSettings.setBOOL("UseFullAOInterface",TRUE); reshape(getRect().getWidth(),fullSize.getHeight()); }
LLMultiPreview::LLMultiPreview(const LLRect& rect) : LLMultiFloater(std::string("Preview"), rect) { setCanResize(TRUE); }
LLMultiPreview::LLMultiPreview(const LLRect& rect) : LLMultiFloater(LLTrans::getString("MultiPreviewTitle"), rect) { setCanResize(TRUE); }