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

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

Definition at line 327 of file AlertWindow.h.

References OglGui::RadioGroup::Add(), OglGui::ScrollWnd::ContentHolder(), OglGui::TitledWindow::ContentPane(), OglGui::OglWindow::GetOGLWND(), OglGui::OglWindow::H(), mAddAllButton, mAttachGb, mAttachStrip, mCancelButton, mFadeOut, mFreeText, mFromText, mImagesGb, mImagesStrip, mLastLocations, mMailToScrollWnd, mMailToWindow, mOpacity, mPane, mSubjectLine, mSubjectText, mSubmitButton, mToText, mUrgencyRadioGroup, mUrgencyStrings, mUrgencyText, OglGui::ScrollWnd::ReplaceContentPane(), OglGui::Window::RepositionViewports(), OglGui::Window::ScaleChildren(), OglGui::StaticText::SetAlign(), OglGui::Window::SetAllowChildScaling(), OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::RadioGroup::SetButtonDimensions(), OglGui::Button::SetButtonListener(), OglGui::OglWindow::SetDimensions(), OglGui::ViewStrip::SetImagesListener(), OglGui::ViewStrip::SetMargin(), OglGui::Window::SetReposChildren(), OglGui::OglWindow::SetRoundness(), OglGui::ViewStrip::SetViewTags(), OglGui::Window::SetWindowListener(), OglGui::ViewStrip::Spacing(), OglGui::OglWindow::W(), OglGui::Window::Window(), and OglGui::OglWindow::Y().

00328     {
00329         SetDimensions(w, h);
00330         SetRoundness(0,0,0,0);
00331         mPane = ContentPane();
00332         mPane->GetOGLWND()->noMouseInput = true;
00333         mPane->SetBackground(oglGUI_BG & 0xe0ffffff);
00334         int paneW = mPane->W();
00335         int paneH = mPane->H();
00336         int tmpW;
00337         int y;
00338 
00339         mToText = new StaticText(mPane,6,paneH-28,120,24,"To:");
00340         mToText->SetAlign(oglLeftAlign,oglTopAlign);
00341 
00342         tmpW = paneW-132;
00343         mMailToScrollWnd = new ScrollWnd(mPane,126,paneH-112,tmpW,108,true,0);
00344         mMailToWindow = new Window(mMailToScrollWnd->ContentHolder(), 0,-100, 1000, 200);
00345         mMailToScrollWnd->ReplaceContentPane(mMailToWindow);
00346 
00347         y = mMailToScrollWnd->Y()-28;
00348         mUrgencyText = new StaticText(mPane, 6, y, tmpW, 24, "Priority:");
00349         mUrgencyText->SetAlign(oglLeftAlign, oglTopAlign);
00350 
00351         tmpW +=4;
00352         mUrgencyRadioGroup = new RadioGroup(mPane, 124, y, tmpW, 26);
00353         mUrgencyRadioGroup->SetBorderType(0);
00354         mUrgencyRadioGroup->SetButtonDimensions((tmpW-14)/3, 24);
00355 
00356         mUrgencyStrings[0] = "Low";
00357         mUrgencyStrings[1] = "Medium";
00358         mUrgencyStrings[2] = "High";
00359 
00360         for (int i=0; i<3; i++)
00361             mUrgencyRadioGroup->Add(mUrgencyStrings[i], BEV_RAISED, true);
00362         mUrgencyRadioGroup->RepositionViewports();
00363         mUrgencyRadioGroup->SetReposChildren(false,false);
00364 
00365         tmpW-=4;
00366         y = mUrgencyRadioGroup->Y()-24;
00367         mSubjectText = new StaticText(mPane,6,y,120,24,"Subject:");
00368         mSubjectText->SetAlign(oglLeftAlign, oglTopAlign);
00369 
00370         mSubjectLine = new TextEditLineScroller(mPane,124,y,tmpW,20," ");
00371         //SubjectString("Vandalisme");
00372  
00373         y = mSubjectLine->Y()-104;
00374         mFreeText = new TextEdit(mPane,6,y,paneW-12,100," ");
00375         mFreeText->SetBorderType(BEV_ETCHED);
00376         //mFreeText->SetText("Beschadiging van parkeerautomaat");
00377 
00378         y = mFreeText->Y()-19;
00379         (new StaticText(mPane, 6,y, 200, 16, "Last locations:"))->SetAlign(oglLeftAlign,oglBottomAlign);
00380         y = mFreeText->Y()-78;
00381         mLastLocations = new TextEdit(mPane,6,y,paneW-12,60," ",2);
00382         mLastLocations->SetBorderType(BEV_ETCHED);
00383         mLastLocations->SetBackground(0);
00384         //mLastLocations->SetText("Laatste locaties:\n13:58 cam 103: Mathenesserstr.\n13:59 cam 105: Zuid marconiplein");
00385 
00386         y = mLastLocations->Y()-19;
00387         (new StaticText(mPane, 6,y, 200, 16, "From:"))->SetAlign(oglLeftAlign,oglBottomAlign);
00388         y = mLastLocations->Y()-62;
00389         mFromText = new TextEdit(mPane,6,y,paneW-12,44," ",0);
00390         mFromText->SetBorderType(BEV_ETCHED);
00391         //mFromText->SetText("Afzender:\nG.E. de Vaart,\ncamera surveillance Rotterdam");
00392 
00393         y = mFromText->Y()-166;
00394         mAttachGb = new GroupBox(mPane,6,y,paneW-12,162,"Attachments:");
00395         mAttachGb->SetBorderFillShaded(DEEP_SHADE_UP);
00396         mAttachStrip = new ViewStrip(mAttachGb,4,4,paneW-20,140);
00397         oglSys.AllowPicking(mAttachStrip->GetOGLWND(),1,1);
00398         oglSys.SetAllowDeleteView(mAttachStrip->GetOGLWND(),1);
00399         mAttachStrip->SetViewTags((FlexViewTags) & ~movableTag);
00400         mAttachStrip->SetMargin(4);
00401         mAttachStrip->Spacing(4);
00402         mAttachStrip->SetImagesListener(this,(void*)1);
00403         mAttachStrip->SetWindowListener(this,(void*)1);
00404 
00405         y = mAttachGb->Y()-26;
00406         mSubmitButton = new Button(mPane,6,y,100,24,"Send",BEV_ETCHED,true);
00407         mSubmitButton->SetButtonListener(this,(void*)this);
00408 
00409         mCancelButton = new Button(mPane,112,y,100,24,"Cancel",BEV_ETCHED,true);
00410         mCancelButton->SetButtonListener(this,(void*)this);
00411 
00412 
00413         y = mSubmitButton->Y()-166;
00414         mImagesGb = new GroupBox(mPane,6,y,paneW-12,164,"Add to message:");
00415         mImagesGb->SetBorderFillShaded(DEEP_SHADE_UP);
00416         mImagesStrip = new ViewStrip(mImagesGb,4,4,paneW-20,140);
00417         oglSys.AllowPicking(mImagesStrip->GetOGLWND(),1,1);
00418         oglSys.SetAllowDeleteView(mImagesStrip->GetOGLWND(),1);
00419         mImagesStrip->SetViewTags((FlexViewTags) & ~movableTag);
00420         mImagesStrip->SetMargin(4);
00421         mImagesStrip->Spacing(4);
00422         mImagesStrip->SetImagesListener(this,(void*)2);
00423         mImagesStrip->SetWindowListener(this,(void*)2);
00424 
00425         mAddAllButton =
00426             new Button(mImagesGb,paneW-80,144,64,18,"Add all",BEV_ETCHED,true);
00427         mAddAllButton->SetButtonListener(this);
00428 
00429         mPane->ScaleChildren(0,1);
00430         mPane->SetAllowChildScaling(false);
00431 
00432         mFadeOut = false;
00433         mOpacity = 0;
00434     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:48:32 2010 for ImpalaSrc by  doxygen 1.5.1