1
/****************************************************************************
2
** Form implementation generated from reading ui file 'qgslocationcapturewidgetbase.ui'
4
** Created: Sun Apr 24 15:11:25 2005
5
** by: The User Interface Compiler ($Id: qgslocationcapturewidgetbase.cpp,v 1.3 2005/04/24 03:34:34 g_j_m Exp $)
7
** WARNING! All changes made in this file will be lost!
8
****************************************************************************/
10
#include "qgslocationcapturewidgetbase.h"
13
#include <qpushbutton.h>
17
#include <qwhatsthis.h>
18
#include "qgslocationcapturewidgetbase.ui.h"
21
* Constructs a QgsLocationCaptureWidgetBase as a child of 'parent', with the
22
* name 'name' and widget flags set to 'f'.
24
QgsLocationCaptureWidgetBase::QgsLocationCaptureWidgetBase( QWidget* parent, const char* name, WFlags fl )
25
: QWidget( parent, name, fl )
28
setName( "QgsLocationCaptureWidgetBase" );
29
QgsLocationCaptureWidgetBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "QgsLocationCaptureWidgetBaseLayout");
31
qgsMapCanvas = new QgsMapCanvas( this, "qgsMapCanvas" );
33
QgsLocationCaptureWidgetBaseLayout->addMultiCellWidget( qgsMapCanvas, 0, 0, 0, 3 );
35
pbnZoomIn = new QPushButton( this, "pbnZoomIn" );
37
QgsLocationCaptureWidgetBaseLayout->addWidget( pbnZoomIn, 2, 0 );
39
pbnPan = new QPushButton( this, "pbnPan" );
41
QgsLocationCaptureWidgetBaseLayout->addWidget( pbnPan, 2, 2 );
43
pbnZoomOut = new QPushButton( this, "pbnZoomOut" );
45
QgsLocationCaptureWidgetBaseLayout->addWidget( pbnZoomOut, 2, 1 );
47
pbnCapturePos = new QPushButton( this, "pbnCapturePos" );
49
QgsLocationCaptureWidgetBaseLayout->addWidget( pbnCapturePos, 2, 3 );
51
pushButton5 = new QPushButton( this, "pushButton5" );
53
QgsLocationCaptureWidgetBaseLayout->addMultiCellWidget( pushButton5, 3, 3, 0, 3 );
55
lblCapturePos = new QLabel( this, "lblCapturePos" );
56
lblCapturePos->setMaximumSize( QSize( 32767, 20 ) );
58
QgsLocationCaptureWidgetBaseLayout->addMultiCellWidget( lblCapturePos, 1, 1, 2, 3 );
60
lblCurrentPos = new QLabel( this, "lblCurrentPos" );
62
QgsLocationCaptureWidgetBaseLayout->addMultiCellWidget( lblCurrentPos, 1, 1, 0, 1 );
64
resize( QSize(451, 370).expandedTo(minimumSizeHint()) );
65
clearWState( WState_Polished );
67
// signals and slots connections
68
connect( qgsMapCanvas, SIGNAL( xyClickCoordinates(QgsPoint&) ), this, SLOT( qgsMapCanvas_xyClickCoordinates(QgsPoint&) ) );
69
connect( qgsMapCanvas, SIGNAL( xyCoordinates(QgsPoint&) ), this, SLOT( qgsMapCanvas_xyCoordinates(QgsPoint&) ) );
73
* Destroys the object and frees any allocated resources
75
QgsLocationCaptureWidgetBase::~QgsLocationCaptureWidgetBase()
77
// no need to delete child widgets, Qt does it all for us
81
* Sets the strings of the subwidgets using the current
84
void QgsLocationCaptureWidgetBase::languageChange()
86
setCaption( tr( "Form1" ) );
87
pbnZoomIn->setText( tr( "ZoomIn" ) );
88
pbnPan->setText( tr( "Pan" ) );
89
pbnZoomOut->setText( tr( "Zoom Out" ) );
90
pbnCapturePos->setText( tr( "Capture Pos" ) );
91
pushButton5->setText( tr( "OK" ) );
92
lblCapturePos->setText( tr( "Captured Pos:" ) );
93
lblCurrentPos->setText( tr( "Current Pos:" ) );