18#ifndef QGSLAYOUTMAPGRIDWIDGET_H
19#define QGSLAYOUTMAPGRIDWIDGET_H
25#include "ui_qgslayoutmapgridwidgetbase.h"
47 void mIntervalXSpinBox_editingFinished();
48 void mIntervalYSpinBox_editingFinished();
49 void mOffsetXSpinBox_valueChanged(
double value );
50 void mOffsetYSpinBox_valueChanged(
double value );
51 void mCrossWidthSpinBox_valueChanged(
double val );
52 void mFrameWidthSpinBox_valueChanged(
double val );
53 void mRotatedTicksGroupBox_toggled(
bool checked );
54 void mRotatedTicksLengthModeComboBox_currentIndexChanged(
int );
55 void mRotatedTicksThresholdSpinBox_valueChanged(
double val );
56 void mRotatedTicksMarginToCornerSpinBox_valueChanged(
double val );
57 void mRotatedAnnotationsGroupBox_toggled(
bool checked );
58 void mRotatedAnnotationsLengthModeComboBox_currentIndexChanged(
int );
59 void mRotatedAnnotationsThresholdSpinBox_valueChanged(
double val );
60 void mRotatedAnnotationsMarginToCornerSpinBox_valueChanged(
double val );
61 void mGridFrameMarginSpinBox_valueChanged(
double val );
62 void mFrameStyleComboBox_currentIndexChanged(
int );
63 void mGridFramePenSizeSpinBox_valueChanged(
double d );
64 void mGridFramePenColorButton_colorChanged(
const QColor &newColor );
65 void mGridFrameFill1ColorButton_colorChanged(
const QColor &newColor );
66 void mGridFrameFill2ColorButton_colorChanged(
const QColor &newColor );
67 void mGridTypeComboBox_currentIndexChanged(
int );
69 void mGridBlendComboBox_currentIndexChanged(
int index );
70 void mCheckGridLeftSide_toggled(
bool checked );
71 void mCheckGridRightSide_toggled(
bool checked );
72 void mCheckGridTopSide_toggled(
bool checked );
73 void mCheckGridBottomSide_toggled(
bool checked );
76 void mFrameDivisionsLeftComboBox_currentIndexChanged(
int index );
77 void mFrameDivisionsRightComboBox_currentIndexChanged(
int index );
78 void mFrameDivisionsTopComboBox_currentIndexChanged(
int index );
79 void mFrameDivisionsBottomComboBox_currentIndexChanged(
int index );
81 void mDrawAnnotationGroupBox_toggled(
bool state );
82 void mAnnotationFormatButton_clicked();
85 void mAnnotationDisplayLeftComboBox_currentIndexChanged(
int );
86 void mAnnotationDisplayRightComboBox_currentIndexChanged(
int );
87 void mAnnotationDisplayTopComboBox_currentIndexChanged(
int );
88 void mAnnotationDisplayBottomComboBox_currentIndexChanged(
int );
91 void mAnnotationPositionLeftComboBox_currentIndexChanged(
int );
92 void mAnnotationPositionRightComboBox_currentIndexChanged(
int );
93 void mAnnotationPositionTopComboBox_currentIndexChanged(
int );
94 void mAnnotationPositionBottomComboBox_currentIndexChanged(
int );
97 void mAnnotationDirectionComboBoxLeft_currentIndexChanged(
int index );
98 void mAnnotationDirectionComboBoxRight_currentIndexChanged(
int index );
99 void mAnnotationDirectionComboBoxTop_currentIndexChanged(
int index );
100 void mAnnotationDirectionComboBoxBottom_currentIndexChanged(
int index );
102 void mAnnotationFormatComboBox_currentIndexChanged(
int index );
103 void mCoordinatePrecisionSpinBox_valueChanged(
int value );
104 void mDistanceToMapFrameSpinBox_valueChanged(
double d );
110 virtual void updateGuiElements();
114 void populateDataDefinedButtons();
119 void setGuiElementValues();
120 void lineSymbolChanged();
121 void markerSymbolChanged();
122 void gridEnabledToggled(
bool active );
123 void intervalUnitChanged(
int index );
124 void minIntervalChanged(
double interval );
125 void maxIntervalChanged(
double interval );
126 void annotationTextFormatChanged();
130 QPointer< QgsLayoutItemMap > mMap;
131 QPointer< QgsLayoutItemMapGrid > mMapGrid;
132 int mBlockAnnotationFormatUpdates = 0;
135 void blockAllSignals(
bool b );
142 void insertFrameDisplayEntries( QComboBox *
c );
143 void insertAnnotationDisplayEntries( QComboBox *
c );
144 void insertAnnotationPositionEntries( QComboBox *
c );
145 void insertAnnotationDirectionEntries( QComboBox *
c );
152 void toggleFrameControls(
bool frameEnabled,
bool frameFillEnabled,
bool frameSizeEnabled,
bool ticksRotationEnabled );
155 bool hasPredefinedScales()
const;
This class represents a coordinate reference system (CRS).
An individual grid which is drawn above the map content in a QgsLayoutItemMap.
AnnotationPosition
Position for grid annotations.
DisplayMode
Display settings for grid annotations and frames.
AnnotationDirection
Direction of grid annotations.
BorderSide
Border sides for annotations.
Layout graphical items for displaying a map.
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
const QgsCoordinateReferenceSystem & crs