-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgscomposermapwidget.h
84 lines (68 loc) · 3.34 KB
/
qgscomposermapwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/***************************************************************************
qgscomposermapwidget.h
----------------------
begin : May 26, 2008
copyright : (C) 2008 by Marco Hugentobler
email : marco dot hugentobler at karto dot baug dot ethz dot ch
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSCOMPOSERMAPWIDGET_H
#define QGSCOMPOSERMAPWIDGET_H
#include "ui_qgscomposermapwidgetbase.h"
class QgsComposerMap;
/** \ingroup MapComposer
* Input widget for the configuration of QgsComposerMap
* */
class QgsComposerMapWidget: public QWidget, private Ui::QgsComposerMapWidgetBase
{
Q_OBJECT
public:
QgsComposerMapWidget( QgsComposerMap* composerMap );
~QgsComposerMapWidget();
public slots:
void on_mWidthLineEdit_editingFinished();
void on_mHeightLineEdit_editingFinished();
void on_mPreviewModeComboBox_activated( int i );
void on_mScaleLineEdit_editingFinished();
void on_mRotationSpinBox_valueChanged( int value );
void on_mSetToMapCanvasExtentButton_clicked();
void on_mUpdatePreviewButton_clicked();
void on_mKeepLayerListCheckBox_stateChanged( int state );
void on_mXMinLineEdit_editingFinished();
void on_mXMaxLineEdit_editingFinished();
void on_mYMinLineEdit_editingFinished();
void on_mYMaxLineEdit_editingFinished();
void on_mGridCheckBox_stateChanged( int state );
void on_mIntervalXSpinBox_editingFinished();
void on_mIntervalYSpinBox_editingFinished();
void on_mOffsetXSpinBox_editingFinished();
void on_mOffsetYSpinBox_editingFinished();
void on_mLineWidthSpinBox_valueChanged( double d );
void on_mLineColorButton_clicked();
void on_mGridTypeComboBox_currentIndexChanged( const QString& text );
void on_mCrossWidthSpinBox_valueChanged( double d );
void on_mAnnotationFontButton_clicked();
void on_mDistanceToMapFrameSpinBox_valueChanged( double d );
void on_mAnnotationPositionComboBox_currentIndexChanged( const QString& text );
void on_mDrawAnnotationCheckBox_stateChanged( int state );
void on_mAnnotationDirectionComboBox_currentIndexChanged( const QString& text );
void on_mShowGridDialogCheckBox_stateChanged( int state );
/**Updates width and height without notify the composer map (to avoid infinite recursion)*/
void updateSettingsNoSignals();
private:
QgsComposerMap* mComposerMap;
/**Sets the current composer map values to the GUI elements*/
void updateGuiElements();
/**Sets extent of composer map from line edits*/
void updateComposerExtentFromGui();
/**Blocks / unblocks the signals of all GUI elements*/
void blockAllSignals( bool b );
};
#endif