diff -r 44679e468ba9 -r 8b9780700b5e src/mainwindow.h --- a/src/mainwindow.h Sun Nov 03 12:17:41 2019 +0200 +++ b/src/mainwindow.h Sun Nov 03 12:56:42 2019 +0200 @@ -16,7 +16,11 @@ private slots: void newModel(); void openModel(); + void openModelFromPath(const QString& path); void runSettingsEditor(); + void handleDocumentSplitterChange(); + void updateRecentlyOpenedDocumentsMenu(); + void openRecentFile(); protected: void changeEvent(QEvent* event) override; void closeEvent(QCloseEvent* event) override; @@ -28,12 +32,14 @@ QTranslator translator; QSettings settings; LibraryManager libraries; - QWidget* createWidgetForModel(Model* model); - QWidget* getWidgetForModel(Model* model); - void updateTabs(); + QByteArray documentSplitterState; + static constexpr int maxRecentlyOpenedFiles = 10; + QStringList recentlyOpenedFiles; void updateTitle(); void saveSettings(); void restoreSettings(); void changeLanguage(QString localeCode); + void addRecentlyOpenedFile(const QString& path); + void openModelForEditing(const QString& modelName); static QString pathToTranslation(const QString& localeCode); };