|
| QgsFieldMappingWidget (QWidget *parent=nullptr, const QgsFields &sourceFields=QgsFields(), const QgsFields &destinationFields=QgsFields(), const QMap< QString, QString > &expressions=QMap< QString, QString >()) |
| Constructs a QgsFieldMappingWidget from a set of sourceFields and destinationFields, initial values for the expressions can be optionally specified through expressions which is a map from the original field name to the corresponding expression. More...
|
|
bool | destinationEditable () const |
| Returns true if the destination fields are editable in the model. More...
|
|
QMap< QString, QgsProperty > | fieldPropertyMap () const |
| Returns a map of destination field name to QgsProperty definition for field value, representing the current status of the widget. More...
|
|
QList< QgsFieldMappingModel::Field > | mapping () const |
| Returns a list of Field objects representing the current status of the underlying mapping model. More...
|
|
QgsFieldMappingModel * | model () const |
| Returns the underlying mapping model. More...
|
|
void | registerExpressionContextGenerator (const QgsExpressionContextGenerator *generator) |
| Register an expression context generator class that will be used to retrieve an expression context for the widget. More...
|
|
void | scrollTo (const QModelIndex &index) const |
| Scroll the fields view to index. More...
|
|
QItemSelectionModel * | selectionModel () |
| Returns the selection model. More...
|
|
void | setDestinationEditable (bool editable) |
| Sets the destination fields editable state to editable. More...
|
|
void | setDestinationFields (const QgsFields &destinationFields, const QMap< QString, QString > &expressions=QMap< QString, QString >()) |
| Set destination fields to destinationFields in the underlying model, initial values for the expressions can be optionally specified through expressions which is a map from the original field name to the corresponding expression. More...
|
|
void | setFieldPropertyMap (const QMap< QString, QgsProperty > &map) |
| Sets a map of destination field name to QgsProperty definition for field value. More...
|
|
void | setSourceFields (const QgsFields &sourceFields) |
| Set source fields of the underlying mapping model to sourceFields. More...
|
|
void | setSourceLayer (QgsVectorLayer *layer) |
| Sets a source layer to use when generating expression previews in the widget. More...
|
|
QgsVectorLayer * | sourceLayer () |
| Returns the source layer for use when generating expression previews. More...
|
|
| QgsPanelWidget (QWidget *parent=nullptr) |
| Base class for any widget that can be shown as a inline panel. More...
|
|
virtual bool | applySizeConstraintsToStack () const |
| Returns true if the size constraints and hints for the panel widget should be applied to the parent QgsPanelWidgetStack which this panel is shown in. More...
|
|
bool | autoDelete () |
| The the auto delete property on the widget. More...
|
|
void | connectChildPanel (QgsPanelWidget *panel) |
| Connect the given sub panel widgets showPanel signals to this current panels main showPanel event to bubble up to the user. More...
|
|
void | connectChildPanels (const QList< QgsPanelWidget * > &panels) |
| Connect the given sub panel widgets showPanel signals to this current panels main showPanel event to bubble up to the user. More...
|
|
bool | dockMode () |
| Returns the dock mode state. More...
|
|
virtual QMenu * | menuButtonMenu () |
| Returns the menu to use for the menu button for this panel, or nullptr if no menu button is required. More...
|
|
virtual QString | menuButtonTooltip () const |
| Returns the (translated) tooltip text to use for the menu button for this panel. More...
|
|
QString | panelTitle () |
| The title of the panel. More...
|
|
void | setAutoDelete (bool autoDelete) |
| The the auto delete property on the widget. More...
|
|
virtual void | setDockMode (bool dockMode) |
| Set the widget in dock mode which tells the widget to emit panel widgets and not open dialogs. More...
|
|
void | setPanelTitle (const QString &panelTitle) |
| Set the title of the panel when shown in the interface. More...
|
|