vnewnotebookdialog.h 853 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 VNewNotebookDialog : public QDialog
  9. {
  10. Q_OBJECT
  11. public:
  12. VNewNotebookDialog(const QString &title, const QString &info, const QString &defaultName,
  13. const QString &defaultPath, QWidget *parent = 0);
  14. QString getNameInput() const;
  15. QString getPathInput() const;
  16. private slots:
  17. void enableOkButton();
  18. void handleBrowseBtnClicked();
  19. private:
  20. void setupUI();
  21. QLabel *infoLabel;
  22. QLabel *nameLabel;
  23. QLineEdit *nameEdit;
  24. QLineEdit *pathEdit;
  25. QPushButton *browseBtn;
  26. QPushButton *okBtn;
  27. QPushButton *cancelBtn;
  28. QString title;
  29. QString info;
  30. QString defaultName;
  31. QString defaultPath;
  32. };
  33. #endif // VNEWNOTEBOOKDIALOG_H