##

TopToolbar.hh
Go to the documentation of this file.
/*
* Copyright (C) 2015 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_TOPTOOLBAR_HH_
#define GAZEBO_GUI_TOPTOOLBAR_HH_
#include <string>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class TopToolbarPrivate;
class GZ_GUI_VISIBLE TopToolbar : public QFrame
{
Q_OBJECT
public: explicit TopToolbar(QWidget *_parent = 0);
public: virtual ~TopToolbar();
public: void InsertAction(const QString &_before,
QAction *_action);
public: QAction *InsertSeparator(const QString &_before);
public: QAction *InsertWidget(const QString &_before,
QWidget *_widget);
public: void AddAction(QAction *_action);
public: QAction *AddSeparator();
public: QAction *AddWidget(QWidget *_widget);
private: void OnWindowMode(const std::string &_mode);
private: TopToolbarPrivate *dataPtr;
};
}
}
#endif
gazebo::gui::TopToolbar::AddAction
void AddAction(QAction *_action)
Add an action to the end of the toolbar.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::TopToolbar::InsertSeparator
QAction * InsertSeparator(const QString &_before)
Insert a separator before a given action.
system.hh
gazebo::gui::TopToolbar::InsertAction
void InsertAction(const QString &_before, QAction *_action)
Insert an action before a given action.
gazebo::gui::TopToolbar::AddSeparator
QAction * AddSeparator()
Add a separator to the end of the toolbar.
gazebo::gui::TopToolbar
Toolbar on the top of the main window.
Definition: TopToolbar.hh:32
gazebo::gui::TopToolbar::InsertWidget
QAction * InsertWidget(const QString &_before, QWidget *_widget)
Insert a widget before a given action.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::TopToolbar::TopToolbar
TopToolbar(QWidget *_parent=0)
Constructor.
gazebo::gui::TopToolbar::~TopToolbar
virtual ~TopToolbar()
Destructor.
gazebo::gui::TopToolbar::AddWidget
QAction * AddWidget(QWidget *_widget)
Add a widget to the end of the toolbar.