aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-06-07 21:22:45 +0200
committerJavier <dev.git@javispedro.com>2015-06-07 21:22:45 +0200
commita69e97943539a8abc4d2762638c169dc19c88516 (patch)
treef3516ea29745db65971247cee4c260b49f1067b2 /mainwindow.h
downloadscribiu-a69e97943539a8abc4d2762638c169dc19c88516.tar.gz
scribiu-a69e97943539a8abc4d2762638c169dc19c88516.zip
initial import
Diffstat (limited to 'mainwindow.h')
-rw-r--r--mainwindow.h37
1 files changed, 37 insertions, 0 deletions
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 <QtGui/QMainWindow>
+#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 &notebook);
+
+private slots:
+ void handleNotebookSelected(const QModelIndex &index);
+ void handleCurPageChanged();
+
+private:
+ Ui::MainWindow *ui;
+ NotebookModel *_notebooks;
+ SmartpenManager *_manager;
+
+ QString _curPenName;
+ QString _curNotebookName;
+};
+
+#endif // MAINWINDOW_H