blob: 45bc333862f3a2c8e728ed18156a05092c1b6c66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef POPULATECONFIGDIALOG_H
#define POPULATECONFIGDIALOG_H
#include "guiSQLiteStudio_global.h"
#include <QDialog>
class PopulateEngine;
class ConfigMapper;
class CfgEntry;
namespace Ui {
class PopulateConfigDialog;
}
class GUI_API_EXPORT PopulateConfigDialog : public QDialog
{
Q_OBJECT
public:
explicit PopulateConfigDialog(PopulateEngine* engine, const QString& column, const QString& pluginName, QWidget *parent = 0);
~PopulateConfigDialog();
int exec();
protected:
void showEvent(QShowEvent* e);
private:
void init();
Ui::PopulateConfigDialog *ui = nullptr;
PopulateEngine* engine = nullptr;
ConfigMapper* configMapper = nullptr;
QHash<CfgEntry*,bool> pluginConfigOk;
QString column;
QString pluginName;
QWidget* innerWidget = nullptr;
private slots:
void validateEngine();
void validationResultFromPlugin(bool valid, CfgEntry* key, const QString& msg);
void stateUpdateRequestFromPlugin(CfgEntry* key, bool visible, bool enabled);
void widgetPropertyFromPlugin(CfgEntry* key, const QString& propName, const QVariant& value);
void updateState();
};
#endif // POPULATECONFIGDIALOG_H
|