akonadi/contact
22 #ifndef GEOEDITWIDGET_H
23 #define GEOEDITWIDGET_H
28 #include <QtGui/QWidget>
44 class GeoEditWidget :
public QWidget
49 GeoEditWidget( QWidget *parent = 0 );
52 void loadContact(
const KABC::Addressee &contact );
53 void storeContact( KABC::Addressee &contact )
const;
55 void setReadOnly(
bool readOnly );
64 QLabel *mLatitudeLabel;
65 QLabel *mLongitudeLabel;
66 QPushButton *mChangeButton;
67 KABC::Geo mCoordinates;
71 class GeoDialog :
public KDialog
76 GeoDialog(
const KABC::Geo &coordinates, QWidget *parent );
78 KABC::Geo coordinates()
const;
84 ExceptSexagesimal = 2,
89 void updateInputs( ExceptType type = ExceptNone );
91 void decimalInputChanged();
92 void sexagesimalInputChanged();
93 void cityInputChanged();
97 int nearestCity(
double,
double )
const;
105 KComboBox *mCityCombo;
107 QDoubleSpinBox *mLatitude;
108 QDoubleSpinBox *mLongitude;
110 QSpinBox *mLatDegrees;
111 QSpinBox *mLatMinutes;
112 QSpinBox *mLatSeconds;
113 KComboBox *mLatDirection;
115 QSpinBox *mLongDegrees;
116 QSpinBox *mLongMinutes;
117 QSpinBox *mLongSeconds;
118 KComboBox *mLongDirection;
120 KABC::Geo mCoordinates;
121 QMap<QString, GeoData> mGeoDataMap;
122 bool mUpdateSexagesimalInput;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jan 5 2013 19:47:07 by
doxygen 1.8.1.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.