1
/***************************************************************************
5
copyright : (C) 2008 by Marco Hugentobler
6
email : marco dot hugentobler at karto dot baug dot ethz dot ch
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
18
#ifndef QGSCOMPOSERMAPWIDGET_H
19
#define QGSCOMPOSERMAPWIDGET_H
21
#include "ui_qgscomposermapwidgetbase.h"
25
/** \ingroup MapComposer
26
* Input widget for the configuration of QgsComposerMap
28
class QgsComposerMapWidget: public QWidget, private Ui::QgsComposerMapWidgetBase
34
QgsComposerMapWidget( QgsComposerMap* composerMap );
35
~QgsComposerMapWidget();
38
void on_mWidthLineEdit_editingFinished();
39
void on_mHeightLineEdit_editingFinished();
40
void on_mPreviewModeComboBox_activated( int i );
41
void on_mScaleLineEdit_editingFinished();
42
void on_mRotationSpinBox_valueChanged( int value );
43
void on_mSetToMapCanvasExtentButton_clicked();
44
void on_mUpdatePreviewButton_clicked();
45
void on_mKeepLayerListCheckBox_stateChanged( int state );
47
void on_mXMinLineEdit_editingFinished();
48
void on_mXMaxLineEdit_editingFinished();
49
void on_mYMinLineEdit_editingFinished();
50
void on_mYMaxLineEdit_editingFinished();
52
void on_mGridCheckBox_toggled( bool state );
53
void on_mIntervalXSpinBox_editingFinished();
54
void on_mIntervalYSpinBox_editingFinished();
55
void on_mOffsetXSpinBox_editingFinished();
56
void on_mOffsetYSpinBox_editingFinished();
57
void on_mLineWidthSpinBox_valueChanged( double d );
58
void on_mLineColorButton_clicked();
59
void on_mGridTypeComboBox_currentIndexChanged( const QString& text );
60
void on_mCrossWidthSpinBox_valueChanged( double d );
61
void on_mAnnotationFontButton_clicked();
62
void on_mDistanceToMapFrameSpinBox_valueChanged( double d );
63
void on_mAnnotationPositionComboBox_currentIndexChanged( const QString& text );
64
void on_mDrawAnnotationCheckBox_stateChanged( int state );
65
void on_mAnnotationDirectionComboBox_currentIndexChanged( const QString& text );
66
void on_mCoordinatePrecisionSpinBox_valueChanged( int value );
68
/**Updates width and height without notify the composer map (to avoid infinite recursion)*/
69
void updateSettingsNoSignals();
72
QgsComposerMap* mComposerMap;
74
/**Sets the current composer map values to the GUI elements*/
75
void updateGuiElements();
77
/**Sets extent of composer map from line edits*/
78
void updateComposerExtentFromGui();
80
/**Blocks / unblocks the signals of all GUI elements*/
81
void blockAllSignals( bool b );