Added some debug traces
[situare] / src / ui / mainwindow.h
1 /*
2    Situare - A location system for Facebook
3    Copyright (C) 2010  Ixonos Plc. Authors:
4
5       Henri Lampela - henri.lampela@ixonos.com
6       Kaj Wallin - kaj.wallin@ixonos.com
7
8    Situare is free software; you can redistribute it and/or
9    modify it under the terms of the GNU General Public License
10    version 2 as published by the Free Software Foundation.
11
12    Situare is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with Situare; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
20    USA.
21 */
22
23
24 #ifndef MAINWINDOW_H
25 #define MAINWINDOW_H
26
27 #include <QtGui/QMainWindow>
28 #include <QWidget>
29 #include <QDebug>
30
31 class QLabel;
32 class QStackedWidget;
33
34 /**
35 * @Main Window Class
36 *
37 * @class MainWindow mainwindow.h "src/ui/mainwindow.h"
38 */
39 class MainWindow : public QMainWindow
40 {
41     Q_OBJECT
42
43 public:
44     MainWindow(QWidget *parent = 0);
45     ~MainWindow();
46
47     /**
48     * @brief Widget Stack object for the List and Map Views
49     *
50     * @var situareViews
51     */
52     QStackedWidget *situareViews;
53
54 private:
55     /**
56     * @brief Private method to create List and Map views as a stacked widget
57     *
58     * @fn createViews
59     */
60     void createViews();
61
62     /**
63     * @brief Private method to create the Menu items
64     *
65     * @fn createMenus
66     */
67     void createMenus();
68     QMenu *viewMenu;
69
70     /**
71     * @brief Action item for changing view to List View
72     *
73     * @var toListViewAct
74     */
75     QAction *toListViewAct;
76     /**
77     * @brief Action item for changing view to Map View
78     *
79     * @var toMapViewAct
80     */
81     QAction *toMapViewAct;
82
83     /**
84     * @brief DUMMY LABEL, REMOVE WHEN BOTH VIEWS ARE COMPLETE
85     *
86     * @var infoLabel
87     * @todo REMOVE THIS
88     */
89     QLabel *infoLabel;
90
91 public slots:
92     /**
93     * @brief Private slot, which initiates toListViewAct action
94     *
95     * @fn toListView
96     */
97     void toListView();
98     /**
99     * @brief Private slot, which initiates toMapViewAct action
100     *
101     * @fn toMapView
102     */
103     void toMapView();
104 };
105
106 #endif // MAINWINDOW_H