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

void Impala::Application::VideoExcel::VideoExcelNode::Init ( int  w,
int  h,
strconst  txt,
int  options 
) [inline, private]

Definition at line 189 of file VideoExcelNode.h.

References DropDown(), mClosedHeight, mHeaderHeight, mHeaderText, mHeaderWindow, mIsDropped, mLinePattern, mPlusMinText, OglGui::OglWindow::mRunTimeType, mShowLines, mSpacing, OglGui::Window::SetWindowListener(), and OglGui::Window::Window().

00190     {
00191         int     hdrX = 2;
00192         int     hdrTxtX = 4;
00193         bool    plMin = (options & 1) ? true : false;
00194 
00195         mRunTimeType |= 8;
00196         mHeaderHeight = 16;
00197         mPlusMinText = 0;
00198         mIsDropped = false;
00199         mShowLines = (options & 2) ? true : false;
00200         mLinePattern = (short) oglDot;
00201         mRunTimeType |= 8;
00202         mSpacing = 2;
00203         mClosedHeight = h; // Allowing for partially opened in closed state
00204 
00205         mHeaderWindow = new Window(this, hdrX, 0, w-hdrX, mHeaderHeight);
00206         mHeaderWindow->SetWindowListener(this);
00207 
00208         if (plMin)
00209         {
00210             mPlusMinText = new StaticText(mHeaderWindow, 0, 3, 13, 13, "+");
00211             mPlusMinText->SetBorderType(BEV_LINE);
00212             mPlusMinText->SetDoStateFeedback(true);
00213             mPlusMinText->SetWindowListener(this);
00214             hdrTxtX = 14;
00215         }
00216 
00217         mHeaderText = new StaticText(mHeaderWindow, hdrTxtX, 0, w-hdrTxtX-2,
00218                                      16, txt);
00219         mHeaderText->SetAlign(oglLeftAlign, oglBottomAlign);
00220         mHeaderText->SetNoMouseInput(true);
00221         mHeaderText->SetWindowListener(this);
00222 
00223         AddWindow(mHeaderWindow, 0);
00224         DropDown(false);
00225     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:52:40 2010 for ImpalaSrc by  doxygen 1.5.1