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

void Impala::Application::SDash::CameraEventListPane::Init ( int  w,
int  h 
) [inline, private]

Definition at line 118 of file CameraEventListPane.h.

References OglGui::RadioGroup::Add(), OglGui::ScrollWnd::ContentHolder(), OglGui::DropDownWindow::DropDown(), mCameraEventList, mDiscardButton, mHideDiscardedCheck, mScrollWnd, mWhichCameraRadioGroup, OglGui::ScrollWnd::ReplaceContentPane(), OglGui::Window::ScaleChildren(), OglGui::RadioGroup::SetActiveRadio(), OglGui::OglWindow::SetBorderType(), OglGui::Button::SetButtonListener(), OglGui::CheckBox::SetCheckBoxListener(), and OglGui::RadioGroup::SetRadioListener().

00119     {
00120         SetBorderType(BEV_ETCHED);
00121 
00122         mScrollWnd = new ScrollWnd(this,2,60,w-4,h-64,true,0,1);
00123 
00124         mCameraEventList =
00125            new CameraEventList(mScrollWnd->ContentHolder(),0,0,300,20,"Events");
00126         mCameraEventList->SetBorderType(0);
00127         mScrollWnd->ReplaceContentPane(mCameraEventList);
00128 
00129         mCameraEventList->DropDown(true);
00130 
00131         mHideDiscardedCheck = new CheckBox(this,4,34,w-30,22,"Hide Discarded");
00132         mHideDiscardedCheck->SetCheckBoxListener(this);
00133 
00134         mDiscardButton = new Button(this,w-124,34,120,22,"Discard",BEV_ETCHED,true);
00135         mDiscardButton->SetButtonListener(this);
00136 
00137         mWhichCameraRadioGroup = new RadioGroup(this,2,2,w-4,30,2);
00138         Button* btn;
00139         char    buf[40];
00140         int     rW = (w-40)/15;
00141         int     i;
00142         for (i=0; i<15; i++)
00143         {
00144             sprintf(buf, "%d", i+1);
00145             btn = new Button(mWhichCameraRadioGroup,2+i*(rW+1),3,rW,24,buf,
00146                              BEV_RAISED, true);
00147             mWhichCameraRadioGroup->Add(btn);
00148         }
00149         btn = new Button(mWhichCameraRadioGroup,2+i*(rW+1),3,rW,24,"All",
00150                          BEV_RAISED, true);
00151         mWhichCameraRadioGroup->Add(btn);
00152         mWhichCameraRadioGroup->SetActiveRadio(15);
00153         mWhichCameraRadioGroup->SetRadioListener(this);
00154         mWhichCameraRadioGroup->ScaleChildren();
00155 
00156         ScaleChildren();
00157     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:49:03 2010 for ImpalaSrc by  doxygen 1.5.1