mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
36 lines
647 B
C
36 lines
647 B
C
|
#ifndef SAVEPROJECTDIALOG_H
|
||
|
#define SAVEPROJECTDIALOG_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QAbstractButton>
|
||
|
|
||
|
#include <memory>
|
||
|
|
||
|
namespace Ui
|
||
|
{
|
||
|
class SaveProjectDialog;
|
||
|
}
|
||
|
|
||
|
class SaveProjectDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
enum Result { Saved, Rejected, Destructive };
|
||
|
|
||
|
explicit SaveProjectDialog(bool quit, QWidget *parent = 0);
|
||
|
~SaveProjectDialog();
|
||
|
|
||
|
virtual void accept() override;
|
||
|
virtual void reject() override;
|
||
|
|
||
|
private slots:
|
||
|
void on_buttonBox_clicked(QAbstractButton *button);
|
||
|
void on_selectProjectsDirButton_clicked();
|
||
|
|
||
|
private:
|
||
|
std::unique_ptr<Ui::SaveProjectDialog> ui;
|
||
|
};
|
||
|
|
||
|
#endif // SAVEPROJECTDIALOG_H
|