Emit error signal when login fails
[situare] / src / ui / panelbar.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         Pekka Nissinen - pekka.nissinen@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 #ifndef PANELBAR_H
24 #define PANELBAR_H
25
26 #include <QWidget>
27
28 /**
29  * @brief Class for for drawing a vertical line between panel content and tab bar
30  *
31  * @author Kaj Wallin - kaj.wallin (at) ixonos.com
32  * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
33  */
34 class PanelBar : public QWidget
35 {
36     Q_OBJECT
37
38 public:
39     /**
40      * @brief Constructor
41      *
42      * @param parent Parent
43      */
44     PanelBar(QWidget *parent = 0);
45
46 /*******************************************************************************
47  * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
48  ******************************************************************************/
49 protected:
50     /**
51      * @brief Draws the bar
52      *
53      * @param event Paint event
54      */
55     void paintEvent(QPaintEvent *event);
56
57 /*******************************************************************************
58  * MEMBER FUNCTIONS AND SLOTS
59  ******************************************************************************/
60 public slots:
61     /**
62      * @brief Slot to redraw the bar after window resize event
63      *
64      * @param size Size of the new window
65      */
66     void resizeBar(const QSize &size);
67
68 /*******************************************************************************
69  * DATA MEMBERS
70  ******************************************************************************/
71 private:
72     QPixmap m_menuDropShadowTile;   ///< Pixmap for menu drop shadow
73     QPixmap m_barTile;              ///< Pixmap for panel bar
74
75     QRect m_barRect;                ///< Rect for the panel bar
76 };
77 #endif // PANELBAR_H