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 mWmsLegendWidthSpinBox_valueChanged(
double d );
80 void mWmsLegendHeightSpinBox_valueChanged(
double d );
81 void mTitleSpaceBottomSpinBox_valueChanged(
double d );
82 void mGroupSpaceSpinBox_valueChanged(
double d );
83 void mLayerSpaceSpinBox_valueChanged(
double d );
84 void mSymbolSpaceSpinBox_valueChanged(
double d );
85 void mIconLabelSpaceSpinBox_valueChanged(
double d );
86 void mFontColorButton_colorChanged(
const QColor &newFontColor );
87 void mBoxSpaceSpinBox_valueChanged(
double d );
88 void mColumnSpaceSpinBox_valueChanged(
double d );
89 void mLineSpacingSpinBox_valueChanged(
double d );
90 void mCheckBoxAutoUpdate_stateChanged(
int state,
bool userTriggered =
true );
92 void mCheckboxResizeContents_toggled(
bool checked );
94 void mRasterStrokeGroupBox_toggled(
bool state );
95 void mRasterStrokeWidthSpinBox_valueChanged(
double d );
96 void mRasterStrokeColorButton_colorChanged(
const QColor &newColor );
99 void mMoveDownToolButton_clicked();
100 void mMoveUpToolButton_clicked();
101 void mRemoveToolButton_clicked();
102 void mAddToolButton_clicked();
103 void mEditPushButton_clicked();
104 void mCountToolButton_clicked(
bool checked );
105 void mExpressionFilterButton_toggled(
bool checked );
106 void mFilterByMapCheckBox_toggled(
bool checked );
107 void mUpdateAllPushButton_clicked();
108 void mAddGroupToolButton_clicked();
109 void mLayerExpressionButton_clicked();
111 void mFilterLegendByAtlasCheckBox_toggled(
bool checked );
113 void selectedChanged(
const QModelIndex ¤t,
const QModelIndex &previous );
115 void setLegendMapViewData();
119 void setGuiElements();
122 void updateFilterLegendByAtlasButton();
124 void mItemTreeView_doubleClicked(
const QModelIndex &index );
125 void titleFontChanged();
126 void groupFontChanged();
127 void layerFontChanged();
128 void itemFontChanged();
130 void titleAlignmentChanged();
131 void groupAlignmentChanged();
132 void subgroupAlignmentChanged();
133 void itemAlignmentChanged();
134 void arrangementChanged();
136 void spaceBelowSubGroupHeadingChanged(
double space );
137 void spaceBelowGroupHeadingChanged(
double space );
139 void spaceGroupSideChanged(
double space );
140 void spaceSubGroupSideChanged(
double space );
142 void spaceSymbolSideChanged(
double space );
145 QgsLayoutLegendWidget() =
delete;
146 void blockAllSignals(
bool b );
148 QPointer< QgsLayoutItemLegend > mLegend;
165 QgsLayoutLegendMenuProvider(
QgsLayerTreeView *view, QgsLayoutLegendWidget *w );
171 QgsLayoutLegendWidget *mWidget =
nullptr;
174 #include "ui_qgslayoutlegendnodewidgetbase.h"
183 class GUI_EXPORT QgsLayoutLegendNodeWidget:
public QgsPanelWidget,
private Ui::QgsLayoutLegendNodeWidgetBase
195 void insertExpression();
196 void sizeChanged(
double );
197 void customSymbolChanged();
198 void columnBreakToggled(
bool checked );
199 void columnSplitChanged();
207 int mOriginalLegendNodeIndex = -1;
213 #endif //QGSLAYOUTLEGENDWIDGET_H