diff options
Diffstat (limited to 'src/editorwindow.h')
-rw-r--r-- | src/editorwindow.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/editorwindow.h b/src/editorwindow.h index ddd0f57..2a1f3f6 100644 --- a/src/editorwindow.h +++ b/src/editorwindow.h @@ -29,6 +29,13 @@ class EditorWindow : public QWidget public: EditorWindow(QWidget *parent = 0); + + /** + * @brief name of the file being edited + * */ + inline const QString &filename() const { + return editorwindow_filename; + } public slots: bool loadFile(const QString &filename); @@ -38,6 +45,7 @@ protected: virtual void resizeEvent (QResizeEvent *event); private: + QString editorwindow_filename; MapWidget *editorwindow_mapwidget; SideBar *editorwindow_sidebar; QSplitter *editorwindow_splitter; |