SidePanel Class Reference

Base class for sliding side panels. More...

#include "ui/sidepanel.h"

Inheritance diagram for SidePanel:
Inheritance graph
[legend]
Collaboration diagram for SidePanel:
Collaboration graph
[legend]

List of all members.

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 screenResized (const QSize &size)
 Slot to redraw the panel after window resize event.
void setType (SidePanel::PanelType type)
 Type setter for the panel. Also sets panel visible.

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.

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.
QWidget * m_panelBase
 Widget for panel base.
PanelType currentType
 Holder for the type of this panel.
PanelSliderBarm_panelSlidingBar
 Widget for sidebar tab item.

Detailed Description

Base class for sliding side panels.

Author:
Kaj Wallin - kaj.wallin (at) ixonos.com

Member Enumeration Documentation

Enumerator for the panel type Defines values: UserPanel, FriendPanel, None.

See also:
setType

Constructor & Destructor Documentation

SidePanel::SidePanel ( QWidget *  parent = 0  ) 

Constructor.

Parameters:
parent 

Member Function Documentation

void SidePanel::panelClosed (  )  [signal]

Signal that is sent when panel is closed.

See also:
openPanel
closePanel
void SidePanel::panelOpened (  )  [signal]

Signal that is sent when panel is opened.

See also:
openPanel
closePanel
void SidePanel::screenResized ( const QSize &  size  )  [slot]

Slot to redraw the panel after window resize event.

Parameters:
size Size of the new screen
void SidePanel::setType ( SidePanel::PanelType  type  )  [slot]

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.

Parameters:
type Type of the panel, either UserPanel or FriendPanel
See also:
PanelType
void SidePanel::toggleState (  )  [signal]

Signal that is sent to state machine when state must be changed.

See also:
openPanel
closePanel

The documentation for this class was generated from the following files:

Generated on Thu Jun 10 09:44:04 2010 for Situare client for Maemo by  doxygen 1.6.1