35 lines
561 B
C++
35 lines
561 B
C++
#ifndef SAVEDIALOG_H
|
|
#define SAVEDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QAbstractButton>
|
|
|
|
namespace Ui {
|
|
class SaveDialog;
|
|
}
|
|
|
|
class SaveDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SaveDialog(QWidget *parent = nullptr, const QString &aFileName = "");
|
|
~SaveDialog();
|
|
|
|
bool Cancelled() const;
|
|
bool Saved() const;
|
|
|
|
void reject() override;
|
|
|
|
private slots:
|
|
void on_buttonBox_clicked(QAbstractButton *button);
|
|
|
|
private:
|
|
Ui::SaveDialog *ui;
|
|
QString mFileName;
|
|
bool mCanceled;
|
|
bool mSaved;
|
|
};
|
|
|
|
#endif // SAVEDIALOG_H
|