src/gui_actions.cpp

changeset 353
07b3753baedc
parent 344
55fcf67230fd
child 376
4a89dd47535f
equal deleted inserted replaced
352:e8184f4e28f3 353:07b3753baedc
36 #include "primitives.h" 36 #include "primitives.h"
37 #include "ui_newpart.h" 37 #include "ui_newpart.h"
38 #include "widgets.h" 38 #include "widgets.h"
39 39
40 extern_cfg (bool, gl_wireframe); 40 extern_cfg (bool, gl_wireframe);
41 extern_cfg( bool, gl_colorbfc );
41 42
42 // ============================================================================= 43 // =============================================================================
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
44 // ============================================================================= 45 // =============================================================================
45 MAKE_ACTION (newFile, "&New", "brick", "Create a new part model.", CTRL (N)) { 46 MAKE_ACTION (newFile, "&New", "brick", "Create a new part model.", CTRL (N)) {
505 #endif 506 #endif
506 507
507 MAKE_ACTION (reloadPrimitives, "Scan Primitives", "", "", (0)) { 508 MAKE_ACTION (reloadPrimitives, "Scan Primitives", "", "", (0)) {
508 PrimitiveLister::start (); 509 PrimitiveLister::start ();
509 } 510 }
511
512 MAKE_ACTION( colorbfc, "BFC Red/Green View", "bfc-view", "", SHIFT( B ))
513 {
514 gl_colorbfc = !gl_colorbfc;
515 ACTION( colorbfc )->setChecked( gl_colorbfc );
516 g_win->R ()->refresh();
517 }

mercurial