Merged with latest version of updatelocationdialog
[situare] / src / ui / listviewscreen.h
1  /*
2     Situare - A location system for Facebook
3     Copyright (C) 2010  Ixonos Plc. Authors:
4
5        Kaj Wallin - kaj.wallin@ixonos.com
6
7     Situare is free software; you can redistribute it and/or
8     modify it under the terms of the GNU General Public License
9     version 2 as published by the Free Software Foundation.
10
11     Situare is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with Situare; if not, write to the Free Software
18     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
19     USA.
20  */
21
22
23 #ifndef LISTVIEWTAB_H
24 #define LISTVIEWTAB_H
25
26 #include <QtGui>
27 #include "infotab.h"
28 #include "pixmap.h"
29 #include "updatelocation/updatelocationdialog.h"
30
31 /**
32 * @brief List View class. Used for displaying List of friends
33 *
34 * @class ListViewScreen mainwindow.h "src/ui/mainwindow.h"
35 */
36 class ListViewScreen : public QWidget
37 {
38 Q_OBJECT
39 public:
40     /**
41     * @brief Constructor
42     *
43     * @param parent Parent
44     */
45     ListViewScreen(QWidget *parent = 0);
46     /**
47     * @brief Destructor
48     *
49     */
50     ~ListViewScreen();
51 public slots:
52     void updateMessage();
53 private:
54     QVBoxLayout *m_vbox;    ///< Holds the graphics view
55     InfoTab *m_personalInfo;    ///< Personal info tab
56     Pixmap *m_arrowbutton;    ///< Button which reveals/hides the info tab when pressed
57     QGraphicsProxyWidget *m_widgetProxy; ///< Embeds InfoTab to graphics view
58     QAbstractTransition *m_trans1;    ///< Animation transition from hidden state to visible
59     QAbstractTransition *m_trans2;    ///< Animation transition from visible to hidden
60     QPropertyAnimation *m_anim1;    ///< Animation for infotab from hidden to visible
61     QPropertyAnimation *m_anim2;    ///< Animation for arrowbutton from hidden to visible
62     QPropertyAnimation *m_anim3;    ///< Animation for infotab from visible to hidden
63     QPropertyAnimation *m_anim4;    ///< Animation for arrowbutton from visible to hidden
64     UpdateLocationDialog *m_locationDialog; ///< Message dialog
65 };
66
67 #endif // LISTVIEWTAB_H