16#ifndef QGSVALUEMAPCONFIGDLG_H
17#define QGSVALUEMAPCONFIGDLG_H
19#include "ui_qgsvaluemapconfigdlgbase.h"
40 QVariantMap
config()
override;
50 void updateMap(
const QMap<QString, QVariant> &map,
bool insertNull );
59 void updateMap(
const QList<QPair<QString, QVariant>> &list,
bool insertNull );
74 static void populateComboBox( QComboBox *comboBox,
const QVariantMap &configuration,
bool skipNull );
76 bool eventFilter( QObject *watched, QEvent *event )
override;
79 void setRow(
int row,
const QString &value,
const QString &description );
86 QString checkValueLength(
const QString &value );
90 void copySelectionToClipboard();
91 void vCellChanged(
int row,
int column );
92 void addNullButtonPushed();
93 void removeSelectedButtonPushed();
94 void loadFromLayerButtonPushed();
95 void loadFromCSVButtonPushed();
void loadMapFromCSV(const QString &filePath)
Updates the displayed table with the values from a CSV file.
bool eventFilter(QObject *watched, QEvent *event) override
friend class TestQgsValueMapConfigDlg
QgsValueMapConfigDlg(QgsVectorLayer *vl, int fieldIdx, QWidget *parent)
void updateMap(const QMap< QString, QVariant > &map, bool insertNull)
Updates the displayed table with the values from map.
static void populateComboBox(QComboBox *comboBox, const QVariantMap &configuration, bool skipNull)
Populates a comboBox with the appropriate entries based on a value map configuration.
QVariantMap config() override
Create a configuration from the current GUI state.
Represents a vector layer which manages a vector based dataset.