vdirinfodialog.h 819 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef VDIRINFODIALOG_H
  2. #define VDIRINFODIALOG_H
  3. #include <QDialog>
  4. class QLabel;
  5. class QLineEdit;
  6. class QDialogButtonBox;
  7. class QString;
  8. class VDirectory;
  9. class VDirInfoDialog : public QDialog
  10. {
  11. Q_OBJECT
  12. public:
  13. VDirInfoDialog(const QString &title,
  14. const QString &info,
  15. const VDirectory *directory,
  16. VDirectory *parentDirectory,
  17. QWidget *parent = 0);
  18. QString getNameInput() const;
  19. private slots:
  20. void handleInputChanged();
  21. private:
  22. void setupUI();
  23. QLabel *infoLabel;
  24. QLabel *nameLabel;
  25. QLineEdit *nameEdit;
  26. QLabel *m_warnLabel;
  27. QDialogButtonBox *m_btnBox;
  28. QString title;
  29. QString info;
  30. const VDirectory *m_directory;
  31. VDirectory *m_parentDirectory;
  32. };
  33. #endif // VDIRINFODIALOG_H