00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef UPDATELOCATIONDIALOG_H
00024 #define UPDATELOCATIONDIALOG_H
00025
00026 #include <QDialog>
00027
00028 #ifdef Q_WS_MAEMO_5
00029 #include <QAbstractKineticScroller>
00030 #endif // Q_WS_MAEMO_5
00031
00032 #include "texteditautoresizer.h"
00033
00034 class QCheckBox;
00035 class QDialogButtonBox;
00036 class QGroupBox;
00037 class QLabel;
00038 class QLineEdit;
00039 class QPushButton;
00040 class QScrollArea;
00041 class QTextEdit;
00042
00048 class UpdateLocationDialog : public QDialog
00049 {
00050 Q_OBJECT
00051
00052 public:
00060 UpdateLocationDialog(const QString &userMessage = "", bool publishOnFacebook = false,
00061 QWidget *parent = 0);
00062
00063 ~UpdateLocationDialog();
00064
00065
00066
00067
00068 public slots:
00074 void setAddress(const QString &address);
00075
00076 private slots:
00081 void sendUpdate();
00082
00087 void textChanged();
00088
00093 void textSelectionChanged();
00094
00095
00096
00097
00098 signals:
00105 void statusUpdate(const QString &status, const bool &publish);
00106
00107
00108
00109
00110 private:
00111 QCheckBox *m_checkBox;
00112 QLabel *m_charCountLabel;
00113 QLabel *m_locationLabel;
00114 QTextEdit *m_textEdit;
00115 };
00116
00117 #endif // UPDATELOCATIONDIALOG_H