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

void Impala::Application::IDash::DossierEntry::InitScreen (  )  [inline, private]

Definition at line 128 of file DossierEntry.h.

References ENTRY_HEIGHT, ILOG_DEBUG, mBtnListener, mShotImages, mVideoID, RestDiv3Btn(), OglGui::Window::ScaleChildren(), OglGui::Window::SetAllowChildScaling(), OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::Button::SetButtonListener(), OglGui::OglWindow::SetRoundness(), OglGui::TextEdit::SetTextEditListener(), textEdit, and OglGui::OglWindow::W().

Referenced by DossierEntry().

00129     {
00130         ILOG_DEBUG("DossierEntry added for video " << mVideoID);
00131         
00132         SetBorderType(0);
00133         SetRoundness(0,15,15,0);
00134         SetBorderType(4);
00135         SetBorderFillShaded(2);
00136         SetBackground(0x88999999);
00137    
00138         // Frank: hier de constructie van een ImageSet:
00139         int     thumbwidth  = 352;
00140         int     thumbheight = 288;
00141         int     nrCols      = 4;
00142         int     nrRows      = 2;
00143         double  scale       = 0.2;
00144 
00145         //set preview window
00146         mShotImages = new ImageSet(this,4,4,thumbwidth,thumbheight,
00147                                    scale,nrCols,nrRows);
00148         // RvB: Does not function to take notes
00149         // Textfield with shot numbers
00150         int previewW = ((double)thumbwidth * scale * nrCols) + 30;
00151         textEdit = new TextEdit(this,8+previewW,28,W()-(20+previewW),
00152                                 ENTRY_HEIGHT-36,"Notes for this video.",2);
00153         textEdit->SetTextEditListener(new DossierEntryTextListener(),0);
00154         std::ostringstream o;
00155         o << "Video: " << mVideoID;
00156         StaticText *title = new StaticText(this,8+previewW,4,120,20,o.str());
00157 
00158         // Command buttons
00159         int restW = W() - (previewW+136);
00160         Button *markcp = RestDiv3Btn(restW,0,"Mark as CP");
00161         Button *remove = RestDiv3Btn(restW,1,"Remove video");
00162         Button *play   = RestDiv3Btn(restW,2,"Play video");
00163         play->SetButtonListener(mBtnListener, 20 + mVideoID);
00164         remove->SetButtonListener(mBtnListener, 2000 + mVideoID);
00165         ScaleChildren();
00166         SetAllowChildScaling(false);
00167     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:39:37 2010 for ImpalaSrc by  doxygen 1.5.1