Public Member Functions | List of all members
gazebo::gui::TopToolbar Class Reference

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

#include <TopToolbar.hh>

Inheritance diagram for gazebo::gui::TopToolbar:
Inheritance graph
[legend]

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

gazebo::gui::TopToolbar::TopToolbar ( QWidget *  _parent = 0)

Constructor.

Parameters
[in]_parentParent widget.
virtual gazebo::gui::TopToolbar::~TopToolbar ( )
virtual

Destructor.

Member Function Documentation

void gazebo::gui::TopToolbar::AddAction ( QAction *  _action)

Add an action to the end of the toolbar.

Parameters
[in]_actionThe action to be added.
QAction* gazebo::gui::TopToolbar::AddSeparator ( )

Add a separator to the end of the toolbar.

Returns
The action for the created separator, if successful.
QAction* gazebo::gui::TopToolbar::AddWidget ( QWidget *  _widget)

Add a widget to the end of the toolbar.

Returns
The new toolbar action for the widget, if successful.
void gazebo::gui::TopToolbar::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.
QAction* gazebo::gui::TopToolbar::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.
QAction* gazebo::gui::TopToolbar::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: