2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Pekka Nissinen - pekka.nissinen@ixonos.com
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.
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.
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,
22 #ifndef PANELCONTEXTBUTTONBAR_H
23 #define PANELCONTEXTBUTTONBAR_H
29 class PanelContextButtonBar : public QWidget
37 * @param parent Parent
39 PanelContextButtonBar(QWidget *parent = 0);
41 /*******************************************************************************
42 * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
43 ******************************************************************************/
46 * @brief Draws the bar
48 * @param event Paint event
50 void paintEvent(QPaintEvent *event);
52 /*******************************************************************************
53 * MEMBER FUNCTIONS AND SLOTS
54 ******************************************************************************/
57 * @brief Sets the context buttons to the context button bar
59 * @param contextButtonList List of context buttons
61 void setContextButtons(const QList<ImageButton *> &contextButtonList);
63 /*******************************************************************************
65 ******************************************************************************/
68 * @brief This signal is called when context button bar needs to be repositioned
70 void positionChangeRequested();
72 /*******************************************************************************
74 ******************************************************************************/
76 QList<ImageButton *> m_contextButtonList;
78 QPixmap m_barTile; ///< Pixmap for button bar
79 QPixmap m_barTop; ///< Pixmap for button bar top
81 QRect m_barRect; ///< Rect for the button bar
84 #endif // PANELCONTEXTBUTTONBAR_H