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 );
173 QgsLayoutLegendWidget *mWidget =
nullptr;
176 #include "ui_qgslayoutlegendnodewidgetbase.h"
185 class GUI_EXPORT QgsLayoutLegendNodeWidget:
public QgsPanelWidget,
private Ui::QgsLayoutLegendNodeWidgetBase
197 void insertExpression();
198 void sizeChanged(
double );
199 void customSymbolChanged();
200 void columnBreakToggled(
bool checked );
201 void columnSplitChanged();
209 int mOriginalLegendNodeIndex = -1;
215 #endif //QGSLAYOUTLEGENDWIDGET_H