mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
37 lines
817 B
C++
37 lines
817 B
C++
#ifndef VDELETENOTEBOOKDIALOG_H
|
|
#define VDELETENOTEBOOKDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QMessageBox>
|
|
|
|
class QLabel;
|
|
class QLineEdit;
|
|
class QString;
|
|
class QCheckBox;
|
|
class QDialogButtonBox;
|
|
|
|
class VDeleteNotebookDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
VDeleteNotebookDialog(const QString &p_title, const QString &p_name, const QString &p_path,
|
|
QWidget *p_parent = 0);
|
|
|
|
// Whether delete files from disk.
|
|
bool getDeleteFiles() const;
|
|
|
|
private slots:
|
|
void deleteCheckChanged(int p_state);
|
|
|
|
private:
|
|
void setupUI(const QString &p_title, const QString &p_name);
|
|
QPixmap standardIcon(QMessageBox::Icon p_icon);
|
|
|
|
QString m_path;
|
|
QLabel *m_warningLabel;
|
|
QCheckBox *m_deleteCheck;
|
|
QDialogButtonBox *m_btnBox;
|
|
};
|
|
|
|
#endif // VDELETENOTEBOOKDIALOG_H
|