src/gui_actions.cc

changeset 578
a86ae85a277c
parent 577
17a88e2470c9
child 587
507e5d5c348c
equal deleted inserted replaced
577:17a88e2470c9 578:a86ae85a277c
35 #include "primitives.h" 35 #include "primitives.h"
36 #include "ui_newpart.h" 36 #include "ui_newpart.h"
37 #include "widgets.h" 37 #include "widgets.h"
38 #include "colors.h" 38 #include "colors.h"
39 39
40 extern_cfg (Bool, gl_wireframe); 40 extern_cfg (Bool, gl_wireframe);
41 extern_cfg (Bool, gl_colorbfc); 41 extern_cfg (Bool, gl_colorbfc);
42 extern_cfg (String, ld_defaultname); 42 extern_cfg (String, ld_defaultname);
43 extern_cfg (String, ld_defaultuser); 43 extern_cfg (String, ld_defaultuser);
44 extern_cfg (Int, ld_defaultlicense); 44 extern_cfg (Int, ld_defaultlicense);
45 extern_cfg (Bool, gl_drawangles);
45 46
46 // ============================================================================= 47 // =============================================================================
47 // ----------------------------------------------------------------------------- 48 // -----------------------------------------------------------------------------
48 DEFINE_ACTION (New, CTRL_SHIFT (N)) 49 DEFINE_ACTION (New, CTRL_SHIFT (N))
49 { QDialog* dlg = new QDialog (g_win); 50 { QDialog* dlg = new QDialog (g_win);
481 // ============================================================================= 482 // =============================================================================
482 // ----------------------------------------------------------------------------- 483 // -----------------------------------------------------------------------------
483 DEFINE_ACTION (VisibilityHide, 0) 484 DEFINE_ACTION (VisibilityHide, 0)
484 { for (LDObject* obj : selection()) 485 { for (LDObject* obj : selection())
485 obj->setHidden (true); 486 obj->setHidden (true);
486 487
487 g_win->refresh(); 488 g_win->refresh();
488 } 489 }
489 490
490 // ============================================================================= 491 // =============================================================================
491 // ----------------------------------------------------------------------------- 492 // -----------------------------------------------------------------------------
492 DEFINE_ACTION (VisibilityReveal, 0) 493 DEFINE_ACTION (VisibilityReveal, 0)
493 { for (LDObject* obj : selection()) 494 { for (LDObject* obj : selection())
494 obj->setHidden (false); 495 obj->setHidden (false);
495
496 g_win->refresh(); 496 g_win->refresh();
497 } 497 }
498 498
499 // ============================================================================= 499 // =============================================================================
500 // ----------------------------------------------------------------------------- 500 // -----------------------------------------------------------------------------
535 535
536 // ============================================================================= 536 // =============================================================================
537 // ----------------------------------------------------------------------------- 537 // -----------------------------------------------------------------------------
538 DEFINE_ACTION (ModeCircle, CTRL (3)) 538 DEFINE_ACTION (ModeCircle, CTRL (3))
539 { g_win->R()->setEditMode (ECircleMode); 539 { g_win->R()->setEditMode (ECircleMode);
540 }
541
542 // =============================================================================
543 // -----------------------------------------------------------------------------
544 DEFINE_ACTION (DrawAngles, 0)
545 { gl_drawangles = !gl_drawangles;
546 g_win->R()->refresh();
540 } 547 }
541 548
542 // ============================================================================= 549 // =============================================================================
543 // ----------------------------------------------------------------------------- 550 // -----------------------------------------------------------------------------
544 DEFINE_ACTION (SetDrawDepth, 0) 551 DEFINE_ACTION (SetDrawDepth, 0)

mercurial