QGIS API Documentation 3.99.0-Master (2fe06baccd8)
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#define SIP_NO_FILE
21
22#include "ui_qgsattributesforminitcode.h"
23
24#include "qgis_gui.h"
25
26#include <QWidget>
27
28class QDialog;
29
35class GUI_EXPORT QgsAttributesFormInitCode : public QDialog, private Ui::QgsAttributesFormInitCode
36{
37 Q_OBJECT
38
39 public:
41
48
54 void setInitFunction( const QString &initFunction );
55
61 void setInitFilePath( const QString &initFilePath );
62
68 void setInitCode( const QString &initCode );
69
76
82 QString initFunction() const;
83
89 QString initFilePath() const;
90
96 QString initCode() const;
97
98 private:
99 //Ui::QgsAttributesFormInitCode *ui;
100
101 private slots:
102 void mInitCodeSourceComboBox_currentIndexChanged( int codeSource );
103 void showHelp();
104};
105
106#endif // QGSATTRIBUTESFORMINITCODE_H
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition qgis.h:5515
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.