src/actions.cc

changeset 815
efe34366e56a
parent 806
4240f47aa2d4
child 818
748ba8818af8
equal deleted inserted replaced
814:c8ef30fd0e54 815:efe34366e56a
43 EXTERN_CFGENTRY (String, defaultName); 43 EXTERN_CFGENTRY (String, defaultName);
44 EXTERN_CFGENTRY (String, defaultUser); 44 EXTERN_CFGENTRY (String, defaultUser);
45 EXTERN_CFGENTRY (Int, defaultLicense); 45 EXTERN_CFGENTRY (Int, defaultLicense);
46 EXTERN_CFGENTRY (Bool, drawAngles); 46 EXTERN_CFGENTRY (Bool, drawAngles);
47 EXTERN_CFGENTRY (Bool, randomColors) 47 EXTERN_CFGENTRY (Bool, randomColors)
48 EXTERN_CFGENTRY (Bool, drawSurfaces)
49 EXTERN_CFGENTRY (Bool, drawEdgeLines)
50 EXTERN_CFGENTRY (Bool, drawConditionalLines)
48 51
49 // ============================================================================= 52 // =============================================================================
50 // 53 //
51 void MainWindow::slot_actionNew() 54 void MainWindow::slot_actionNew()
52 { 55 {
907 continue; 910 continue;
908 911
909 ref->fileInfo()->setImplicit (false); 912 ref->fileInfo()->setImplicit (false);
910 } 913 }
911 } 914 }
915
916 void MainWindow::slot_actionDrawSurfaces()
917 {
918 cfg::drawSurfaces = not cfg::drawSurfaces;
919 updateActions();
920 update();
921 }
922
923 void MainWindow::slot_actionDrawEdgeLines()
924 {
925 cfg::drawEdgeLines = not cfg::drawEdgeLines;
926 updateActions();
927 update();
928 }
929
930 void MainWindow::slot_actionDrawConditionalLines()
931 {
932 cfg::drawConditionalLines = not cfg::drawConditionalLines;
933 updateActions();
934 update();
935 }

mercurial