vnote/dialog/vnewnotebookdialog.h
Le Tan 4d9946bfe1 support creating new notebook
Thanks to [benjsperry](https://github.com/driftyco/ionicons) for the
icons.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-17 11:28:37 +08:00

42 lines
853 B
C++

#ifndef VNEWNOTEBOOKDIALOG_H
#define VNEWNOTEBOOKDIALOG_H
#include <QDialog>
class QLabel;
class QLineEdit;
class QPushButton;
class QString;
class VNewNotebookDialog : public QDialog
{
Q_OBJECT
public:
VNewNotebookDialog(const QString &title, const QString &info, const QString &defaultName,
const QString &defaultPath, QWidget *parent = 0);
QString getNameInput() const;
QString getPathInput() const;
private slots:
void enableOkButton();
void handleBrowseBtnClicked();
private:
void setupUI();
QLabel *infoLabel;
QLabel *nameLabel;
QLineEdit *nameEdit;
QLineEdit *pathEdit;
QPushButton *browseBtn;
QPushButton *okBtn;
QPushButton *cancelBtn;
QString title;
QString defaultName;
QString info;
QString defaultPath;
};
#endif // VNEWNOTEBOOKDIALOG_H