QSint Library  0.2.2
Public Member Functions | List of all members
QSint::ActionPanel Class Reference

Class representing panels of actions similar to Windows XP task panels. More...

#include <actionpanel.h>

Inherits QFrame.

Public Member Functions

 ActionPanel (QWidget *parent=0)
 
void addWidget (QWidget *w)
 
void addStretch (int s=0)
 
ActionGroup * createGroup ()
 
ActionGroup * createGroup (const QString &title, bool expandable=true)
 
ActionGroup * createGroup (const QPixmap &icon, const QString &title, bool expandable=true)
 
void setScheme (ActionPanelScheme *scheme)
 

Detailed Description

Class representing panels of actions similar to Windows XP task panels.

Since
0.2
ActionPanel1.png
An example of ActionPanel

ActionPanel acts like a container for ActionGroup which in turn are containers for the actions represented by ActionLabel.

The look and fill is complete styleable via setScheme(). Currently the following schemes available: ActionPanelScheme (the default), WinXPPanelScheme and WinXPPanelScheme2 (blue Windows XP schemes), WinVistaPanelScheme (Windows Vista variation), MacPanelScheme (MacOS variation), AndroidPanelScheme (Android variation).

Constructor & Destructor Documentation

QSint::ActionPanel::ActionPanel ( QWidget *  parent = 0)
explicit

Constructor.

Member Function Documentation

void QSint::ActionPanel::addStretch ( int  s = 0)

Adds a spacer with width s to the ActionPanel's vertical layout. Normally you should do this after all the ActionGroups were added, in order to maintain some space below.

void QSint::ActionPanel::addWidget ( QWidget *  w)

Adds a widget w to the ActionPanel's vertical layout.

ActionGroup * QSint::ActionPanel::createGroup ( )

Creates and adds to the ActionPanel's vertical layout an empty ActionGroup without header.

ActionGroup * QSint::ActionPanel::createGroup ( const QString &  title,
bool  expandable = true 
)

Creates and adds to the ActionPanel's vertical layout an empty ActionGroup with header's text set to title, but with no icon.

If expandable set to true (default), the group can be expanded/collapsed by the user.

ActionGroup * QSint::ActionPanel::createGroup ( const QPixmap &  icon,
const QString &  title,
bool  expandable = true 
)

Creates and adds to the ActionPanel's vertical layout an empty ActionGroup with header's text set to title and icon set to icon.

If expandable set to true (default), the group can be expanded/collapsed by the user.

void QSint::ActionPanel::setScheme ( ActionPanelScheme *  scheme)

Sets the scheme of the panel and all the child groups to scheme.

By default, ActionPanelScheme::defaultScheme() is used.


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

© Sintegrial Technologies 2011-2014
http://www.sintegrial.com