1
0

vnewnotebookdialog.h 931 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef VNEWNOTEBOOKDIALOG_H
  2. #define VNEWNOTEBOOKDIALOG_H
  3. #include <QDialog>
  4. class QLabel;
  5. class QLineEdit;
  6. class QPushButton;
  7. class QString;
  8. class QCheckBox;
  9. class VNewNotebookDialog : public QDialog
  10. {
  11. Q_OBJECT
  12. public:
  13. VNewNotebookDialog(const QString &title, const QString &info, const QString &defaultName,
  14. const QString &defaultPath, QWidget *parent = 0);
  15. QString getNameInput() const;
  16. QString getPathInput() const;
  17. bool getImportCheck() const;
  18. private slots:
  19. void enableOkButton();
  20. void handleBrowseBtnClicked();
  21. private:
  22. void setupUI();
  23. QLabel *infoLabel;
  24. QLabel *nameLabel;
  25. QLineEdit *nameEdit;
  26. QLineEdit *pathEdit;
  27. QCheckBox *importCheck;
  28. QPushButton *browseBtn;
  29. QPushButton *okBtn;
  30. QPushButton *cancelBtn;
  31. QString title;
  32. QString info;
  33. QString defaultName;
  34. QString defaultPath;
  35. };
  36. #endif // VNEWNOTEBOOKDIALOG_H