vnote/vmainwindow.h
Le Tan d8c5114c1b read/write the info about notebooks
Use QSettings to store notebooks info in INI format.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-02 13:38:05 +08:00

44 lines
852 B
C++

#ifndef VMAINWINDOW_H
#define VMAINWINDOW_H
#include <QMainWindow>
class QLabel;
class QComboBox;
class VDirectoryTree;
class QSplitter;
class QListWidget;
class QTabWidget;
class VNote;
class VMainWindow : public QMainWindow
{
Q_OBJECT
public:
VMainWindow(QWidget *parent = 0);
~VMainWindow();
private slots:
// Change current notebook index and update the directory tree
void setCurNotebookIndex(int index);
signals:
void curNotebookIndexChanged(const QString &path);
private:
void setupUI();
// Update notebookComboBox according to vnote
void updateNotebookComboBox();
QLabel *notebookLabel;
QComboBox *notebookComboBox;
VDirectoryTree *directoryTree;
QListWidget *fileListWidget;
QTabWidget *editorTabWidget;
QSplitter *mainSplitter;
VNote *vnote;
};
#endif // VMAINWINDOW_H