2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Kaj Wallin - kaj.wallin@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,
31 * @brief Class for sliding user information panel
33 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
34 * @class UserInfoPanel userpanel.h "ui/userpanel.h"
36 class UserInfoPanel : public QWidget
42 * @brief Default constructor
46 UserInfoPanel(QWidget *parent = 0);
48 /*******************************************************************************
49 * MEMBER FUNCTIONS AND SLOTS
50 ******************************************************************************/
53 * @brief Slot to redraw the panel after window resize event
55 * @param width Width of the window after resize
56 * @param height Height of the window after resize
58 void reDrawUserPanel(int width, int height);
60 /*******************************************************************************
62 ******************************************************************************/
64 QVBoxLayout *m_userPanelVBox; ///< Vertical layout inside the panel
65 PanelSliderBar *m_userPanelSlidingBar; ///< Widget for sidebar tab item
67 QStateMachine *m_userPanelStateMachine; ///< State machine for sliding the panel
68 QState *m_userPanelStateClosed; ///< State of the closed panel
69 QState *m_userPanelStateOpened; ///< State of the opened panel
70 QSignalTransition *m_userPanelTransitionClose; ///< Transition signal for closing the panel
71 QSignalTransition *m_userPanelTransitionOpen; ///< Transition signal for opening the panel