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,
27 #include "../user/user.h"
33 * @brief Class for sliding user information panel
35 * @author Kaj Wallin - kaj.wallin (at) ixonos.com
36 * @class UserInfoPanel userpanel.h "ui/userpanel.h"
38 class UserInfoPanel : public QWidget
44 * @brief Default constructor
48 UserInfoPanel(QWidget *parent = 0);
50 /*******************************************************************************
51 * MEMBER FUNCTIONS AND SLOTS
52 ******************************************************************************/
55 void userDataReceived(User *user);
57 * @brief Slot to redraw the panel after window resize event
59 * @param width Width of the window after resize
60 * @param height Height of the window after resize
62 void reDrawUserPanel(int width, int height);
64 /*******************************************************************************
66 ******************************************************************************/
68 QVBoxLayout *m_userPanelVBox; ///< Vertical layout inside the panel
69 PanelSliderBar *m_userPanelSlidingBar; ///< Widget for sidebar tab item
71 QStateMachine *m_userPanelStateMachine; ///< State machine for sliding the panel
72 QState *m_userPanelStateClosed; ///< State of the closed panel
73 QState *m_userPanelStateOpened; ///< State of the opened panel
74 QSignalTransition *m_userPanelTransitionClose; ///< Transition signal for closing the panel
75 QSignalTransition *m_userPanelTransitionOpen; ///< Transition signal for opening the panel