Made a step in removing knowledge of DatabaseWindow from QueryTab as an effort to move
in the direction of a plugin system. DatabaseWindow now passes a Context to QueryTab and other pages that give those pages an API for passing information up the system without knowing anything about the sytem.
This commit is contained in:
parent
f6ea2ce0a6
commit
2a7e505dbf
13 changed files with 220 additions and 113 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#define CODEGENERATOR_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "PlgPage.h"
|
||||
#include "PluginContentWidget.h"
|
||||
#include "Pgsql_declare.h"
|
||||
|
||||
namespace Ui {
|
||||
|
|
@ -11,12 +11,12 @@ class CodeGenerator;
|
|||
|
||||
class PgDatabaseCatalog;
|
||||
|
||||
class CodeGenerator : public PlgPage
|
||||
class CodeGenerator : public PluginContentWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CodeGenerator(QWidget *parent = nullptr);
|
||||
CodeGenerator(IPluginContentWidgetContext *context, QWidget *parent = nullptr);
|
||||
~CodeGenerator();
|
||||
|
||||
void Init(std::shared_ptr<PgDatabaseCatalog> catalog, QString query, std::shared_ptr<const Pgsql::Result> dbres);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue