vnote/vnote.h
Le Tan 504e3323cf display selected file in a QTabWidget
Add VTabWidget and VEdit to display content of files.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-06 22:33:55 +08:00

35 lines
748 B
C++

#ifndef VNOTE_H
#define VNOTE_H
#include <QString>
#include <QVector>
#include <QSettings>
#include "vnotebook.h"
class VNote
{
public:
VNote();
void readGlobalConfig();
void writeGlobalConfig();
const QVector<VNotebook>& getNotebooks();
int getCurNotebookIndex() const;
void setCurNotebookIndex(int index);
static const QString orgName;
static const QString appName;
static const QString welcomePageUrl;
private:
// Write notebooks section of global config
void writeGlobalConfigNotebooks(QSettings &settings);
// Read notebooks section of global config
void readGlobalConfigNotebooks(QSettings &settings);
QVector<VNotebook> notebooks;
int curNotebookIndex;
};
#endif // VNOTE_H