~ubuntu-branches/ubuntu/saucy/merkaartor/saucy

« back to all changes in this revision

Viewing changes to GotoDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2009-09-13 00:52:12 UTC
  • mto: (1.2.7 upstream) (0.1.3 upstream) (3.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20090913005212-pjecal8zxm07x0fj
ImportĀ upstreamĀ versionĀ 0.14+svnfixes~20090912

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// C++ Interface: GotoDialog
3
 
//
4
 
// Description: 
5
 
//
6
 
//
7
 
// Author: Chris Browet <cbro@semperpax.com>, (C) 2008
8
 
//
9
 
// Copyright: See COPYING file that comes with this distribution
10
 
//
11
 
//
12
 
#ifndef GOTODIALOG_H
13
 
#define GOTODIALOG_H
14
 
 
15
 
#include <QWidget>
16
 
#include <QSettings>
17
 
 
18
 
#include "Map/Coord.h"
19
 
#include "Map/Projection.h"
20
 
 
21
 
#include <ui_GotoDialog.h>
22
 
 
23
 
class CoordBox;
24
 
class QItemSelection;
25
 
namespace NameFinder
26
 
{
27
 
        class NameFinderWidget;
28
 
}
29
 
 
30
 
class GotoDialog: public QDialog , public Ui::GotoDialog
31
 
{
32
 
        Q_OBJECT
33
 
 
34
 
public:
35
 
    GotoDialog(const Projection& aProj, QWidget *parent = 0);
36
 
 
37
 
        const CoordBox& newViewport() const { return theNewViewport; };
38
 
        NameFinder::NameFinderWidget *searchWidget;
39
 
 
40
 
public slots:
41
 
        void on_buttonBox_clicked(QAbstractButton * button);
42
 
        void on_searchButton_clicked();
43
 
        void searchWidget_selectionChanged();
44
 
        void on_NameFinderEdit_textChanged(const QString & text);
45
 
        void searchWidget_doubleClicked ();
46
 
 
47
 
protected:
48
 
        
49
 
private:
50
 
        Projection theProjection;
51
 
        CoordBox theNewViewport;
52
 
 
53
 
        void changeEvent(QEvent*);
54
 
 
55
 
};
56
 
 
57
 
#endif