Definition at line 113 of file SurveillanceMap.h. References mButtons, mLabelPositions, mLabels, mLocations, mStreetLabels, OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderType(), OglGui::Button::SetBorderType(), OglGui::Button::SetButtonListener(), OglGui::Window::SetDoStateFeedback(), OglGui::Window::SetForeground(), OglGui::StaticText::SetText(), OglGui::StaticText::SetTextShadowed(), OglGui::OglWindow::SetVisible(), and OglGui::Window::SetWindowListener(). Referenced by Impala::Application::SDash::SurveillanceApp::BuildSecondScreenGUI(). 00114 { 00115 Button* btn = new Button(this, x-12, y-12, 24, 24, title); 00116 00117 btn->SetBorderType(-1); 00118 btn->SetBorderBackground(oglBLUE); 00119 btn->SetForeground(oglWHITE); 00120 btn->SetTextShadowed(false); 00121 btn->SetDoStateFeedback(false); 00122 btn->SetButtonListener(this); 00123 btn->SetWindowListener(this); 00124 00125 int index = mButtons.size(); 00126 int labelPos = mLabelPositions[index]; 00127 int xL, yL; 00128 int wL = 200; 00129 int hL = 20; 00130 00131 if (labelPos == 0) 00132 { 00133 xL = x + 8; 00134 yL = y + 8; 00135 } 00136 else if (labelPos == 1) 00137 { 00138 xL = x + 8; 00139 yL = y - hL - 8; 00140 } 00141 else if (labelPos == 2) 00142 { 00143 xL = x - wL - 8; 00144 yL = y - hL - 8; 00145 } 00146 else 00147 { 00148 xL = x - wL - 8; 00149 yL = y + 8; 00150 } 00151 00152 StaticText* label = new StaticText(this, xL, yL, wL, hL, "-", false); 00153 label->SetBorderType(BEV_RIDGE); 00154 label->SetBorderBackground(0x80ff002f); 00155 label->SetForeground(oglWHITE); 00156 label->SetTextShadowed(false); 00157 label->SetVisible(false); 00158 00159 mButtons.push_back(btn); 00160 mLabels.push_back(label); 00161 00162 wL = 200; 00163 label = new StaticText(this, xL, yL, wL, hL, "-"); 00164 label->SetText(mLocations[mButtons.size()-1]); 00165 label->SetBorderType(BEV_RIDGE); 00166 label->SetBorderBackground(0x80ff002f); 00167 label->SetForeground(oglWHITE); 00168 label->SetTextShadowed(false); 00169 label->SetVisible(false); 00170 mStreetLabels.push_back(label); 00171 00172 return btn; 00173 }
Here is the call graph for this function:
|