Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

virtual void OglGui::TitledWindow::OnMaximizeButton (  )  [inline, virtual]

Definition at line 156 of file TitledWindow.h.

References OglGui::ALLSIDES, OglGui::OglWindow::ConnectTo(), OglGui::SizableWindow::GetAllowMove(), OglGui::OglWindow::GetDimensions(), OglGui::Window::GetParent(), HandleTargetVisibility(), mMaxConnection, mMaximizeButton, OglGui::OglWindow::mOglWnd, mOldAllowMove, mOldH, mOldW, mOldX, mOldY, OglGui::OglWindow::OnLayoutChange(), OglGui::Window::RepositionViewports(), OglGui::SizableWindow::SetAllowMove(), OglGui::OglWindow::SetDimensions(), OglGui::StaticText::SetText(), and OglGui::TPARENT.

Referenced by OglGui::TitledWindow::TitleBarButtonListener::ButtonSelectionEvent().

00157     {
00158         int pX, pY, pW, pH;
00159         this->GetParent()->GetDimensions(pX,pY,pW,pH);
00160         if (mMaxConnection != 0)
00161         {                
00162             delete mMaxConnection;
00163             mMaxConnection = 0;
00164 
00165             SetAllowMove(mOldAllowMove);
00166             SetDimensions(mOldX, mOldY, mOldW, mOldH);
00167             this->GetParent()->OnLayoutChange();
00168         }
00169         else 
00170         {
00171             mOldAllowMove = GetAllowMove();
00172             SetAllowMove(false);
00173             GetDimensions(mOldX, mOldY, mOldW, mOldH);
00174             SetDimensions(0, 0, pW, pH);
00175             mMaxConnection = ConnectTo(this->GetParent(), ALLSIDES | TPARENT);
00176         }
00177         mMaximizeButton->SetText(mMaxConnection ? "[]]" : "[]");
00178         HandleTargetVisibility(mOglWnd->parent, mOglWnd, true, !mMaxConnection);            
00179         this->GetParent()->RepositionViewports();
00180     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:08:43 2010 for ImpalaSrc by  doxygen 1.5.1