##

Actions.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 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 _GUI_ACTIONS_HH_
#define _GUI_ACTIONS_HH_
#include <string>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
extern GZ_GUI_VISIBLE QAction *g_newAct;
extern GZ_GUI_VISIBLE QAction *g_openAct;
extern GZ_GUI_VISIBLE QAction *g_saveAct;
extern GZ_GUI_VISIBLE QAction *g_saveAsAct;
extern GZ_GUI_VISIBLE QAction *g_saveCfgAct;
extern GZ_GUI_VISIBLE QAction *g_cloneAct;
extern GZ_GUI_VISIBLE QAction *g_hotkeyChartAct;
extern GZ_GUI_VISIBLE QAction *g_aboutAct;
extern GZ_GUI_VISIBLE QAction *g_quitAct;
extern GZ_GUI_VISIBLE QAction *g_dataLoggerAct;
extern GZ_GUI_VISIBLE QAction *g_resetModelsAct;
extern GZ_GUI_VISIBLE QAction *g_resetWorldAct;
extern GZ_GUI_VISIBLE QAction *g_editBuildingAct;
extern GZ_GUI_VISIBLE QAction *g_editTerrainAct;
extern GZ_GUI_VISIBLE QAction *g_editModelAct;
extern GZ_GUI_VISIBLE QAction *g_playAct;
extern GZ_GUI_VISIBLE QAction *g_pauseAct;
extern GZ_GUI_VISIBLE QAction *g_stepAct;
extern GZ_GUI_VISIBLE QAction *g_boxCreateAct;
extern GZ_GUI_VISIBLE QAction *g_sphereCreateAct;
extern GZ_GUI_VISIBLE QAction *g_cylinderCreateAct;
extern GZ_GUI_VISIBLE QAction *g_pointLghtCreateAct;
extern GZ_GUI_VISIBLE QAction *g_spotLghtCreateAct;
extern GZ_GUI_VISIBLE QAction *g_dirLghtCreateAct;
extern GZ_GUI_VISIBLE QAction *g_screenshotAct;
extern GZ_GUI_VISIBLE QAction *g_showCollisionsAct;
extern GZ_GUI_VISIBLE QAction *g_showGridAct;
extern GZ_GUI_VISIBLE QAction *g_showOriginAct;
extern GZ_GUI_VISIBLE QAction *g_showContactsAct;
extern GZ_GUI_VISIBLE QAction *g_showJointsAct;
extern GZ_GUI_VISIBLE QAction *g_showCOMAct;
extern GZ_GUI_VISIBLE QAction *g_showInertiaAct;
extern GZ_GUI_VISIBLE QAction *g_showLinkFrameAct;
extern GZ_GUI_VISIBLE QAction *g_showSkeletonAct;
extern GZ_GUI_VISIBLE QAction *g_transparentAct;
extern GZ_GUI_VISIBLE QAction *g_resetAct;
extern GZ_GUI_VISIBLE QAction *g_showToolbarsAct;
extern GZ_GUI_VISIBLE QAction *g_fullScreenAct;
extern GZ_GUI_VISIBLE QAction *g_fpsAct;
extern GZ_GUI_VISIBLE QAction *g_orbitAct;
extern GZ_GUI_VISIBLE QAction *g_overlayAct;
extern GZ_GUI_VISIBLE QAction *g_arrowAct;
extern GZ_GUI_VISIBLE QAction *g_translateAct;
extern GZ_GUI_VISIBLE QAction *g_rotateAct;
extern GZ_GUI_VISIBLE QAction *g_scaleAct;
extern GZ_GUI_VISIBLE QAction *g_topicVisAct;
extern GZ_GUI_VISIBLE QAction *g_plotAct;
extern GZ_GUI_VISIBLE QAction *g_diagnosticsAct;
extern GZ_GUI_VISIBLE QAction *g_viewWireframeAct;
extern GZ_GUI_VISIBLE QAction *g_viewOculusAct;
extern GZ_GUI_VISIBLE QAction *g_cameraOrthoAct;
extern GZ_GUI_VISIBLE QAction *g_cameraPerspectiveAct;
extern GZ_GUI_VISIBLE QAction *g_copyAct;
extern GZ_GUI_VISIBLE QAction *g_pasteAct;
extern GZ_GUI_VISIBLE QWidgetAction *g_alignAct;
extern GZ_GUI_VISIBLE QAction *g_alignButtonAct;
extern GZ_GUI_VISIBLE QAction *g_snapAct;
extern GZ_GUI_VISIBLE QWidgetAction *g_viewAngleAct;
extern GZ_GUI_VISIBLE QAction *g_viewAngleButtonAct;
extern GZ_GUI_VISIBLE QAction *g_undoAct;
extern GZ_GUI_VISIBLE QAction *g_redoAct;
extern GZ_GUI_VISIBLE QAction *g_undoHistoryAct;
extern GZ_GUI_VISIBLE QAction *g_redoHistoryAct;
class GZ_GUI_VISIBLE DeleteAction : public QAction
{
Q_OBJECT
public: DeleteAction(const QString &_text, QObject *_parent)
: QAction(_text, _parent) {}
public: void Signal(const std::string &_modelName)
{ emit DeleteSignal(_modelName); }
Q_SIGNALS: void DeleteSignal(const std::string &_modelName);
};
extern GZ_GUI_VISIBLE DeleteAction *g_deleteAct;
}
}
#endif
gazebo::gui::g_snapAct
QAction * g_snapAct
gazebo::gui::g_newAct
QAction * g_newAct
gazebo::gui::g_editModelAct
QAction * g_editModelAct
gazebo::gui::g_showSkeletonAct
QAction * g_showSkeletonAct
Action to show/hide skeleton visuals for all models.
gazebo::gui::g_redoAct
QAction * g_redoAct
Action to redo last undone user command.
gazebo::gui::g_transparentAct
QAction * g_transparentAct
gazebo::gui::g_viewAngleButtonAct
QAction * g_viewAngleButtonAct
Action attached to the view angle button.
gazebo::gui::g_saveAsAct
QAction * g_saveAsAct
gazebo::gui::g_viewWireframeAct
QAction * g_viewWireframeAct
gazebo::gui::g_translateAct
QAction * g_translateAct
gazebo::gui::g_showGridAct
QAction * g_showGridAct
Action to show/hide the grid over the ground plane.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::gui::g_alignAct
QWidgetAction * g_alignAct
qt.h
gazebo::gui::g_alignButtonAct
QAction * g_alignButtonAct
gazebo::gui::g_fullScreenAct
QAction * g_fullScreenAct
gazebo::gui::g_viewAngleAct
QWidgetAction * g_viewAngleAct
Action to open the view angle widget.
gazebo::gui::g_scaleAct
QAction * g_scaleAct
gazebo::gui::g_saveCfgAct
QAction * g_saveCfgAct
gazebo::gui::g_hotkeyChartAct
QAction * g_hotkeyChartAct
gazebo::gui::g_saveAct
QAction * g_saveAct
gazebo::gui::g_cylinderCreateAct
QAction * g_cylinderCreateAct
gazebo::gui::g_pauseAct
QAction * g_pauseAct
gazebo::gui::g_viewOculusAct
QAction * g_viewOculusAct
gazebo::gui::g_rotateAct
QAction * g_rotateAct
system.hh
gazebo::gui::g_quitAct
QAction * g_quitAct
gazebo::gui::g_cloneAct
QAction * g_cloneAct
gazebo::gui::g_showCollisionsAct
QAction * g_showCollisionsAct
Action to show/hide collision visuals for all models.
gazebo::gui::g_redoHistoryAct
QAction * g_redoHistoryAct
Action to open the redo history menu.
gazebo::gui::g_overlayAct
QAction * g_overlayAct
gazebo::gui::g_aboutAct
QAction * g_aboutAct
gazebo::gui::g_boxCreateAct
QAction * g_boxCreateAct
gazebo::gui::g_showOriginAct
QAction * g_showOriginAct
Action to show/hide the world origin indicator.
gazebo::gui::g_cameraOrthoAct
QAction * g_cameraOrthoAct
Enable orthographic projection action.
gazebo::gui::g_copyAct
QAction * g_copyAct
gazebo::gui::g_showCOMAct
QAction * g_showCOMAct
Action to show/hide CoM visuals for all models.
gazebo::gui::g_playAct
QAction * g_playAct
gazebo::gui::g_stepAct
QAction * g_stepAct
gazebo::gui::g_arrowAct
QAction * g_arrowAct
gazebo::gui::g_editTerrainAct
QAction * g_editTerrainAct
gazebo::gui::g_sphereCreateAct
QAction * g_sphereCreateAct
gazebo::gui::DeleteAction
Custom delete action.
Definition: Actions.hh:145
gazebo::gui::g_showLinkFrameAct
QAction * g_showLinkFrameAct
Action to show/hide link frame visuals for all models.
gazebo::gui::g_undoAct
QAction * g_undoAct
Action to undo last user command.
gazebo::gui::g_screenshotAct
QAction * g_screenshotAct
gazebo::gui::g_showJointsAct
QAction * g_showJointsAct
Action to show/hide joint visuals for all models.
gazebo::gui::g_undoHistoryAct
QAction * g_undoHistoryAct
Action to open the undo history menu.
gazebo::gui::g_resetWorldAct
QAction * g_resetWorldAct
gazebo::gui::g_editBuildingAct
QAction * g_editBuildingAct
gazebo::gui::g_orbitAct
QAction * g_orbitAct
gazebo::gui::g_dataLoggerAct
QAction * g_dataLoggerAct
gazebo::gui::g_showToolbarsAct
QAction * g_showToolbarsAct
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::g_dirLghtCreateAct
QAction * g_dirLghtCreateAct
gazebo::gui::g_topicVisAct
QAction * g_topicVisAct
gazebo::gui::g_pointLghtCreateAct
QAction * g_pointLghtCreateAct
gazebo::gui::g_spotLghtCreateAct
QAction * g_spotLghtCreateAct
gazebo::gui::g_plotAct
QAction * g_plotAct
Action to show/hide the plotting utitlty.
gazebo::gui::g_cameraPerspectiveAct
QAction * g_cameraPerspectiveAct
Enable perspective projection action.
gazebo::gui::g_showInertiaAct
QAction * g_showInertiaAct
Action to show/hide inertia visuals for all models.
gazebo::gui::DeleteAction::DeleteSignal
void DeleteSignal(const std::string &_modelName)
The custom signal which a SLOT can connect to.
gazebo::gui::g_pasteAct
QAction * g_pasteAct
gazebo::gui::g_diagnosticsAct
QAction * g_diagnosticsAct
gazebo::gui::g_resetAct
QAction * g_resetAct
gazebo::gui::DeleteAction::DeleteAction
DeleteAction(const QString &_text, QObject *_parent)
Constructor.
Definition: Actions.hh:151
gazebo::gui::g_showContactsAct
QAction * g_showContactsAct
Action to show/hide contact visuals for all models.
gazebo::gui::DeleteAction::Signal
void Signal(const std::string &_modelName)
Emit the delete signal.
Definition: Actions.hh:156
gazebo::gui::g_openAct
QAction * g_openAct
gazebo::gui::g_resetModelsAct
QAction * g_resetModelsAct
gazebo::gui::g_fpsAct
QAction * g_fpsAct
gazebo::gui::g_deleteAct
DeleteAction * g_deleteAct
Action used to delete a model.