18 #ifndef QGSLAYOUTMAPWIDGET_H
19 #define QGSLAYOUTMAPWIDGET_H
25 #include "ui_qgslayoutmapwidgetbase.h"
26 #include "ui_qgslayoutmaplabelingwidgetbase.h"
56 void mScaleLineEdit_editingFinished();
57 void setToMapCanvasExtent();
58 void setToMapCanvasScale();
59 void viewExtentInCanvas();
60 void viewScaleInCanvas();
62 void mFollowVisibilityPresetCheckBox_stateChanged(
int state );
63 void mKeepLayerListCheckBox_stateChanged(
int state );
64 void mKeepLayerStylesCheckBox_stateChanged(
int state );
65 void mDrawCanvasItemsCheckBox_stateChanged(
int state );
67 void mOverviewBlendModeComboBox_currentIndexChanged(
int index );
68 void mOverviewInvertCheckbox_toggled(
bool state );
69 void mOverviewCenterCheckbox_toggled(
bool state );
70 void overviewStackingChanged(
int value );
71 void overviewStackingLayerChanged(
QgsMapLayer *layer );
73 void mXMinLineEdit_editingFinished();
74 void mXMaxLineEdit_editingFinished();
75 void mYMinLineEdit_editingFinished();
76 void mYMaxLineEdit_editingFinished();
78 void mAtlasMarginRadio_toggled(
bool checked );
80 void mAtlasCheckBox_toggled(
bool checked );
81 void mAtlasMarginSpinBox_valueChanged(
int value );
82 void mAtlasFixedScaleRadio_toggled(
bool checked );
83 void mAtlasPredefinedScaleRadio_toggled(
bool checked );
85 void mAddGridPushButton_clicked();
86 void mRemoveGridPushButton_clicked();
87 void mGridUpButton_clicked();
88 void mGridDownButton_clicked();
91 void mGridListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous );
92 void mGridListWidget_itemChanged( QListWidgetItem *item );
93 void mGridPropertiesButton_clicked();
96 void mAddOverviewPushButton_clicked();
97 void mRemoveOverviewPushButton_clicked();
98 void mOverviewUpButton_clicked();
99 void mOverviewDownButton_clicked();
101 void mOverviewCheckBox_toggled(
bool state );
102 void mOverviewListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous );
103 void mOverviewListWidget_itemChanged( QListWidgetItem *item );
104 void setOverviewItemsEnabled(
bool enabled );
106 void blockOverviewItemsSignals(
bool block );
108 void mTemporalCheckBox_toggled(
bool checked );
109 void updateTemporalExtent();
116 void populateDataDefinedButtons();
121 void updateGuiElements();
127 void compositionAtlasToggled(
bool atlasEnabled );
129 void aboutToShowKeepLayersVisibilityPresetsMenu();
131 void followVisibilityPresetSelected(
int currentIndex );
132 void keepLayersVisibilityPresetSelected();
134 void onMapThemesChanged();
137 void overviewSymbolChanged();
138 void showLabelSettings();
139 void switchToMoveContentTool();
140 void aboutToShowBookmarkMenu();
143 QPointer< QgsLayoutItemMap > mMapItem;
147 QPointer< QgsLayoutMapLabelingWidget > mLabelWidget;
148 QMenu *mBookmarkMenu =
nullptr;
152 void updateComposerExtentFromGui();
155 void blockAllSignals(
bool b );
157 void rotationChanged(
double value );
160 void toggleAtlasScalingOptionsByLayerType();
163 void updateMapForAtlas();
166 bool hasPredefinedScales()
const;
168 QListWidgetItem *addGridListItem(
const QString &
id,
const QString &name );
170 void loadGridEntries();
172 QListWidgetItem *addOverviewListItem(
const QString &
id,
const QString &name );
174 void loadOverviewEntries();
176 void storeCurrentLayerSet();
182 QList<QgsMapLayer *> orderedPresetVisibleLayers(
const QString &name )
const;
201 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
202 QVariant data(
const QModelIndex &index,
int role )
const override;
203 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
204 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
208 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent )
const override;
212 QPointer< QgsLayoutItemMap > mMapItem;
235 void updateGuiElements();
236 void labelMarginChanged(
double val );
237 void labelMarginUnitsChanged();
238 void showPartialsToggled(
bool checked );
239 void showUnplacedToggled(
bool checked );
242 QPointer< QgsLayoutItemMap > mMapItem;