2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Pekka Nissinen - pekka.nissinen@ixonos.com
6 Sami Rämö - sami.ramo@ixonos.com
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.
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.
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,
29 class QListWidgetItem;
35 * @brief Base class for panels
37 * @author Pekka Nissinen - pekka.nissinen (at) ixonos.com
38 * @author Sami Rämö - sami.ramo (at) ixonos.com
40 class PanelBase : public QWidget
48 * @param parent Parent
50 PanelBase(QWidget *parent = 0);
52 /*******************************************************************************
53 * MEMBER FUNCTIONS AND SLOTS
54 ******************************************************************************/
57 * @brief Getter for the generic panel related context buttons
59 * @returns Pointer to context buttons widget
61 QWidget* genericPanelButtons() const;
63 QWidget* itemButtons() const;
66 void onListItemSelectionChanged();
68 /*******************************************************************************
70 ******************************************************************************/
73 * @brief Signal for requesting a panel to be opened
75 * @param widget Pointer to the widget that emitted the signal
77 void openPanelRequested(QWidget *widget);
79 void listItemSelectionChanged(bool itemIsSelected);
81 /*******************************************************************************
83 ******************************************************************************/
85 QVBoxLayout *m_genericButtonsLayout; ///< Layout for generic context buttons
86 QHBoxLayout *m_itemButtonsLayout; ///< Layout for item related context buttons
89 QWidget *m_genericButtons; ///< Widget for generic context buttons
90 QWidget *m_itemButtons; ///< Widget for item related context buttons