QGIS API Documentation
2.4.0-Chugiak
|
#include <qgsattributetypeloaddialog.h>
Public Member Functions | |
QgsAttributeTypeLoadDialog (QgsVectorLayer *vl) | |
~QgsAttributeTypeLoadDialog () | |
void | accept () |
Overloaded accept method which will write the feature field values, then delegate to QDialog::accept() More... | |
void | setVectorLayer (QgsVectorLayer *layer) |
Sets predefined vector layer for selection of data. More... | |
QMap< QString, QVariant > & | valueMap () |
Getter to value map which is currently active. More... | |
bool | insertNull () |
Returns true if the "Add NULL value" checkbox has been checked. More... | |
Private Slots | |
void | fillComboBoxes (int layerIndex) |
Slot which reacts to change of selected layer to fill other two comboboxes with correct data. More... | |
void | createPreview (int fieldIndex, bool full=false) |
Slot to react to button push or change of selected column for display of preview. More... | |
void | previewButtonPushed () |
Slot to react to value Preview button pushed. More... | |
Private Member Functions | |
void | fillLayerList () |
Internal function to fill the list of layers. More... | |
void | loadDataToValueMap () |
Function to transfer data from layer to value map used in editing. More... | |
Private Attributes | |
QgsVectorLayer * | mLayer |
int | mIndex |
QMap< QString, QVariant > | mValueMap |
QgsVectorLayer::EditType | mEditType |
Definition at line 31 of file qgsattributetypeloaddialog.h.
QgsAttributeTypeLoadDialog::QgsAttributeTypeLoadDialog | ( | QgsVectorLayer * | vl | ) |
Definition at line 37 of file qgsattributetypeloaddialog.cpp.
References createPreview(), fillComboBoxes(), fillLayerList(), and previewButtonPushed().
QgsAttributeTypeLoadDialog::~QgsAttributeTypeLoadDialog | ( | ) |
Definition at line 52 of file qgsattributetypeloaddialog.cpp.
void QgsAttributeTypeLoadDialog::accept | ( | ) |
Overloaded accept method which will write the feature field values, then delegate to QDialog::accept()
Definition at line 201 of file qgsattributetypeloaddialog.cpp.
References loadDataToValueMap().
|
privateslot |
Slot to react to button push or change of selected column for display of preview.
fieldIndex | indexOfChangedField |
full | flag if all values should be displayed or just preview of first 10 |
Definition at line 108 of file qgsattributetypeloaddialog.cpp.
References QgsFeature::attribute(), QgsVectorLayer::getFeatures(), QgsMapLayerRegistry::instance(), QgsMapLayerRegistry::mapLayer(), QgsFeatureIterator::nextFeature(), QgsFeatureRequest::NoGeometry, and valueMap().
Referenced by previewButtonPushed(), and QgsAttributeTypeLoadDialog().
|
privateslot |
Slot which reacts to change of selected layer to fill other two comboboxes with correct data.
layerIndex | index of layer which was selected |
Definition at line 81 of file qgsattributetypeloaddialog.cpp.
References QgsVectorLayer::dataProvider(), QgsVectorDataProvider::fieldNameMap(), QgsMapLayerRegistry::instance(), and QgsMapLayerRegistry::mapLayer().
Referenced by QgsAttributeTypeLoadDialog().
|
private |
Internal function to fill the list of layers.
Definition at line 70 of file qgsattributetypeloaddialog.cpp.
References QgsMapLayer::id(), QgsMapLayerRegistry::instance(), and QgsMapLayer::name().
Referenced by QgsAttributeTypeLoadDialog().
bool QgsAttributeTypeLoadDialog::insertNull | ( | ) |
Returns true if the "Add NULL value" checkbox has been checked.
Definition at line 165 of file qgsattributetypeloaddialog.cpp.
|
private |
Function to transfer data from layer to value map used in editing.
Definition at line 170 of file qgsattributetypeloaddialog.cpp.
References QgsFeature::attribute(), QgsVectorLayer::getFeatures(), QgsMapLayerRegistry::instance(), QgsMapLayerRegistry::mapLayer(), mValueMap, QgsFeatureIterator::nextFeature(), and QgsFeatureRequest::NoGeometry.
Referenced by accept().
|
privateslot |
Slot to react to value Preview button pushed.
Definition at line 65 of file qgsattributetypeloaddialog.cpp.
References createPreview().
Referenced by QgsAttributeTypeLoadDialog().
void QgsAttributeTypeLoadDialog::setVectorLayer | ( | QgsVectorLayer * | layer | ) |
Sets predefined vector layer for selection of data.
layer | Vector layer which is to be set as predefined one |
Definition at line 58 of file qgsattributetypeloaddialog.cpp.
References mLayer.
QMap< QString, QVariant > & QgsAttributeTypeLoadDialog::valueMap | ( | ) |
Getter to value map which is currently active.
Definition at line 160 of file qgsattributetypeloaddialog.cpp.
References mValueMap.
Referenced by createPreview().
|
private |
Definition at line 101 of file qgsattributetypeloaddialog.h.
|
private |
Definition at line 97 of file qgsattributetypeloaddialog.h.
|
private |
Definition at line 96 of file qgsattributetypeloaddialog.h.
Referenced by setVectorLayer().
|
private |
Definition at line 100 of file qgsattributetypeloaddialog.h.
Referenced by loadDataToValueMap(), and valueMap().