Definition at line 159 of file ZoomControl.h. References OglGui::OglWindow::GetOGLWND(), mAdjusting, mCenterButton, mFitButton, mResetButton, mTargetWindow, mZoomSlider, OglGui::Window::ScaleChildren(), OglGui::Window::SetAllowChildScaling(), OglGui::Button::SetButtonListener(), OglGui::Window::SetDisableOGLViewKeys(), OglGui::Window::SetDisableOGLViewMouse(), OglGui::Slider::SetIncrement(), OglGui::Slider::SetShowValPerc(), and OglGui::Slider::SetSliderListener(). 00160 { 00161 OGLWND *oW = GetOGLWND(); 00162 00163 mTargetWindow = 0; 00164 mAdjusting = false; 00165 h -= 22; 00166 00167 mZoomSlider = new Slider(this, 4, h - (2*h)/3+4, w-8, (2*h)/3-4, 0, 00168 maxZoom*100, 100, BEV_RAISED, 16); 00169 mZoomSlider->SetIncrement(10); 00170 mZoomSlider->SetShowValPerc(true); 00171 mZoomSlider->SetSliderListener(this); 00172 00173 mCenterButton = new Button(this, 4, 4, (w-18)/3, h/3 - 4, "Center"); 00174 mCenterButton->SetButtonListener(this); 00175 mFitButton = new Button(this, (w-18)/3 + 10, 4, (w-18)/3, h/3 - 4, 00176 "Fit"); 00177 mFitButton->SetButtonListener(this, (void*)1); 00178 mResetButton = new Button(this, (2*(w-18))/3 + 16, 4, (w-18)/3, 00179 h/3 - 4, "Reset"); 00180 mResetButton->SetButtonListener(this, (void*)2); 00181 00182 ScaleChildren(); 00183 SetAllowChildScaling(false); 00184 00185 SetDisableOGLViewKeys(true); 00186 SetDisableOGLViewMouse(true); 00187 }
Here is the call graph for this function:
|