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 mGridFrameMarginSpinBox_valueChanged(
double val );
54 void mFrameStyleComboBox_currentIndexChanged(
int );
55 void mGridFramePenSizeSpinBox_valueChanged(
double d );
56 void mGridFramePenColorButton_colorChanged(
const QColor &newColor );
57 void mGridFrameFill1ColorButton_colorChanged(
const QColor &newColor );
58 void mGridFrameFill2ColorButton_colorChanged(
const QColor &newColor );
59 void mGridTypeComboBox_currentIndexChanged(
int );
60 void mMapGridCRSButton_clicked();
61 void mGridBlendComboBox_currentIndexChanged(
int index );
62 void mCheckGridLeftSide_toggled(
bool checked );
63 void mCheckGridRightSide_toggled(
bool checked );
64 void mCheckGridTopSide_toggled(
bool checked );
65 void mCheckGridBottomSide_toggled(
bool checked );
68 void mFrameDivisionsLeftComboBox_currentIndexChanged(
int index );
69 void mFrameDivisionsRightComboBox_currentIndexChanged(
int index );
70 void mFrameDivisionsTopComboBox_currentIndexChanged(
int index );
71 void mFrameDivisionsBottomComboBox_currentIndexChanged(
int index );
73 void mDrawAnnotationGroupBox_toggled(
bool state );
74 void mAnnotationFormatButton_clicked();
77 void mAnnotationDisplayLeftComboBox_currentIndexChanged(
int );
78 void mAnnotationDisplayRightComboBox_currentIndexChanged(
int );
79 void mAnnotationDisplayTopComboBox_currentIndexChanged(
int );
80 void mAnnotationDisplayBottomComboBox_currentIndexChanged(
int );
83 void mAnnotationPositionLeftComboBox_currentIndexChanged(
int );
84 void mAnnotationPositionRightComboBox_currentIndexChanged(
int );
85 void mAnnotationPositionTopComboBox_currentIndexChanged(
int );
86 void mAnnotationPositionBottomComboBox_currentIndexChanged(
int );
89 void mAnnotationDirectionComboBoxLeft_currentIndexChanged(
int index );
90 void mAnnotationDirectionComboBoxRight_currentIndexChanged(
int index );
91 void mAnnotationDirectionComboBoxTop_currentIndexChanged(
int index );
92 void mAnnotationDirectionComboBoxBottom_currentIndexChanged(
int index );
94 void mAnnotationFormatComboBox_currentIndexChanged(
int index );
95 void mCoordinatePrecisionSpinBox_valueChanged(
int value );
96 void mDistanceToMapFrameSpinBox_valueChanged(
double d );
97 void mAnnotationFontColorButton_colorChanged(
const QColor &color );
102 virtual void updateGuiElements();
106 void populateDataDefinedButtons();
111 void setGuiElementValues();
112 void annotationFontChanged();
113 void lineSymbolChanged();
114 void markerSymbolChanged();
115 void gridEnabledToggled(
bool active );
116 void intervalUnitChanged(
int index );
117 void minIntervalChanged(
double interval );
118 void maxIntervalChanged(
double interval );
121 QPointer< QgsLayoutItemMap > mMap;
122 QPointer< QgsLayoutItemMapGrid > mMapGrid;
125 void blockAllSignals(
bool b );
132 void insertFrameDisplayEntries( QComboBox *
c );
133 void insertAnnotationDisplayEntries( QComboBox *
c );
134 void insertAnnotationPositionEntries( QComboBox *
c );
135 void insertAnnotationDirectionEntries( QComboBox *
c );
142 void toggleFrameControls(
bool frameEnabled,
bool frameFillEnabled,
bool frameSizeEnabled );
145 bool hasPredefinedScales()
const;
149 #endif //QGSLAYOUTMAPGRIDWIDGET_H