33 #include "misc.h" |
33 #include "misc.h" |
34 #include "gldraw.h" |
34 #include "gldraw.h" |
35 #include "dialogs.h" |
35 #include "dialogs.h" |
36 #include "primitives.h" |
36 #include "primitives.h" |
37 #include "ui_newpart.h" |
37 #include "ui_newpart.h" |
|
38 #include "widgets.h" |
38 |
39 |
39 extern_cfg (bool, gl_wireframe); |
40 extern_cfg (bool, gl_wireframe); |
40 |
41 |
41 // ============================================================================= |
42 // ============================================================================= |
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
422 MAKE_ACTION (wireframe, "Wireframe", "wireframe", "Toggle wireframe view", (0)) { |
423 MAKE_ACTION (wireframe, "Wireframe", "wireframe", "Toggle wireframe view", (0)) { |
423 gl_wireframe = !gl_wireframe; |
424 gl_wireframe = !gl_wireframe; |
424 g_win->R ()->refresh (); |
425 g_win->R ()->refresh (); |
425 } |
426 } |
426 |
427 |
427 MAKE_ACTION (setOverlay, "Set Overlay Image", "overlay", "Set an overlay image", (0)) { |
428 MAKE_ACTION( setOverlay, "Set Overlay Image", "overlay", "Set an overlay image", 0 ) |
428 g_win->R ()->setupOverlay (); |
429 { |
|
430 OverlayDialog dlg; |
|
431 |
|
432 if (!dlg.exec ()) |
|
433 return; |
|
434 |
|
435 g_win->R ()->setupOverlay( (GL::Camera) dlg.camera(), dlg.fpath(), dlg.ofsx(), |
|
436 dlg.ofsy(), dlg.width(), dlg.height() ); |
429 } |
437 } |
430 |
438 |
431 MAKE_ACTION (clearOverlay, "Clear Overlay Image", "overlay-clear", "Clear the overlay image.", (0)) { |
439 MAKE_ACTION (clearOverlay, "Clear Overlay Image", "overlay-clear", "Clear the overlay image.", (0)) { |
432 g_win->R ()->clearOverlay (); |
440 g_win->R ()->clearOverlay (); |
433 } |
441 } |