src/toolsets/viewtoolset.cpp

changeset 1192
317f4ce38f3f
parent 1171
430ffa371d2a
equal deleted inserted replaced
1191:26b3f1e80a9c 1192:317f4ce38f3f
122 } 122 }
123 } 123 }
124 124
125 void ViewToolset::axes() 125 void ViewToolset::axes()
126 { 126 {
127 m_config->toggleDrawAxes(); 127 configuration().toggleDrawAxes();
128 m_window->updateActions(); 128 m_window->updateActions();
129 m_window->renderer()->update(); 129 m_window->renderer()->update();
130 } 130 }
131 131
132 void ViewToolset::visibilityToggle() 132 void ViewToolset::visibilityToggle()
147 obj->setHidden (false); 147 obj->setHidden (false);
148 } 148 }
149 149
150 void ViewToolset::wireframe() 150 void ViewToolset::wireframe()
151 { 151 {
152 m_config->toggleDrawWireframe(); 152 configuration().toggleDrawWireframe();
153 m_window->renderer()->update(); 153 m_window->renderer()->update();
154 } 154 }
155 155
156 void ViewToolset::drawAngles() 156 void ViewToolset::drawAngles()
157 { 157 {
158 m_config->toggleDrawAngles(); 158 configuration().toggleDrawAngles();
159 m_window->renderer()->update(); 159 m_window->renderer()->update();
160 } 160 }
161 161
162 void ViewToolset::setDrawDepth() 162 void ViewToolset::setDrawDepth()
163 { 163 {
222 } 222 }
223 #endif 223 #endif
224 224
225 void ViewToolset::bfcView() 225 void ViewToolset::bfcView()
226 { 226 {
227 m_config->toggleBfcRedGreenView(); 227 configuration().toggleBfcRedGreenView();
228 228
229 if (m_config->bfcRedGreenView()) 229 if (configuration().bfcRedGreenView())
230 m_config->setRandomColors (false); 230 configuration().setRandomColors (false);
231 231
232 m_window->updateActions(); 232 m_window->updateActions();
233 m_window->renderer()->update(); 233 m_window->renderer()->update();
234 } 234 }
235 235
252 } 252 }
253 } 253 }
254 254
255 void ViewToolset::randomColors() 255 void ViewToolset::randomColors()
256 { 256 {
257 m_config->toggleRandomColors(); 257 configuration().toggleRandomColors();
258 258
259 if (m_config->randomColors()) 259 if (configuration().randomColors())
260 m_config->setBfcRedGreenView (false); 260 configuration().setBfcRedGreenView (false);
261 261
262 m_window->updateActions(); 262 m_window->updateActions();
263 m_window->renderer()->update(); 263 m_window->renderer()->update();
264 } 264 }
265 265
266 void ViewToolset::drawSurfaces() 266 void ViewToolset::drawSurfaces()
267 { 267 {
268 m_config->toggleDrawSurfaces(); 268 configuration().toggleDrawSurfaces();
269 m_window->updateActions(); 269 m_window->updateActions();
270 } 270 }
271 271
272 void ViewToolset::drawEdgeLines() 272 void ViewToolset::drawEdgeLines()
273 { 273 {
274 m_config->toggleDrawEdgeLines(); 274 configuration().toggleDrawEdgeLines();
275 m_window->updateActions(); 275 m_window->updateActions();
276 } 276 }
277 277
278 void ViewToolset::drawConditionalLines() 278 void ViewToolset::drawConditionalLines()
279 { 279 {
280 m_config->toggleDrawConditionalLines(); 280 configuration().toggleDrawConditionalLines();
281 m_window->updateActions(); 281 m_window->updateActions();
282 } 282 }
283 283
284 void ViewToolset::lighting() 284 void ViewToolset::lighting()
285 { 285 {
286 m_config->toggleLighting(); 286 configuration().toggleLighting();
287 m_window->updateActions(); 287 m_window->updateActions();
288 } 288 }

mercurial