All pastes #962878 Raw Edit

Mine

public text v1 · immutable
#962878 ·published 2008-03-30 02:05 UTC
rendered paste body
#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