18#ifndef QGSLAYOUTMAPWIDGET_H
19#define QGSLAYOUTMAPWIDGET_H
25#include "ui_qgslayoutmapwidgetbase.h"
26#include "ui_qgslayoutmaplabelingwidgetbase.h"
27#include "ui_qgslayoutmapclippingwidgetbase.h"
58 void mScaleLineEdit_editingFinished();
59 void setToMapCanvasExtent();
60 void setToMapCanvasScale();
61 void viewExtentInCanvas();
62 void viewScaleInCanvas();
64 void mFollowVisibilityPresetCheckBox_stateChanged(
int state );
65 void mKeepLayerListCheckBox_stateChanged(
int state );
66 void mKeepLayerStylesCheckBox_stateChanged(
int state );
67 void mDrawCanvasItemsCheckBox_stateChanged(
int state );
69 void mOverviewBlendModeComboBox_currentIndexChanged(
int index );
70 void mOverviewInvertCheckbox_toggled(
bool state );
71 void mOverviewCenterCheckbox_toggled(
bool state );
72 void overviewStackingChanged(
int value );
73 void overviewStackingLayerChanged(
QgsMapLayer *layer );
75 void mXMinLineEdit_editingFinished();
76 void mXMaxLineEdit_editingFinished();
77 void mYMinLineEdit_editingFinished();
78 void mYMaxLineEdit_editingFinished();
80 void mAtlasMarginRadio_toggled(
bool checked );
82 void mAtlasCheckBox_toggled(
bool checked );
83 void mAtlasMarginSpinBox_valueChanged(
int value );
84 void mAtlasFixedScaleRadio_toggled(
bool checked );
85 void mAtlasPredefinedScaleRadio_toggled(
bool checked );
87 void mAddGridPushButton_clicked();
88 void mRemoveGridPushButton_clicked();
89 void mGridUpButton_clicked();
90 void mGridDownButton_clicked();
93 void mGridListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous );
94 void mGridListWidget_itemChanged( QListWidgetItem *item );
95 void mGridPropertiesButton_clicked();
98 void mAddOverviewPushButton_clicked();
99 void mRemoveOverviewPushButton_clicked();
100 void mOverviewUpButton_clicked();
101 void mOverviewDownButton_clicked();
103 void mOverviewCheckBox_toggled(
bool state );
104 void mOverviewListWidget_currentItemChanged( QListWidgetItem *current, QListWidgetItem *previous );
105 void mOverviewListWidget_itemChanged( QListWidgetItem *item );
106 void setOverviewItemsEnabled(
bool enabled );
108 void blockOverviewItemsSignals(
bool block );
110 void mTemporalCheckBox_toggled(
bool checked );
111 void updateTemporalExtent();
113 void mElevationRangeCheckBox_toggled(
bool checked );
121 void populateDataDefinedButtons();
126 void updateGuiElements();
132 void compositionAtlasToggled(
bool atlasEnabled );
134 void aboutToShowKeepLayersVisibilityPresetsMenu();
136 void followVisibilityPresetSelected(
int currentIndex );
137 void keepLayersVisibilityPresetSelected();
139 void onMapThemesChanged();
142 void overviewSymbolChanged();
143 void showLabelSettings();
144 void showClipSettings();
145 void switchToMoveContentTool();
146 void aboutToShowBookmarkMenu();
149 QPointer< QgsLayoutItemMap > mMapItem;
153 QPointer< QgsLayoutMapLabelingWidget > mLabelWidget;
154 QPointer< QgsLayoutMapClippingWidget > mClipWidget;
155 QMenu *mBookmarkMenu =
nullptr;
157 QString mReportTypeString;
158 int mBlockThemeComboChanges = 0;
161 void updateComposerExtentFromGui();
164 void blockAllSignals(
bool b );
166 void rotationChanged(
double value );
169 void toggleAtlasScalingOptionsByLayerType();
172 void updateMapForAtlas();
175 bool hasPredefinedScales()
const;
177 QListWidgetItem *addGridListItem(
const QString &
id,
const QString &name );
179 void loadGridEntries();
181 QListWidgetItem *addOverviewListItem(
const QString &
id,
const QString &name );
183 void loadOverviewEntries();
185 void storeCurrentLayerSet();
191 QList<QgsMapLayer *> orderedPresetVisibleLayers(
const QString &name )
const;
210 int columnCount(
const QModelIndex &parent = QModelIndex() )
const override;
211 QVariant data(
const QModelIndex &index,
int role )
const override;
212 bool setData(
const QModelIndex &index,
const QVariant &value,
int role )
override;
213 Qt::ItemFlags flags(
const QModelIndex &index )
const override;
217 bool filterAcceptsRow(
int source_row,
const QModelIndex &source_parent )
const override;
221 QPointer< QgsLayoutItemMap > mMapItem;
244 void updateGuiElements();
245 void labelMarginChanged(
double val );
246 void labelMarginUnitsChanged();
247 void showPartialsToggled(
bool checked );
248 void showUnplacedToggled(
bool checked );
251 QPointer< QgsLayoutItemMap > mMapItem;
275 void updateGuiElements();
277 void atlasToggled(
bool atlasEnabled );
280 void invertSelection();
281 void toggleLayersSelectionGui(
bool toggled );
284 QPointer< QgsLayoutItemMap > mMapItem;
287 bool mBlockUpdates =
false;
A QSortFilterProxyModel subclass for sorting the entries in a QgsBookmarkManagerModel.
This class represents a coordinate reference system (CRS).
A common interface for layout designer dialogs and widgets.
An individual grid which is drawn above the map content in a QgsLayoutItemMap.
An individual overview which is drawn above the map content in a QgsLayoutItemMap,...
Layout graphical items for displaying a map.
Base class for graphical items within a QgsLayout.
Model for label blocking items.
A model for items attached to a layout.
Map canvas is a class for displaying all GIS data types on a canvas.
The QgsMapLayerModel class is a model to display layers in widgets.
Base class for all map layer types.
Interface for master layout type objects, such as print layouts and reports.
Represents a vector layer which manages a vector based data sets.
const QgsCoordinateReferenceSystem & crs