~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/app/composer/qgscomposermapwidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                         qgscomposermapwidget.h
 
3
                         ----------------------
 
4
    begin                : May 26, 2008
 
5
    copyright            : (C) 2008 by Marco Hugentobler
 
6
    email                : marco dot hugentobler at karto dot baug dot ethz dot ch
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef QGSCOMPOSERMAPWIDGET_H
 
19
#define QGSCOMPOSERMAPWIDGET_H
 
20
 
 
21
#include "ui_qgscomposermapwidgetbase.h"
 
22
 
 
23
class QgsComposerMap;
 
24
 
 
25
/** \ingroup MapComposer
 
26
 * Input widget for the configuration of QgsComposerMap
 
27
 * */
 
28
class QgsComposerMapWidget: public QWidget, private Ui::QgsComposerMapWidgetBase
 
29
{
 
30
    Q_OBJECT
 
31
 
 
32
  public:
 
33
 
 
34
    QgsComposerMapWidget( QgsComposerMap* composerMap );
 
35
    ~QgsComposerMapWidget();
 
36
 
 
37
  public slots:
 
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 );
 
46
 
 
47
    void on_mXMinLineEdit_editingFinished();
 
48
    void on_mXMaxLineEdit_editingFinished();
 
49
    void on_mYMinLineEdit_editingFinished();
 
50
    void on_mYMaxLineEdit_editingFinished();
 
51
 
 
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 );
 
67
 
 
68
    /**Updates width and height without notify the composer map (to avoid infinite recursion)*/
 
69
    void updateSettingsNoSignals();
 
70
 
 
71
  private:
 
72
    QgsComposerMap* mComposerMap;
 
73
 
 
74
    /**Sets the current composer map values to the GUI elements*/
 
75
    void updateGuiElements();
 
76
 
 
77
    /**Sets extent of composer map from line edits*/
 
78
    void updateComposerExtentFromGui();
 
79
 
 
80
    /**Blocks / unblocks the signals of all GUI elements*/
 
81
    void blockAllSignals( bool b );
 
82
};
 
83
 
 
84
#endif