vdeletenotebookdialog.h 839 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef VDELETENOTEBOOKDIALOG_H
  2. #define VDELETENOTEBOOKDIALOG_H
  3. #include <QDialog>
  4. #include <QMessageBox>
  5. class QLabel;
  6. class QString;
  7. class QCheckBox;
  8. class QDialogButtonBox;
  9. class VNotebook;
  10. class VDeleteNotebookDialog : public QDialog
  11. {
  12. Q_OBJECT
  13. public:
  14. VDeleteNotebookDialog(const QString &p_title,
  15. const VNotebook *p_notebook,
  16. QWidget *p_parent = 0);
  17. // Whether delete files from disk.
  18. bool getDeleteFiles() const;
  19. private slots:
  20. void deleteCheckChanged(int p_state);
  21. private:
  22. void setupUI(const QString &p_title, const QString &p_name);
  23. QPixmap standardIcon(QMessageBox::Icon p_icon);
  24. const VNotebook *m_notebook;
  25. QLabel *m_warningLabel;
  26. QCheckBox *m_deleteCheck;
  27. QDialogButtonBox *m_btnBox;
  28. };
  29. #endif // VDELETENOTEBOOKDIALOG_H