Definition at line 24 of file ColorTargetModalDialog.h. References OglGui::ColorDialog::CancelBtn(), OglGui::ColorDialog::Color(), OglGui::OglWindow::ConnectTo(), OglGui::Window::GetParent(), OglGui::OglWindow::H(), mColorDialog, mModalWnd, mTargetWnd, mWhat, OglGui::ColorDialog::OkBtn(), OglGui::OglWindow::SetBorderBackground(), OglGui::Button::SetButtonListener(), OglGui::TitledWindow::SetContentPane(), and OglGui::OglWindow::W(). 00026 { 00027 Window* topWnd = parent; 00028 while(parent = parent->GetParent()) 00029 topWnd = parent; 00030 int tW = topWnd->W(); 00031 int tH = topWnd->H(); 00032 00033 mTargetWnd = target; 00034 mWhat = what; 00035 00036 mModalWnd = new Window(topWnd,0,0,tW,tH); 00037 mModalWnd->ConnectTo(topWnd); 00038 00039 TitledWindow* tWnd = 00040 new TitledWindow(mModalWnd,tW/2-w/2,tH/2-h/2,w,h,"Choose Color"); 00041 mColorDialog = 00042 new ColorDialog(tWnd,4,4,200,200); // Note dims here unimportant 00043 mColorDialog->Color(startCol); 00044 tWnd->SetContentPane(mColorDialog); 00045 tWnd->SetBorderBackground(oglGUI_BG); 00046 00047 mColorDialog->OkBtn()->SetButtonListener(this); 00048 mColorDialog->CancelBtn()->SetButtonListener(this); 00049 }
Here is the call graph for this function:
|