map/mapengine.cpp \
map/mapfetcher.cpp \
map/mapscene.cpp \
+ map/mapscroller.cpp \
map/maptile.cpp \
map/maptilerequest.cpp \
map/mapview.cpp \
ui/zoombutton.cpp \
ui/zoombuttonpanel.cpp \
user/user.cpp \
- map/mapscroller.cpp \
ui/fullscreenbutton.cpp
HEADERS += common.h \
engine/engine.h \
map/mapengine.h \
map/mapfetcher.h \
map/mapscene.h \
+ map/mapscroller.h \
map/maptile.h \
map/maptilerequest.h \
map/mapview.h \
ui/zoombutton.h \
ui/zoombuttonpanel.h \
user/user.h \
- map/mapscroller.h \
ui/fullscreenbutton.h
QT += network \
webkit
SOURCES += network/networkhandlerprivate.cpp
HEADERS += network/networkhandlerprivate.h
QT += dbus
- CONFIG += icd2 qdbus
- SOURCES += gps/gpspositionprivateliblocation.cpp \
- gps/liblocationwrapper.cpp \
- gps/geopositioninfo.cpp \
- gps/geocoordinate.cpp
- HEADERS += gps/gpspositionprivateliblocation.h \
- gps/liblocationwrapper.h \
- gps/geopositioninfo.h \
- gps/geocoordinate.h
- CONFIG += link_pkgconfig
- PKGCONFIG += glib-2.0 liblocation
- LIBS += -llocation
+ CONFIG += icd2
+# SOURCES += gps/gpspositionprivateliblocation.cpp \
+# gps/liblocationwrapper.cpp \
+# gps/geopositioninfo.cpp \
+# gps/geocoordinate.cpp
+# HEADERS += gps/gpspositionprivateliblocation.h \
+# gps/liblocationwrapper.h \
+# gps/geopositioninfo.h \
+# gps/geocoordinate.h
+# CONFIG += link_pkgconfig
+# PKGCONFIG += glib-2.0 liblocation
++# LIBS += -llocation
+ SOURCES += gps/gpspositionprivatestub.cpp
+ HEADERS += gps/gpspositionprivatestub.h
} else {
SOURCES += gps/gpspositionprivatestub.cpp \
network/networkhandlerprivatestub.cpp
m_errorShown(false),
m_loggedIn(false),
m_refresh(false),
+ m_progressIndicatorCount(0),
m_ownLocationCrosshair(0),
m_email(),
m_password(),
connect(m_mapView, SIGNAL(viewZoomFinished()),
this, SIGNAL(viewZoomFinished()));
+
+ connect(m_mapView, SIGNAL(zoomIn()),
+ this, SIGNAL(zoomIn()));
}
void MainWindow::buildMapScale()
qDebug() << __PRETTY_FUNCTION__;
clearCookieJar();
-
- toggleProgressIndicator(false);
-
startLoginProcess();
}
}
}
+ void MainWindow::showPanels()
+ {
+ qDebug() << __PRETTY_FUNCTION__;
+
+ if(m_loggedIn) {
+ if(!m_friendsListPanel->isVisible()) {
+ m_friendsListPanel->show();
+ m_friendsListPanelSidebar->show();
+ }
+
+ if(!m_userPanel->isVisible()) {
+ m_userPanel->show();
+ m_userPanelSidebar->show();
+ }
+ }
+ }
+
void MainWindow::startLoginProcess()
{
qDebug() << __PRETTY_FUNCTION__;
qDebug() << __PRETTY_FUNCTION__;
#ifdef Q_WS_MAEMO_5
- setAttribute(Qt::WA_Maemo5ShowProgressIndicator, value);
+ if(value) {
+ m_progressIndicatorCount++;
+ setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
+ } else {
+ if(m_progressIndicatorCount > 0)
+ m_progressIndicatorCount--;
+
+ if(m_progressIndicatorCount == 0)
+ setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
+ }
#else
Q_UNUSED(value);
#endif // Q_WS_MAEMO_5
{
qDebug() << __PRETTY_FUNCTION__;
- if(m_loggedIn) {
- m_friendsListPanel->show();
- m_friendsListPanelSidebar->show();
- m_userPanel->show();
- m_userPanelSidebar->show();
+ if(m_loggedIn) {
if(!m_gpsToggleAct->isChecked())
setOwnLocationCrosshairVisibility(true);
if(reply->error() != QNetworkReply::OperationCanceledError &&
reply->error() != QNetworkReply::NoError) {
emit error(reply->error());
- toggleProgressIndicator(false);
}
}