src/mainwindow.h

changeset 39
caac957e9834
parent 36
bbb901b97404
child 40
30cb5e836736
equal deleted inserted replaced
38:bb60dda3093f 39:caac957e9834
28 class MainWindow : public QMainWindow 28 class MainWindow : public QMainWindow
29 { 29 {
30 Q_OBJECT 30 Q_OBJECT
31 public: 31 public:
32 MainWindow(QWidget *parent = nullptr); 32 MainWindow(QWidget *parent = nullptr);
33 ~MainWindow(); 33 ~MainWindow() override;
34 private slots: 34 private slots:
35 void newModel(); 35 void newModel();
36 void openModel(); 36 void openModel();
37 void openModelFromPath(const QString& path); 37 void openModelFromPath(const QString& path);
38 void runSettingsEditor(); 38 void runSettingsEditor();
54 QByteArray documentSplitterState; 54 QByteArray documentSplitterState;
55 uiutilities::KeySequenceMap defaultKeyboardShortcuts; 55 uiutilities::KeySequenceMap defaultKeyboardShortcuts;
56 static constexpr int maxRecentlyOpenedFiles = 10; 56 static constexpr int maxRecentlyOpenedFiles = 10;
57 QStringList recentlyOpenedFiles; 57 QStringList recentlyOpenedFiles;
58 ldraw::ColorTable colorTable; 58 ldraw::ColorTable colorTable;
59 gl::RenderStyle renderStyle; 59 gl::RenderPreferences renderPreferences;
60 void updateTitle(); 60 void updateTitle();
61 void updateRenderStyles(); 61 void updateRenderPreferences();
62 void saveSettings(); 62 void saveSettings();
63 void restoreSettings(); 63 void restoreSettings();
64 void changeLanguage(QString localeCode); 64 void changeLanguage(QString localeCode);
65 void addRecentlyOpenedFile(const QString& path); 65 void addRecentlyOpenedFile(const QString& path);
66 void openModelForEditing(const QString& modelName); 66 void openModelForEditing(const QString& modelName);

mercurial