source: subversion/applications/editors/osm-editor/qt3/RemoveExcessDialogue.cpp @ 32040

Last change on this file since 32040 was 1158, checked in by nick, 14 years ago

moved current version to qt3 directory in preparation for qt4

File size: 1.8 KB
Line 
1/*
2    Copyright (C) 2005 Nick Whitelegg, Hogweed Software, nick@hogweed.org
3
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License as published by
6    the Free Software Foundation; either version 2 of the License, or
7    (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
17
18 */
19#include "RemoveExcessDialogue.h"
20#include <qlayout.h>
21#include <qpushbutton.h>
22#include <qlabel.h>
23
24namespace OpenStreetMap
25{
26
27RemoveExcessDialogue::RemoveExcessDialogue(QWidget* parent)
28           :QDialog(parent,"",true)
29{
30        setCaption("Remove excess track points");
31        QVBoxLayout *topL = new QVBoxLayout(this);
32        QGridLayout *layout = new QGridLayout(topL,2,2);
33        layout->setMargin(10);
34        layout->setSpacing(20);
35        layout->addWidget(new QLabel("Angle:",this),0,0);
36        angleEdit = new QLineEdit(this);
37        layout->addWidget(angleEdit,0,1);
38        layout->addWidget(new QLabel("Distance:",this),1,0);
39        distanceEdit = new QLineEdit(this);
40        layout->addWidget(distanceEdit,1,1);
41        resetCheckbox = new QCheckBox("Reset to all trackpoints",this);
42        topL->addWidget(resetCheckbox);
43        QHBoxLayout *okcL=new QHBoxLayout(topL);
44        QPushButton *ok=new QPushButton("OK",this),
45                                *cancel=new QPushButton("Cancel",this);
46        okcL->addWidget(ok);
47        okcL->addWidget(cancel);
48        QObject::connect(ok,SIGNAL(clicked()),this,SLOT(accept()));
49        QObject::connect(cancel,SIGNAL(clicked()),this,SLOT(reject()));
50}
51
52}
Note: See TracBrowser for help on using the repository browser.