#ifndef LATLONBOX_H #define LATLONBOX_H class LatLonBox : public QWidget { Q_OBJECT public: LatLonBox(QWidget *parent = 0); double value() { return m_value; }; public slots: void setValue(double newvalue); private slots: void recalculate(); void reverseRecalculate(); void secondsOverflow(); void minutesOverflow(); private: QHBoxLayout *m_layout; QSpinBox *m_degreesSpin; QSpinBox *m_minutesSpin; QSpinBox *m_secondsSpin; QLabel *m_degreesLabel; QLabel *m_minutesLabel; QLabel *m_secondsLabel; double m_value; signals: void valueChanged( double value ); }; #endif