Definition at line 127 of file Camera3DAnchorControl.h. References cNrOfAnchors, mAnchorButton, mAnchors, mGotoButton, mIndex, mStrings, mTarget, PreferredSize(), OglGui::Camera3DAnchorControl::Anchor3DInfo::rX, OglGui::Window::ScaleChildren(), OglGui::Window::SetAllowChildScaling(), OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderType(), OglGui::Button::SetButtonListener(), OglGui::OglWindow::SetDimensions(), OglGui::Window::SetWindowListener(), OglGui::TextEdit::SingleLine(), OglGui::Camera3DAnchorControl::Anchor3DInfo::tZ, OglGui::Camera3DAnchorControl::Anchor3DInfo::uY, and OglGui::OglWindow::W(). 00128 { 00129 mTarget = target; 00130 00131 int prefW, prefH; 00132 PreferredSize(prefW, prefH); 00133 SetDimensions(prefW, prefH); 00134 00135 SetBorderType(BEV_ETCHED); 00136 mIndex = 0; 00137 00138 for (int i=0; i<cNrOfAnchors; i++) 00139 { 00140 char buf[100]; 00141 sprintf(buf, "Anchor %d info string", cNrOfAnchors-i); 00142 mStrings[i] = new TextEdit(this, 4, 4+i*21, W()-8, 21, buf, 0); 00143 mStrings[i]->SetBackground(0); 00144 mStrings[i]->SetBorderBackground(oglTrWHITE); 00145 mStrings[i]->SingleLine(true); 00146 mStrings[i]->SetWindowListener(this, (void*)i); 00147 mAnchors[i].rX = 1; 00148 mAnchors[i].tZ = -1; 00149 mAnchors[i].uY = 1; 00150 } 00151 00152 int btnY = 6 + cNrOfAnchors*21; 00153 mGotoButton = new Button(this, 4, btnY, 34, 22, "To"); 00154 mGotoButton->SetButtonListener(this); 00155 00156 mAnchorButton = new Button(this, 40, btnY, 64, 22, "Anchor"); 00157 mAnchorButton->SetButtonListener(this); 00158 00159 ScaleChildren(); 00160 SetAllowChildScaling(false); 00161 SetDimensions(w,h); 00162 }
Here is the call graph for this function:
|