259 } |
259 } |
260 |
260 |
261 // ============================================================================= |
261 // ============================================================================= |
262 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
262 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
263 // ============================================================================= |
263 // ============================================================================= |
264 MAKE_ACTION (gridCoarse, "Coarse Grid", "grid-coarse", "Set the grid to Coarse", CTRL (1)) { |
264 MAKE_ACTION (gridCoarse, "Coarse Grid", "grid-coarse", "Set the grid to Coarse", (0)) { |
265 grid = Grid::Coarse; |
265 grid = Grid::Coarse; |
266 g_win->updateGridToolBar (); |
266 g_win->updateGridToolBar (); |
267 } |
267 } |
268 |
268 |
269 MAKE_ACTION (gridMedium, "Medium Grid", "grid-medium", "Set the grid to Medium", CTRL (2)) { |
269 MAKE_ACTION (gridMedium, "Medium Grid", "grid-medium", "Set the grid to Medium", (0)) { |
270 grid = Grid::Medium; |
270 grid = Grid::Medium; |
271 g_win->updateGridToolBar (); |
271 g_win->updateGridToolBar (); |
272 } |
272 } |
273 |
273 |
274 MAKE_ACTION (gridFine, "Fine Grid", "grid-fine", "Set the grid to Fine", CTRL (3)) { |
274 MAKE_ACTION (gridFine, "Fine Grid", "grid-fine", "Set the grid to Fine", (0)) { |
275 grid = Grid::Fine; |
275 grid = Grid::Fine; |
276 g_win->updateGridToolBar (); |
276 g_win->updateGridToolBar (); |
277 } |
277 } |
278 |
278 |
279 // ============================================================================= |
279 // ============================================================================= |
395 ACTION (axes)->setChecked (gl_axes); |
395 ACTION (axes)->setChecked (gl_axes); |
396 g_win->R ()->update (); |
396 g_win->R ()->update (); |
397 } |
397 } |
398 |
398 |
399 // ========================================================================================================================================= |
399 // ========================================================================================================================================= |
400 MAKE_ACTION (draw, "Draw Mode", "draw", "Begin drawing geometry", KEY (Insert)) { |
|
401 g_win->R ()->beginPlaneDraw (); |
|
402 } |
|
403 |
|
404 // ========================================================================================================================================= |
|
405 MAKE_ACTION (visibility, "Toggle Visibility", "visibility", "Toggles visibility/hiding on objects.", (0)) { |
400 MAKE_ACTION (visibility, "Toggle Visibility", "visibility", "Toggles visibility/hiding on objects.", (0)) { |
406 for (LDObject* obj : g_win->sel ()) |
401 for (LDObject* obj : g_win->sel ()) |
407 obj->setHidden (!obj->hidden ()); |
402 obj->setHidden (!obj->hidden ()); |
408 |
403 |
409 g_win->fullRefresh (); |
404 g_win->fullRefresh (); |
420 } |
415 } |
421 |
416 |
422 MAKE_ACTION (clearOverlay, "Clear Overlay Image", "overlay-clear", "Clear the overlay image.", (0)) { |
417 MAKE_ACTION (clearOverlay, "Clear Overlay Image", "overlay-clear", "Clear the overlay image.", (0)) { |
423 g_win->R ()->clearOverlay (); |
418 g_win->R ()->clearOverlay (); |
424 } |
419 } |
|
420 |
|
421 // ========================================================================================================================================= |
|
422 MAKE_ACTION (modeSelect, "Select Mode", "mode-select", "Select objects from the camera view.", CTRL (1)) { |
|
423 g_win->R ()->setEditMode (GL::Select); |
|
424 } |
|
425 |
|
426 MAKE_ACTION (modeDraw, "Draw Mode", "mode-draw", "Draw objects into the camera view.", CTRL (2)) { |
|
427 g_win->R ()->setEditMode (GL::Draw); |
|
428 } |