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 mLayerSpaceSpinBox_valueChanged(
double d );
86 void mSymbolSpaceSpinBox_valueChanged(
double d );
87 void mIconLabelSpaceSpinBox_valueChanged(
double d );
88 void mFontColorButton_colorChanged(
const QColor &newFontColor );
89 void mBoxSpaceSpinBox_valueChanged(
double d );
90 void mColumnSpaceSpinBox_valueChanged(
double d );
91 void mLineSpacingSpinBox_valueChanged(
double d );
92 void mCheckBoxAutoUpdate_stateChanged(
int state,
bool userTriggered =
true );
94 void mCheckboxResizeContents_toggled(
bool checked );
96 void mRasterStrokeGroupBox_toggled(
bool state );
97 void mRasterStrokeWidthSpinBox_valueChanged(
double d );
98 void mRasterStrokeColorButton_colorChanged(
const QColor &newColor );
101 void mMoveDownToolButton_clicked();
102 void mMoveUpToolButton_clicked();
103 void mRemoveToolButton_clicked();
104 void mAddToolButton_clicked();
105 void mEditPushButton_clicked();
106 void mCountToolButton_clicked(
bool checked );
107 void mExpressionFilterButton_toggled(
bool checked );
108 void mFilterByMapCheckBox_toggled(
bool checked );
109 void mUpdateAllPushButton_clicked();
110 void mAddGroupToolButton_clicked();
111 void mLayerExpressionButton_clicked();
113 void mFilterLegendByAtlasCheckBox_toggled(
bool checked );
115 void selectedChanged(
const QModelIndex ¤t,
const QModelIndex &previous );
117 void setLegendMapViewData();
121 void setGuiElements();
124 void updateFilterLegendByAtlasButton();
126 void mItemTreeView_doubleClicked(
const QModelIndex &index );
127 void titleFontChanged();
128 void groupFontChanged();
129 void layerFontChanged();
130 void itemFontChanged();
132 void titleAlignmentChanged();
133 void groupAlignmentChanged();
134 void subgroupAlignmentChanged();
135 void itemAlignmentChanged();
136 void arrangementChanged();
138 void spaceBelowSubGroupHeadingChanged(
double space );
139 void spaceBelowGroupHeadingChanged(
double space );
141 void spaceGroupSideChanged(
double space );
142 void spaceSubGroupSideChanged(
double space );
144 void spaceSymbolSideChanged(
double space );
147 QgsLayoutLegendWidget() =
delete;
148 void blockAllSignals(
bool b );
150 QPointer< QgsLayoutItemLegend > mLegend;
167 QgsLayoutLegendMenuProvider(
QgsLayerTreeView *view, QgsLayoutLegendWidget *w );
169 QMenu *createContextMenu()
override;
173 QgsLayoutLegendWidget *mWidget =
nullptr;
176 #include "ui_qgslayoutlegendnodewidgetbase.h"
185 class GUI_EXPORT QgsLayoutLegendNodeWidget:
public QgsPanelWidget,
private Ui::QgsLayoutLegendNodeWidgetBase
199 void insertExpression();
200 void sizeChanged(
double );
201 void customSymbolChanged();
202 void colorRampLegendChanged();
203 void columnBreakToggled(
bool checked );
204 void columnSplitChanged();
212 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