X-Git-Url: http://git.maemo.org/git/?p=ptas;a=blobdiff_plain;f=src%2Fui.h;h=312703d15b949cc55de1d5bca5914f67675b0067;hp=94dc687af24478f0b61b75e7249cee6a275372f5;hb=3406287d71dac0a117ba8714f2d85bb67fbbec45;hpb=15842000c65c6c7529d0fe35e13253adb4293afd diff --git a/src/ui.h b/src/ui.h index 94dc687..312703d 100644 --- a/src/ui.h +++ b/src/ui.h @@ -16,52 +16,52 @@ class Location; class Ui : public QObject { - Q_OBJECT + Q_OBJECT public: - Ui(); - ~Ui(); - void setupUi( QMainWindow *mainWindow ); + Ui(); + ~Ui(); + void setupUi(QMainWindow *mainWindow); - enum { - HomeButtonId=0, - WorkButtonId=1 - }; + enum { + HomeButtonId=0, + WorkButtonId=1 + }; - enum { - ScreenWidth=800, - ScreenHeight=480 - }; + enum { + ScreenWidth=800, + ScreenHeight=480 + }; - QMainWindow *m_mainWindow; - QWidget *m_centralWidget; - QButtonGroup *m_destinationButtons; - QButtonGroup *m_routeButtons; - QVBoxLayout *m_routeStack; - QTableWidget *m_routeDetailTable; - QVBoxLayout *m_mainLayout; - QGridLayout *m_buttonLayout; - QMenu *m_menu; - QAction *m_toggleFakeGpsAction; - QAction *m_useLiveGpsAction; - bool m_usingFakeGps; - QString m_fakeLocationLabel; + QMainWindow *m_mainWindow; + QWidget *m_centralWidget; + QButtonGroup *m_destinationButtons; + QButtonGroup *m_routeButtons; + QVBoxLayout *m_routeStack; + QTableWidget *m_routeDetailTable; + QVBoxLayout *m_mainLayout; + QGridLayout *m_buttonLayout; + QMenu *m_menu; + QAction *m_toggleFakeGpsAction; + QAction *m_useLiveGpsAction; + bool m_usingFakeGps; + QString m_fakeLocationLabel; Q_SIGNALS: - void homeAddressChanged( QString address ); - void workAddressChanged( QString address ); - void fakeGpsPressed( const QString &fakeLocationLabel ); - void liveGpsPressed(); + void homeAddressChanged(QString address); + void workAddressChanged(QString address); + void fakeGpsPressed(const QString &fakeLocationLabel); + void liveGpsPressed(); private Q_SLOTS: - void setHomeAddress(); - void setWorkAddress(); - void toggleFakeGps(); - void setBusy( bool busy ); + void setHomeAddress(); + void setWorkAddress(); + void toggleFakeGps(); + void setBusy(bool busy); private: - void useFakeGps(); - void useLiveGps(); - void setAddress( const QString &label ); + void useFakeGps(); + void useLiveGps(); + void setAddress(const QString &label); }; #endif //UI_H