TopToolbar Class Reference

Toolbar on the top of the main window. More...

#include <TopToolbar.hh>

Inherits QFrame.

Public Member Functions

 TopToolbar (QWidget *_parent=0)
 Constructor. More...
 
virtual ~TopToolbar ()
 Destructor. More...
 
void AddAction (QAction *_action)
 Add an action to the end of the toolbar. More...
 
QAction * AddSeparator ()
 Add a separator to the end of the toolbar. More...
 
QAction * AddWidget (QWidget *_widget)
 Add a widget to the end of the toolbar. More...
 
void InsertAction (const QString &_before, QAction *_action)
 Insert an action before a given action. More...
 
QAction * InsertSeparator (const QString &_before)
 Insert a separator before a given action. More...
 
QAction * InsertWidget (const QString &_before, QWidget *_widget)
 Insert a widget before a given action. More...
 

Detailed Description

Toolbar on the top of the main window.

Constructor & Destructor Documentation

§ TopToolbar()

TopToolbar ( QWidget *  _parent = 0)

Constructor.

Parameters
[in]_parentParent widget.

§ ~TopToolbar()

virtual ~TopToolbar ( )
virtual

Destructor.

Member Function Documentation

§ AddAction()

void AddAction ( QAction *  _action)

Add an action to the end of the toolbar.

Parameters
[in]_actionThe action to be added.

§ AddSeparator()

QAction* AddSeparator ( )

Add a separator to the end of the toolbar.

Returns
The action for the created separator, if successful.

§ AddWidget()

QAction* AddWidget ( QWidget *  _widget)

Add a widget to the end of the toolbar.

Returns
The new toolbar action for the widget, if successful.

§ InsertAction()

void InsertAction ( const QString &  _before,
QAction *  _action 
)

Insert an action before a given action.

Parameters
[in]_beforeName of an action already on the toolbar. This fails to insert the action if the name is not found.
[in]_actionThe action to be inserted.

§ InsertSeparator()

QAction* InsertSeparator ( const QString &  _before)

Insert a separator before a given action.

Parameters
[in]_beforeName of an action already on the toolbar.
Returns
The action for the created separator, if successful.

§ InsertWidget()

QAction* InsertWidget ( const QString &  _before,
QWidget *  _widget 
)

Insert a widget before a given action.

Parameters
[in]_beforeName of an action already on the toolbar.
[in]_widgetWidget to be inserted.
Returns
The new toolbar action for the widget, if successful.

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