vnote/src/dialog/vdeletenotebookdialog.h
Le Tan a87048cac2 bug-fix: compare two paths with case convertion on Windows
On Windows, case difference in file name is ignored.
2017-07-03 19:09:50 +08:00

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