ExportDialog first part code

This commit is contained in:
Rafael 2016-04-26 23:29:16 +02:00
parent b690db4a2d
commit a8ab6ce298
2 changed files with 14 additions and 0 deletions

View file

@ -24,6 +24,7 @@ ExportDialog::ExportDialog(QWidget *parent) :
ui(new Ui::ExportDialog) ui(new Ui::ExportDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
success = false;
} }
ExportDialog::~ExportDialog() ExportDialog::~ExportDialog()
@ -31,7 +32,17 @@ ExportDialog::~ExportDialog()
delete ui; delete ui;
} }
bool ExportDialog::isSucceeded()
{
return success;
}
void ExportDialog::on_cmdSnapmaticClose_clicked() void ExportDialog::on_cmdSnapmaticClose_clicked()
{ {
this->close(); this->close();
} }
void ExportDialog::setupPictureExport()
{
ui->swExport->setCurrentWidget(ui->pageSnapmatic);
}

View file

@ -31,6 +31,8 @@ class ExportDialog : public QDialog
public: public:
explicit ExportDialog(QWidget *parent = 0); explicit ExportDialog(QWidget *parent = 0);
void setupPictureExport();
bool isSucceeded();
~ExportDialog(); ~ExportDialog();
private slots: private slots:
@ -38,6 +40,7 @@ private slots:
private: private:
Ui::ExportDialog *ui; Ui::ExportDialog *ui;
bool success;
}; };
#endif // EXPORTDIALOG_H #endif // EXPORTDIALOG_H