src/actions.cc

changeset 852
cbd89b33f70d
parent 851
dbed6938238c
child 857
e62983881460
equal deleted inserted replaced
851:dbed6938238c 852:cbd89b33f70d
37 #include "colors.h" 37 #include "colors.h"
38 #include "glCompiler.h" 38 #include "glCompiler.h"
39 #include "ui_newpart.h" 39 #include "ui_newpart.h"
40 #include "editmodes/abstractEditMode.h" 40 #include "editmodes/abstractEditMode.h"
41 41
42 EXTERN_CFGENTRY (Bool, DrawWireframe); 42 EXTERN_CFGENTRY (Bool, DrawWireframe)
43 EXTERN_CFGENTRY (Bool, BFCRedGreenView); 43 EXTERN_CFGENTRY (Bool, BFCRedGreenView)
44 EXTERN_CFGENTRY (String, DefaultName); 44 EXTERN_CFGENTRY (String, DefaultName)
45 EXTERN_CFGENTRY (String, DefaultUser); 45 EXTERN_CFGENTRY (String, DefaultUser)
46 EXTERN_CFGENTRY (Bool, UseCALicense); 46 EXTERN_CFGENTRY (Bool, UseCALicense)
47 EXTERN_CFGENTRY (Bool, DrawAngles); 47 EXTERN_CFGENTRY (Bool, DrawAngles)
48 EXTERN_CFGENTRY (Bool, RandomColors) 48 EXTERN_CFGENTRY (Bool, RandomColors)
49 EXTERN_CFGENTRY (Bool, DrawSurfaces) 49 EXTERN_CFGENTRY (Bool, DrawSurfaces)
50 EXTERN_CFGENTRY (Bool, DrawEdgeLines) 50 EXTERN_CFGENTRY (Bool, DrawEdgeLines)
51 EXTERN_CFGENTRY (Bool, DrawConditionalLines) 51 EXTERN_CFGENTRY (Bool, DrawConditionalLines)
52 EXTERN_CFGENTRY (Bool, DrawAxes)
52 53
53 // ============================================================================= 54 // =============================================================================
54 // 55 //
55 void MainWindow::slot_actionNew() 56 void MainWindow::slot_actionNew()
56 { 57 {
493 delete[] imgdata; 494 delete[] imgdata;
494 } 495 }
495 496
496 // ============================================================================= 497 // =============================================================================
497 // 498 //
498 EXTERN_CFGENTRY (Bool, DrawAxes);
499 void MainWindow::slot_actionAxes() 499 void MainWindow::slot_actionAxes()
500 { 500 {
501 cfg::DrawAxes = not cfg::DrawAxes; 501 cfg::DrawAxes = not cfg::DrawAxes;
502 updateActions(); 502 updateActions();
503 R()->update(); 503 R()->update();

mercurial