19 #ifndef QGSSQLCOMPOSERDIALOG_H 20 #define QGSSQLCOMPOSERDIALOG_H 22 #include "ui_qgssqlcomposerdialogbase.h" 28 #include <QStringList> 56 virtual void tableSelected(
const QString& name ) = 0;
98 Function(
const QString& nameIn,
int args ) : name( nameIn ), minArgs( args ), maxArgs( args ) {}
100 Function(
const QString& nameIn,
int minArgs,
int maxArgsIn ) : name( nameIn ), minArgs( minArgs ), maxArgs( maxArgsIn ) {}
110 void setSql(
const QString& sql );
126 void addSpatialPredicates(
const QStringList& list );
137 void setSupportMultipleTables(
bool bMultipleTables,
QString mainTypename =
QString() );
152 void accept()
override;
154 void on_mTablesCombo_currentIndexChanged(
int );
155 void on_mColumnsCombo_currentIndexChanged(
int );
156 void on_mSpatialPredicatesCombo_currentIndexChanged(
int );
157 void on_mFunctionsCombo_currentIndexChanged(
int );
158 void on_mOperatorsCombo_currentIndexChanged(
int );
159 void on_mAddJoinButton_clicked();
160 void on_mRemoveJoinButton_clicked();
161 void on_mTableJoins_itemSelectionChanged();
166 void buildSQLFromFields();
167 void splitSQLIntoFields();
175 bool mAlreadyModifyingFields;
185 void loadTableColumns(
const QString& table );
186 void functionCurrentIndexChanged(
QComboBox* combo,
static const Qt::WindowFlags ModalDialogFlags
Function(const QString &nameIn, int args)
constructor with name and fixed number of arguments
Callback to do actions on table selection.
Function(const QString &nameIn, int minArgs, int maxArgsIn)
constructor with name and min,max number of arguments
QList< Argument > argumentList
list of arguments. May be empty despite minArgs > 0
int maxArgs
maximum number of argument (or -1 if unknown)
QPair< QString, QString > PairNameTitle
pair (name, title)
static void run(const QString &context)
QPair< QString, QString > PairNameType
pair (name, type)
Function()
default constructor
description of server functions
Callback to do validation check on dialog validation.
QString returnType
return type, or empty if unknown
Argument(const QString &nameIn=QString(), const QString &typeIn=QString())
constructor
int minArgs
minimum number of argument (or -1 if unknown)
QString type
type, or empty if unknown