#include "mainwindow.h"
#include "listviewscreen.h"
#include "mapviewscreen.h"
+#include "settingsdialog.h"
#include "facebookservice/facebookauthentication.h"
#include "situareservice/situareservice.h"
- #include "engine/engine.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
void MainWindow::openLocationUpdateDialog()
{
qDebug() << __PRETTY_FUNCTION__;
+
+ emit requestReverseGeo();
m_locationDialog->exec();
}
+
+void MainWindow::openSettingsDialog()
+{
+ qDebug() << __PRETTY_FUNCTION__;
+ SettingsDialog *dialog = new SettingsDialog(this);
+ dialog->show();
+}
+
+
QStackedWidget *m_situareViews; ///< Stacked widget that hold both view widgets
QAction *m_toListViewAct; ///< Action to trigger switch to list view
QAction *m_toMapViewAct; ///< Action to trigger switch to map view
+ QAction *m_toSettingsAct; ///< Action to trigger switch to settings dialog
QMenu *m_viewMenu; ///< Object that hold the view menu items
-
- UpdateLocationDialog *m_locationDialog; ///< Message dialog
};
#endif // MAINWINDOW_H