@@ -56,21 +56,39 @@ class QgsComposerMapWidget: public QgsComposerItemBaseWidget, private Ui::QgsCom
5656 void on_mYMinLineEdit_editingFinished ();
5757 void on_mYMaxLineEdit_editingFinished ();
5858
59+ void on_mAtlasMarginRadio_toggled ( bool checked );
60+
61+ void on_mAtlasCheckBox_toggled ( bool checked );
62+ void on_mAtlasMarginSpinBox_valueChanged ( int value );
63+ void on_mAtlasFixedScaleRadio_toggled ( bool checked );
64+ void on_mAtlasPredefinedScaleRadio_toggled ( bool checked );
65+
66+ void on_mAddGridPushButton_clicked ();
67+ void on_mRemoveGridPushButton_clicked ();
68+ void on_mGridUpButton_clicked ();
69+ void on_mGridDownButton_clicked ();
70+
71+ QgsComposerMapGrid* currentGrid ();
5972 void on_mGridCheckBox_toggled ( bool state );
73+ void on_mGridListWidget_currentItemChanged ( QListWidgetItem* current, QListWidgetItem* previous );
74+ void on_mGridListWidget_itemChanged ( QListWidgetItem* item );
75+ void setGridItemsEnabled ( bool enabled );
76+ void setGridItems ( const QgsComposerMapGrid* grid );
77+ void blockGridItemsSignals ( bool block );
78+ void updateLineSymbolMarker ( const QgsComposerMapGrid* grid );
79+ void on_mGridLineStyleButton_clicked ();
6080 void on_mIntervalXSpinBox_editingFinished ();
6181 void on_mIntervalYSpinBox_editingFinished ();
62- void on_mOffsetXSpinBox_editingFinished ();
63- void on_mOffsetYSpinBox_editingFinished ();
64- void on_mGridLineStyleButton_clicked ();
82+ void on_mOffsetXSpinBox_valueChanged ( double value );
83+ void on_mOffsetYSpinBox_valueChanged ( double value );
84+ void on_mCrossWidthSpinBox_valueChanged ( double val );
85+ void on_mFrameWidthSpinBox_valueChanged ( double val );
86+ void on_mFrameStyleComboBox_currentIndexChanged ( const QString& text );
6587 void on_mGridTypeComboBox_currentIndexChanged ( const QString& text );
66- void on_mCrossWidthSpinBox_valueChanged ( double d );
67- void on_mGridBlendComboBox_currentIndexChanged ( int index );
68- void on_mAnnotationFontButton_clicked ();
69- void on_mAnnotationFontColorButton_colorChanged ( const QColor& newFontColor );
70- void on_mDistanceToMapFrameSpinBox_valueChanged ( double d );
71-
72- void on_mAnnotationFormatComboBox_currentIndexChanged ( int index );
88+ void on_mMapGridCRSButton_clicked ();
89+ void on_mMapGridUnitComboBox_currentIndexChanged ( const QString& text );
7390
91+ void on_mDrawAnnotationGroupBox_toggled ( bool state );
7492 // annotation position
7593 void on_mAnnotationPositionLeftComboBox_currentIndexChanged ( const QString& text );
7694 void on_mAnnotationPositionRightComboBox_currentIndexChanged ( const QString& text );
@@ -83,22 +101,11 @@ class QgsComposerMapWidget: public QgsComposerItemBaseWidget, private Ui::QgsCom
83101 void on_mAnnotationDirectionComboBoxTop_currentIndexChanged ( const QString& text );
84102 void on_mAnnotationDirectionComboBoxBottom_currentIndexChanged ( const QString& text );
85103
86- void on_mDrawAnnotationCheckableGroupBox_toggled ( bool state );
104+ void on_mAnnotationFormatComboBox_currentIndexChanged ( int index );
87105 void on_mCoordinatePrecisionSpinBox_valueChanged ( int value );
88-
89- void on_mFrameStyleComboBox_currentIndexChanged ( const QString& text );
90- void on_mFrameWidthSpinBox_valueChanged ( double d );
91- void on_mGridFramePenSizeSpinBox_valueChanged ( double d );
92- void on_mGridFramePenColorButton_colorChanged ( const QColor& newColor );
93- void on_mGridFrameFill1ColorButton_colorChanged ( const QColor& newColor );
94- void on_mGridFrameFill2ColorButton_colorChanged ( const QColor& newColor );
95-
96- void on_mAtlasMarginRadio_toggled ( bool checked );
97-
98- void on_mAtlasCheckBox_toggled ( bool checked );
99- void on_mAtlasMarginSpinBox_valueChanged ( int value );
100- void on_mAtlasFixedScaleRadio_toggled ( bool checked );
101- void on_mAtlasPredefinedScaleRadio_toggled ( bool checked );
106+ void on_mDistanceToMapFrameSpinBox_valueChanged ( double d );
107+ void on_mAnnotationFontButton_clicked ();
108+ void on_mAnnotationFontColorButton_clicked ();
102109
103110 protected:
104111 void showEvent ( QShowEvent * event );
@@ -149,9 +156,6 @@ class QgsComposerMapWidget: public QgsComposerItemBaseWidget, private Ui::QgsCom
149156 /* *Updates the map combo box with the current composer map ids*/
150157 void refreshMapComboBox ();
151158
152- /* *Enables/disables grid frame related controls*/
153- void toggleFrameControls ( bool frameEnabled );
154-
155159 /* *Enables or disables the atlas margin and predefined scales radio depending on the atlas coverage layer type*/
156160 void toggleAtlasScalingOptionsByLayerType ();
157161
@@ -161,6 +165,9 @@ class QgsComposerMapWidget: public QgsComposerItemBaseWidget, private Ui::QgsCom
161165 /* *Is there some predefined scales, globally or as project's options ?*/
162166 bool hasPredefinedScales () const ;
163167
168+ QListWidgetItem* addGridListItem ( const QString& id, const QString& name );
169+
170+ void loadGridEntries ();
164171};
165172
166173#endif
0 commit comments