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

void Impala::Visualization::ShowNextFromControl::Init ( int  w,
int  h,
int  nrShow,
int  m 
) [inline, private]

Definition at line 123 of file ShowNextFromControl.h.

References mListener, mMax, mMinButton, mNrToShow, mPlusButton, mShowFromText, mShowNrTextEdit, mStartVal, mTotalText, mValTextEdit, OglGui::Window::ScaleChildren(), OglGui::StaticText::SetAlign(), OglGui::Window::SetAllowChildScaling(), OglGui::Button::SetButtonListener(), OglGui::OglWindow::SetDimensions(), OglGui::Window::SetWindowListener(), OglGui::TextEdit::SingleLine(), UpdateShowNrText(), and UpdateStartValText().

00124     {
00125         int x  = m;
00126         int mH = h - 2 * m;
00127 
00128         mListener = 0;
00129         mMax = 0;
00130         mStartVal = 0;
00131         mNrToShow = nrShow;
00132 
00133         mTotalText = new StaticText(this,x,m,110,mH,"Total:");
00134         mTotalText->SetAlign(oglLeftAlign);
00135         x += 112;
00136 
00137         mShowNrTextEdit = new TextEdit(this,x,m,50,mH,"",0);
00138         UpdateShowNrText();
00139         mShowNrTextEdit->SingleLine(true);
00140         mShowNrTextEdit->SetWindowListener(this);
00141         x += 52;
00142 
00143         mShowFromText = new StaticText(this,x,m,88,mH,"Showing from:");
00144         mShowFromText->SetAlign(oglLeftAlign);
00145         x += 90;
00146 
00147         mValTextEdit = new TextEdit(this,x,m,60,mH,"0",0);
00148         UpdateStartValText();
00149         mValTextEdit->SingleLine(true);
00150         mValTextEdit->SetWindowListener(this);
00151         x += 62;
00152 
00153         mMinButton = new OglGui::Button(this,x,m,16,mH,"-",4,true);
00154         mMinButton->SetButtonListener(this);
00155         x += 18;
00156 
00157         mPlusButton = new OglGui::Button(this,x,m,16,mH,"+",4,true);
00158         mPlusButton->SetButtonListener(this);
00159         x += 16 + m;
00160 
00161         SetDimensions(x,h);
00162         ScaleChildren();
00163         SetAllowChildScaling(false);
00164         SetDimensions(w,h);
00165     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:25:05 2011 for ImpalaSrc by  doxygen 1.5.1