QGIS API Documentation  3.2.0-Bonn (bc43194)
qgseditformconfig_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgseditformconfig_p - %{Cpp:License:ClassName}
3 
4  ---------------------
5  begin : 18.8.2016
6  copyright : (C) 2016 by Matthias Kuhn
7  email : [email protected]
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 #ifndef QGSEDITFORMCONFIG_P_H
17 #define QGSEDITFORMCONFIG_P_H
18 
19 #include <QMap>
20 
21 #include "qgsfields.h"
22 #include "qgseditformconfig.h"
23 
25 
26 class QgsEditFormConfigPrivate : public QSharedData
27 {
28  public:
29  QgsEditFormConfigPrivate()
30  : mInvisibleRootContainer( new QgsAttributeEditorContainer( QString(), nullptr ) )
31  {}
32 
33  QgsEditFormConfigPrivate( const QgsEditFormConfigPrivate &o )
34  : QSharedData( o )
35  , mInvisibleRootContainer( static_cast<QgsAttributeEditorContainer *>( o.mInvisibleRootContainer->clone( nullptr ) ) )
36  , mConfiguredRootContainer( o.mConfiguredRootContainer )
37  , mFieldEditables( o.mFieldEditables )
38  , mLabelOnTop( o.mLabelOnTop )
39  , mWidgetConfigs( o.mWidgetConfigs )
40  , mEditorLayout( o.mEditorLayout )
41  , mUiFormPath( o.mUiFormPath )
42  , mInitFunction( o.mInitFunction )
43  , mInitCodeSource( o.mInitCodeSource )
44  , mInitCode( o.mInitCode )
45  , mSuppressForm( o.mSuppressForm )
46  , mFields( o.mFields )
47  {}
48 
49  ~QgsEditFormConfigPrivate()
50  {
51  delete mInvisibleRootContainer;
52  }
53 
55  QgsAttributeEditorContainer *mInvisibleRootContainer = nullptr;
56 
58  bool mConfiguredRootContainer = false;
59 
60  QMap< QString, bool> mFieldEditables;
61  QMap< QString, bool> mLabelOnTop;
62 
63  QMap<QString, QVariantMap > mWidgetConfigs;
64 
67 
69  QString mUiFormPath;
71  QString mInitFunction;
73  QString mInitFilePath;
77  QString mInitCode;
78 
81 
82  QgsFields mFields;
83 };
84 
86 
87 #endif // QGSEDITFORMCONFIG_P_H
EditorLayout
The different types to layout the attribute editor.
Container of fields for a vector layer.
Definition: qgsfields.h:42
Use the application-wide setting.
Do not use Python code at all.
FeatureFormSuppress
Types of feature form suppression after feature creation.
Autogenerate a simple tabular layout for the form.
This is a container for attribute editors, used to group them visually in the attribute form if it is...
PythonInitCodeSource
The Python init code source options.