aboutsummaryrefslogtreecommitdiff
path: root/mainwindow.h
blob: 4072ffa8138fdc773d25c83ab7b07052a6fc3649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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