18#ifndef QGSLAYOUTLEGENDWIDGET_H
19#define QGSLAYOUTLEGENDWIDGET_H
25#include "ui_qgslayoutlegendwidgetbase.h"
29#include <QItemDelegate>
58 void resetLayerNodeToDefaults();
64 void setCurrentNodeStyleFromAction();
72 void mWrapCharLineEdit_textChanged(
const QString &text );
73 void mTitleLineEdit_textChanged(
const QString &text );
74 void mColumnCountSpinBox_valueChanged(
int c );
75 void mSplitLayerCheckBox_toggled(
bool checked );
76 void mEqualColumnWidthCheckBox_toggled(
bool checked );
77 void mSymbolWidthSpinBox_valueChanged(
double d );
78 void mSymbolHeightSpinBox_valueChanged(
double d );
79 void mMaxSymbolSizeSpinBox_valueChanged(
double d );
80 void mMinSymbolSizeSpinBox_valueChanged(
double d );
81 void mWmsLegendWidthSpinBox_valueChanged(
double d );
82 void mWmsLegendHeightSpinBox_valueChanged(
double d );
83 void mTitleSpaceBottomSpinBox_valueChanged(
double d );
84 void mGroupSpaceSpinBox_valueChanged(
double d );
85 void mGroupIndentSpinBox_valueChanged(
double d );
86 void mSubgroupIndentSpinBox_valueChanged(
double d );
87 void mLayerSpaceSpinBox_valueChanged(
double d );
88 void mSymbolSpaceSpinBox_valueChanged(
double d );
89 void mIconLabelSpaceSpinBox_valueChanged(
double d );
90 void mFontColorButton_colorChanged(
const QColor &newFontColor );
91 void mBoxSpaceSpinBox_valueChanged(
double d );
92 void mColumnSpaceSpinBox_valueChanged(
double d );
93 void mLineSpacingSpinBox_valueChanged(
double d );
94 void mCheckBoxAutoUpdate_stateChanged(
int state,
bool userTriggered =
true );
96 void mCheckboxResizeContents_toggled(
bool checked );
98 void mRasterStrokeGroupBox_toggled(
bool state );
99 void mRasterStrokeWidthSpinBox_valueChanged(
double d );
100 void mRasterStrokeColorButton_colorChanged(
const QColor &newColor );
103 void mMoveDownToolButton_clicked();
104 void mMoveUpToolButton_clicked();
105 void mRemoveToolButton_clicked();
106 void mAddToolButton_clicked();
107 void mEditPushButton_clicked();
108 void mCountToolButton_clicked(
bool checked );
109 void mExpressionFilterButton_toggled(
bool checked );
110 void mFilterByMapCheckBox_toggled(
bool checked );
111 void mUpdateAllPushButton_clicked();
112 void mAddGroupToolButton_clicked();
113 void mLayerExpressionButton_clicked();
115 void mFilterLegendByAtlasCheckBox_toggled(
bool checked );
117 void selectedChanged(
const QModelIndex ¤t,
const QModelIndex &previous );
119 void setLegendMapViewData();
123 void setGuiElements();
126 void updateFilterLegendByAtlasButton();
128 void mItemTreeView_doubleClicked(
const QModelIndex &index );
129 void titleFontChanged();
130 void groupFontChanged();
131 void layerFontChanged();
132 void itemFontChanged();
134 void titleAlignmentChanged();
135 void groupAlignmentChanged();
136 void subgroupAlignmentChanged();
137 void itemAlignmentChanged();
138 void arrangementChanged();
140 void spaceBelowSubGroupHeadingChanged(
double space );
141 void spaceBelowGroupHeadingChanged(
double space );
143 void spaceGroupSideChanged(
double space );
144 void spaceSubGroupSideChanged(
double space );
146 void spaceSymbolSideChanged(
double space );
149 QgsLayoutLegendWidget() =
delete;
150 void blockAllSignals(
bool b );
152 QPointer< QgsLayoutItemLegend > mLegend;
169 QgsLayoutLegendMenuProvider(
QgsLayerTreeView *view, QgsLayoutLegendWidget *w );
171 QMenu *createContextMenu()
override;
175 QgsLayoutLegendWidget *mWidget =
nullptr;
178#include "ui_qgslayoutlegendnodewidgetbase.h"
187class GUI_EXPORT QgsLayoutLegendNodeWidget:
public QgsPanelWidget,
private Ui::QgsLayoutLegendNodeWidgetBase
201 void insertExpression();
202 void sizeChanged(
double );
203 void customSymbolChanged();
204 void colorRampLegendChanged();
205 void columnBreakToggled(
bool checked );
206 void columnSplitChanged();
214 int mOriginalLegendNodeIndex = -1;
Layer tree node points to a map layer.
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...
This class is a base class for nodes in a layer tree.
The QgsLayerTreeView class extends QTreeView and provides some additional functionality when working ...
A layout item subclass for map legends.
Base class for graphical items within a QgsLayout.
Map canvas is a class for displaying all GIS data types on a canvas.
Interface for master layout type objects, such as print layouts and reports.
QgsLayerTreeModelLegendNode * legendNode(const QString &rule, QgsLayerTreeModel &model)
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c