16#ifndef QGSVALUEMAPCONFIGDLG_H
17#define QGSVALUEMAPCONFIGDLG_H
19#include "ui_qgsvaluemapconfigdlgbase.h"
35 private Ui::QgsValueMapWidget
41 QVariantMap
config()
override;
51 void updateMap(
const QMap<QString, QVariant> &map,
bool insertNull );
60 void updateMap(
const QList<QPair<QString, QVariant>> &list,
bool insertNull );
75 static void populateComboBox( QComboBox *comboBox,
const QVariantMap &configuration,
bool skipNull );
77 bool eventFilter( QObject *watched, QEvent *event )
override;
80 void setRow(
int row,
const QString &value,
const QString &description );
87 QString checkValueLength(
const QString &value );
91 void copySelectionToClipboard();
92 void vCellChanged(
int row,
int column );
93 void addNullButtonPushed();
94 void removeSelectedButtonPushed();
95 void loadFromLayerButtonPushed();
96 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.