Base class for sliding side panels. More...
#include "ui/sidepanel.h"
Public Types | |
enum | PanelType { UserPanel, FriendPanel, None } |
Enumerator for the panel type Defines values: UserPanel, FriendPanel, None. More... | |
Public Slots | |
void | openPanel () |
Public slot that will open the panel unless already open. | |
void | closePanel () |
Public slot that will close the panel unless already closed. | |
void | resizePanel (const QSize &size) |
Slot to redraw the panel after window resize event. | |
Signals | |
void | toggleState () |
Signal that is sent to state machine when state must be changed. | |
void | panelClosed () |
Signal that is sent when panel is closed. | |
void | panelOpened () |
Signal that is sent when panel is opened. | |
Public Member Functions | |
SidePanel (QWidget *parent=0) | |
Constructor. | |
void | setType (SidePanel::PanelType type) |
Type setter for the panel. Also sets panel visible. | |
Protected Attributes | |
QVBoxLayout * | m_panelVBox |
Vertical layout inside the panel. | |
Private Slots | |
void | stateChangedToClosed () |
Internal slot used to track statemachine state. | |
void | stateChangedToOpen () |
Internal slot used to track statemachine state. | |
Private Attributes | |
bool | m_isOpen |
Boolean used to track the current state of the statemachine. | |
QSignalTransition * | m_panelTransitionClose |
Transition signal for closing the panel. | |
QSignalTransition * | m_panelTransitionOpen |
Transition signal for opening the panel. | |
QState * | m_panelStateClosed |
State of the closed panel. | |
QState * | m_panelStateOpened |
State of the opened panel. | |
QStateMachine * | m_panelStateMachine |
State machine for sliding the panel. | |
SidePanelBase * | m_panelBase |
Widget for panel base. | |
PanelType | currentType |
Holder for the type of this panel. | |
PanelSliderBar * | m_panelSlidingBar |
Widget for panel sliding bar item. |
Base class for sliding side panels.
enum SidePanel::PanelType |
Enumerator for the panel type Defines values: UserPanel, FriendPanel, None.
SidePanel::SidePanel | ( | QWidget * | parent = 0 |
) |
Constructor.
parent |
void SidePanel::panelClosed | ( | ) | [signal] |
Signal that is sent when panel is closed.
void SidePanel::panelOpened | ( | ) | [signal] |
Signal that is sent when panel is opened.
void SidePanel::resizePanel | ( | const QSize & | size | ) | [slot] |
Slot to redraw the panel after window resize event.
size | Size of the new window |
void SidePanel::setType | ( | SidePanel::PanelType | type | ) |
Type setter for the panel. Also sets panel visible.
Use to set panel type as UserPanel or FriendPanel. Panel type determines which side the panel will be rendered. UserPanel will always be rendered on the left side of the screen and FriendPanel on the right side. Type cannot be set twice.
type | Type of the panel, either UserPanel or FriendPanel |
void SidePanel::toggleState | ( | ) | [signal] |
Signal that is sent to state machine when state must be changed.