QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
vector
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
29
class
QDialog;
30
36
class
GUI_EXPORT
QgsAttributesFormInitCode
:
public
QDialog,
private
Ui::QgsAttributesFormInitCode
37
{
38
Q_OBJECT
39
40
public
:
41
explicit
QgsAttributesFormInitCode
();
42
48
void
setCodeSource
(
Qgis::AttributeFormPythonInitCodeSource
source );
49
55
void
setInitFunction
(
const
QString &
initFunction
);
56
62
void
setInitFilePath
(
const
QString &
initFilePath
);
63
69
void
setInitCode
(
const
QString &
initCode
);
70
76
Qgis::AttributeFormPythonInitCodeSource
codeSource
()
const
;
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
Qgis::AttributeFormPythonInitCodeSource
AttributeFormPythonInitCodeSource
The Python init code source for attribute forms.
Definition
qgis.h:6335
QgsAttributesFormInitCode::initFilePath
QString initFilePath() const
Returns the file path for the file containing the init code.
Definition
qgsattributesforminitcode.cpp:77
QgsAttributesFormInitCode::setCodeSource
void setCodeSource(Qgis::AttributeFormPythonInitCodeSource source)
Sets the Python init code source.
Definition
qgsattributesforminitcode.cpp:50
QgsAttributesFormInitCode::setInitFilePath
void setInitFilePath(const QString &initFilePath)
Sets the file path for the file containing the init code.
Definition
qgsattributesforminitcode.cpp:59
QgsAttributesFormInitCode::setInitFunction
void setInitFunction(const QString &initFunction)
Sets the name of the init function.
Definition
qgsattributesforminitcode.cpp:55
QgsAttributesFormInitCode::initFunction
QString initFunction() const
Returns the name of the init function.
Definition
qgsattributesforminitcode.cpp:73
QgsAttributesFormInitCode::QgsAttributesFormInitCode
QgsAttributesFormInitCode()
Definition
qgsattributesforminitcode.cpp:30
QgsAttributesFormInitCode::setInitCode
void setInitCode(const QString &initCode)
Sets the init code contents.
Definition
qgsattributesforminitcode.cpp:63
QgsAttributesFormInitCode::codeSource
Qgis::AttributeFormPythonInitCodeSource codeSource() const
Returns the Python init code source.
Definition
qgsattributesforminitcode.cpp:68
QgsAttributesFormInitCode::initCode
QString initCode() const
Returns the init code contents.
Definition
qgsattributesforminitcode.cpp:81
Generated on
for QGIS API Documentation by
1.17.0