QGIS API Documentation 3.99.0-Master (a8f284845db)
Loading...
Searching...
No Matches
qgsattributesforminitcode.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsattributesforminitcode.h
3 ---------------------
4 begin : October 2017
5 copyright : (C) 2017 by David Signer
6 email : david at opengis dot ch
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSATTRIBUTESFORMINITCODE_H
17#define QGSATTRIBUTESFORMINITCODE_H
18
19// We don't want to expose this in the public API
20
21#include "ui_qgsattributesforminitcode.h"
22
23#include "qgis_gui.h"
24
25#include <QWidget>
26
27#define SIP_NO_FILE
28
29class QDialog;
30
36class GUI_EXPORT QgsAttributesFormInitCode : public QDialog, private Ui::QgsAttributesFormInitCode
37{
38 Q_OBJECT
39
40 public:
42
49
55 void setInitFunction( const QString &initFunction );
56
62 void setInitFilePath( const QString &initFilePath );
63
69 void setInitCode( const QString &initCode );
70
77
83 QString initFunction() const;
84
90 QString initFilePath() const;
91
97 QString initCode() const;
98
99 private:
100 //Ui::QgsAttributesFormInitCode *ui;
101
102 private slots:
103 void mInitCodeSourceComboBox_currentIndexChanged( int codeSource );
104 void showHelp();
105};
106
107#endif // QGSATTRIBUTESFORMINITCODE_H
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition qgis.h:5831
QString initFilePath() const
Returns the file path for the file containing the init code.
void setCodeSource(Qgis::AttributeFormPythonInitCodeSource source)
Sets the Python init code source.
void setInitFilePath(const QString &initFilePath)
Sets the file path for the file containing the init code.
void setInitFunction(const QString &initFunction)
Sets the name of the init function.
QString initFunction() const
Returns the name of the init function.
void setInitCode(const QString &initCode)
Sets the init code contents.
Qgis::AttributeFormPythonInitCodeSource codeSource() const
Returns the Python init code source.
QString initCode() const
Returns the init code contents.