From a69e97943539a8abc4d2762638c169dc19c88516 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 7 Jun 2015 21:22:45 +0200 Subject: initial import --- mainwindow.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 mainwindow.h (limited to 'mainwindow.h') diff --git a/mainwindow.h b/mainwindow.h new file mode 100644 index 0000000..4072ffa --- /dev/null +++ b/mainwindow.h @@ -0,0 +1,37 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include +#include "notebookmodel.h" +#include "smartpenmanager.h" + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +public slots: + void closeNotebook(); + void openNotebook(const QString &pen, const QString ¬ebook); + +private slots: + void handleNotebookSelected(const QModelIndex &index); + void handleCurPageChanged(); + +private: + Ui::MainWindow *ui; + NotebookModel *_notebooks; + SmartpenManager *_manager; + + QString _curPenName; + QString _curNotebookName; +}; + +#endif // MAINWINDOW_H -- cgit v1.2.3