124 Critical (format ("Couldn't open %1 for writing to save screencap: %2", filename, strerror (errno))); |
124 Critical (format ("Couldn't open %1 for writing to save screencap: %2", filename, strerror (errno))); |
125 } |
125 } |
126 |
126 |
127 void ViewToolset::axes() |
127 void ViewToolset::axes() |
128 { |
128 { |
129 Config->setDrawAxes (not Config->drawAxes()); |
129 config.setDrawAxes (not config.drawAxes()); |
130 m_window->updateActions(); |
130 m_window->updateActions(); |
131 m_window->renderer()->update(); |
131 m_window->renderer()->update(); |
132 } |
132 } |
133 |
133 |
134 void ViewToolset::visibilityToggle() |
134 void ViewToolset::visibilityToggle() |
149 obj->setHidden (false); |
149 obj->setHidden (false); |
150 } |
150 } |
151 |
151 |
152 void ViewToolset::wireframe() |
152 void ViewToolset::wireframe() |
153 { |
153 { |
154 Config->setDrawWireframe (not Config->drawWireframe()); |
154 config.setDrawWireframe (not config.drawWireframe()); |
155 m_window->renderer()->refresh(); |
155 m_window->renderer()->refresh(); |
156 } |
156 } |
157 |
157 |
158 void ViewToolset::setOverlay() |
158 void ViewToolset::setOverlay() |
159 { |
159 { |
171 m_window->renderer()->clearOverlay(); |
171 m_window->renderer()->clearOverlay(); |
172 } |
172 } |
173 |
173 |
174 void ViewToolset::drawAngles() |
174 void ViewToolset::drawAngles() |
175 { |
175 { |
176 Config->setDrawAngles (not Config->drawAngles()); |
176 config.setDrawAngles (not config.drawAngles()); |
177 m_window->renderer()->refresh(); |
177 m_window->renderer()->refresh(); |
178 } |
178 } |
179 |
179 |
180 void ViewToolset::setDrawDepth() |
180 void ViewToolset::setDrawDepth() |
181 { |
181 { |
240 } |
240 } |
241 #endif |
241 #endif |
242 |
242 |
243 void ViewToolset::bfcView() |
243 void ViewToolset::bfcView() |
244 { |
244 { |
245 Config->setBfcRedGreenView (not Config->bfcRedGreenView()); |
245 config.setBfcRedGreenView (not config.bfcRedGreenView()); |
246 |
246 |
247 if (Config->bfcRedGreenView()) |
247 if (config.bfcRedGreenView()) |
248 Config->setRandomColors (false); |
248 config.setRandomColors (false); |
249 |
249 |
250 m_window->updateActions(); |
250 m_window->updateActions(); |
251 m_window->renderer()->refresh(); |
251 m_window->renderer()->refresh(); |
252 } |
252 } |
253 |
253 |
271 m_window->updateSelection(); |
271 m_window->updateSelection(); |
272 } |
272 } |
273 |
273 |
274 void ViewToolset::randomColors() |
274 void ViewToolset::randomColors() |
275 { |
275 { |
276 Config->setRandomColors (not Config->randomColors()); |
276 config.setRandomColors (not config.randomColors()); |
277 |
277 |
278 if (Config->randomColors()) |
278 if (config.randomColors()) |
279 Config->setBfcRedGreenView (false); |
279 config.setBfcRedGreenView (false); |
280 |
280 |
281 m_window->updateActions(); |
281 m_window->updateActions(); |
282 m_window->renderer()->refresh(); |
282 m_window->renderer()->refresh(); |
283 } |
283 } |
284 |
284 |
285 void ViewToolset::drawSurfaces() |
285 void ViewToolset::drawSurfaces() |
286 { |
286 { |
287 Config->setDrawSurfaces (not Config->drawSurfaces()); |
287 config.setDrawSurfaces (not config.drawSurfaces()); |
288 m_window->updateActions(); |
288 m_window->updateActions(); |
289 } |
289 } |
290 |
290 |
291 void ViewToolset::drawEdgeLines() |
291 void ViewToolset::drawEdgeLines() |
292 { |
292 { |
293 Config->setDrawEdgeLines (not Config->drawEdgeLines()); |
293 config.setDrawEdgeLines (not config.drawEdgeLines()); |
294 m_window->updateActions(); |
294 m_window->updateActions(); |
295 } |
295 } |
296 |
296 |
297 void ViewToolset::drawConditionalLines() |
297 void ViewToolset::drawConditionalLines() |
298 { |
298 { |
299 Config->setDrawConditionalLines (not Config->drawConditionalLines()); |
299 config.setDrawConditionalLines (not config.drawConditionalLines()); |
300 m_window->updateActions(); |
300 m_window->updateActions(); |
301 } |
301 } |