Toolbar on the top of the main window.
More...
#include <TopToolbar.hh>
Toolbar on the top of the main window.
gazebo::gui::TopToolbar::TopToolbar |
( |
QWidget * |
_parent = 0 | ) |
|
Constructor.
- Parameters
-
[in] | _parent | Parent widget. |
virtual gazebo::gui::TopToolbar::~TopToolbar |
( |
| ) |
|
|
virtual |
void gazebo::gui::TopToolbar::AddAction |
( |
QAction * |
_action | ) |
|
Add an action to the end of the toolbar.
- Parameters
-
[in] | _action | The 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] | _before | Name of an action already on the toolbar. This fails to insert the action if the name is not found. |
[in] | _action | The action to be inserted. |
QAction* gazebo::gui::TopToolbar::InsertSeparator |
( |
const QString & |
_before | ) |
|
Insert a separator before a given action.
- Parameters
-
[in] | _before | Name 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] | _before | Name of an action already on the toolbar. |
[in] | _widget | Widget to be inserted. |
- Returns
- The new toolbar action for the widget, if successful.
The documentation for this class was generated from the following file: