src/actions.cpp

changeset 953
8349552ee5e9
parent 952
f116b63c4844
child 954
7feaa1a3c438
equal deleted inserted replaced
952:f116b63c4844 953:8349552ee5e9
35 #include "primitives.h" 35 #include "primitives.h"
36 #include "radioGroup.h" 36 #include "radioGroup.h"
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 "dialogs/ldrawpathdialog.h"
40 #include "editmodes/abstractEditMode.h" 41 #include "editmodes/abstractEditMode.h"
41 42
42 EXTERN_CFGENTRY (Bool, DrawWireframe) 43 EXTERN_CFGENTRY (Bool, DrawWireframe)
43 EXTERN_CFGENTRY (Bool, BFCRedGreenView) 44 EXTERN_CFGENTRY (Bool, BFCRedGreenView)
44 EXTERN_CFGENTRY (String, DefaultName) 45 EXTERN_CFGENTRY (String, DefaultName)
48 EXTERN_CFGENTRY (Bool, RandomColors) 49 EXTERN_CFGENTRY (Bool, RandomColors)
49 EXTERN_CFGENTRY (Bool, DrawSurfaces) 50 EXTERN_CFGENTRY (Bool, DrawSurfaces)
50 EXTERN_CFGENTRY (Bool, DrawEdgeLines) 51 EXTERN_CFGENTRY (Bool, DrawEdgeLines)
51 EXTERN_CFGENTRY (Bool, DrawConditionalLines) 52 EXTERN_CFGENTRY (Bool, DrawConditionalLines)
52 EXTERN_CFGENTRY (Bool, DrawAxes) 53 EXTERN_CFGENTRY (Bool, DrawAxes)
54 EXTERN_CFGENTRY (String, LDrawPath)
53 55
54 // ============================================================================= 56 // =============================================================================
55 // 57 //
56 void MainWindow::slot_actionNew() 58 void MainWindow::slot_actionNew()
57 { 59 {
163 165
164 // ============================================================================= 166 // =============================================================================
165 // 167 //
166 void MainWindow::slot_actionSetLDrawPath() 168 void MainWindow::slot_actionSetLDrawPath()
167 { 169 {
168 (new LDrawPathDialog (true))->exec(); 170 (new LDrawPathDialog (cfg::LDrawPath, true))->exec();
169 } 171 }
170 172
171 // ============================================================================= 173 // =============================================================================
172 // 174 //
173 void MainWindow::slot_actionExit() 175 void MainWindow::slot_actionExit()

mercurial