• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
LatLonEdit.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2008 Henry de Valence <hdevalence@gmail.com>
9 // Copyright 2011 Friedrich W. H. Kossebau <kossebau@kde.org>
10 
11 #ifndef MARBLE_LATLONEDIT_H
12 #define MARBLE_LATLONEDIT_H
13 
14 #include <QWidget>
15 
16 #include "GeoDataCoordinates.h"
17 #include "MarbleGlobal.h"
18 #include "marble_export.h"
19 
20 namespace Marble
21 {
22 
23 class LatLonEditPrivate;
24 
25 class MARBLE_EXPORT LatLonEdit : public QWidget
26 {
27  Q_OBJECT
28  //FIXME: make the dimension enum work
29  //Q_PROPERTY( qreal value READ value WRITE setValue )
30  //Q_PROPERTY( int dimension READ dimension WRITE setDimension )
31 
32 public:
33  explicit LatLonEdit(QWidget *parent = 0, Dimension dimension = Longitude,
34  GeoDataCoordinates::Notation notation = GeoDataCoordinates::DMS);
35  ~LatLonEdit();
36  qreal value() const;
37  Dimension dimension() const;
38  GeoDataCoordinates::Notation notation() const;
39 public Q_SLOTS:
40  void setValue(qreal newvalue);
41  void setDimension( Dimension dimension );
42  void setNotation(GeoDataCoordinates::Notation notation);
43 Q_SIGNALS:
44  void valueChanged( qreal value );
45 private Q_SLOTS:
46  void checkIntValueOverflow();
47  void checkUIntValueOverflow();
48  void checkFloatValueOverflow();
49  void onSignChanged();
50 private:
51  // recalculates m_value based on spinboxes
52  void recalculate();
53 private:
54  LatLonEditPrivate * const d;
55 };
56 
57 }
58 
59 #endif
GeoDataCoordinates.h
QWidget
Marble::LatLonEdit
Definition: LatLonEdit.h:25
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
MarbleGlobal.h
Marble::Longitude
Longitude.
Definition: MarbleGlobal.h:55
Marble::GeoDataCoordinates::Notation
Notation
enum used to specify the notation / numerical system
Definition: GeoDataCoordinates.h:79
marble_export.h
Marble::Dimension
Dimension
This enum is used to choose the dimension.
Definition: MarbleGlobal.h:53
Marble::GeoDataCoordinates::DMS
"Sexagesimal DMS" notation (base-60)
Definition: GeoDataCoordinates.h:81
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal