15#ifndef QGSRULEBASEDLABELINGWIDGET_H
16#define QGSRULEBASEDLABELINGWIDGET_H
25#include "ui_qgsrulebasedlabelingwidget.h"
49 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
50 QVariant data(
const QModelIndex &index,
int role = Qt::DisplayRole )
const override;
51 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const override;
52 int rowCount(
const QModelIndex &parent = QModelIndex() )
const override;
53 int columnCount(
const QModelIndex & = QModelIndex() )
const override;
55 QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const override;
57 QModelIndex parent(
const QModelIndex &index )
const override;
60 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole )
override;
63 Qt::DropActions supportedDropActions()
const override;
64 QStringList mimeTypes()
const override;
65 QMimeData *mimeData(
const QModelIndexList &indexes )
const override;
66 bool dropMimeData(
const QMimeData *data, Qt::DropAction action,
int row,
int column,
const QModelIndex &parent )
override;
68 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex() )
override;
78 void updateRule(
const QModelIndex &parent,
int row );
119 void setDockMode(
bool dockMode )
override;
124 void editRule(
const QModelIndex &index );
129 void liveUpdateRuleFromPanel();
140 QAction *mCopyAction =
nullptr;
141 QAction *mPasteAction =
nullptr;
142 QAction *mDeleteAction =
nullptr;
151#include <QDialogButtonBox>
153#include "ui_qgslabelingrulepropswidget.h"
179 void setDockMode(
bool dockMode )
override;
193 void buildExpression();
201 QgsLabelingGui *mLabelingGui =
nullptr;
245 void buildExpression();
250 void accept()
override;
257 QDialogButtonBox *buttonBox =
nullptr;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Dialog for editing labeling rule.
QgsRuleBasedLabeling::Rule * rule()
Returns the current set rule.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
Contains settings for how a map layer will be labeled.
Model for rule based rendering rules view.
void finishedAddingRules()
Notify the model that one is done inserting new rules.
void removeRule(const QModelIndex &index)
Removes the rule at the specified position.
void willAddRules(const QModelIndex &parent, int count)
Notify the model that new rules will be added.
void updateRule(const QModelIndex &index)
Update rule and all its descendants.
A child rule for QgsRuleBasedLabeling.
Represents a vector layer which manages a vector based data sets.