2017-12-28 07:29:07 +01:00
|
|
|
#ifndef CREATEDATABASEDIALOG_H
|
|
|
|
|
#define CREATEDATABASEDIALOG_H
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
2022-05-24 18:54:13 +02:00
|
|
|
#include "catalog\PgDatabase.h"
|
|
|
|
|
|
|
|
|
|
class PgDatabaseCatalog;
|
|
|
|
|
|
2017-12-28 07:29:07 +01:00
|
|
|
namespace Ui {
|
|
|
|
|
class CreateDatabaseDialog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class CreateDatabaseDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2022-05-24 18:54:13 +02:00
|
|
|
CreateDatabaseDialog(std::shared_ptr<PgDatabaseCatalog> catalog, QWidget *parent = 0);
|
2017-12-28 07:29:07 +01:00
|
|
|
~CreateDatabaseDialog();
|
|
|
|
|
|
2022-05-24 18:54:13 +02:00
|
|
|
private slots:
|
|
|
|
|
void on_tabWidget_currentChanged(int index);
|
|
|
|
|
|
2017-12-28 07:29:07 +01:00
|
|
|
private:
|
|
|
|
|
Ui::CreateDatabaseDialog *ui;
|
2022-05-24 18:54:13 +02:00
|
|
|
|
|
|
|
|
std::shared_ptr<PgDatabaseCatalog> m_catalog;
|
|
|
|
|
PgDatabase definition;
|
2017-12-28 07:29:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // CREATEDATABASEDIALOG_H
|