17 #ifndef _MODELRIGHTMENU_HH_
18 #define _MODELRIGHTMENU_HH_
70 public:
void Run(
const std::string &_entityName,
const QPoint &_pt,
71 EntityTypes _type = MODEL);
74 private slots:
void OnMoveTo();
77 private slots:
void OnFollow();
80 private slots:
void OnEdit();
83 private slots:
void OnApplyWrench();
87 private slots:
void OnDelete(
const std::string &_name=
"");
101 private:
void OnRequest(ConstRequestPtr &_msg);
105 private:
void OnWindowMode(
const std::string &_mode);
114 private: std::string entityName;
117 private: QAction *moveToAct;
120 private: QAction *followAct;
123 private: QAction *editAct;
126 private: QAction *applyWrenchAct;
129 private: std::vector<event::ConnectionPtr> connections;
132 private: std::string windowMode;
140 private: std::vector<ViewState*> viewStates;
158 const std::string &_checkRequest,
159 const std::string &_uncheckRequest);
180 public slots:
void Callback();
#define GZ_GUI_VISIBLE
Definition: system.hh:284
bool globalEnable
True if the view visualization is enabled globally.
Definition: ModelRightMenu.hh:168
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
Forward declarations for transport.
ModelRightMenu * parent
Pointer to the ModelRightMenu.
Definition: ModelRightMenu.hh:171
std::string uncheckRequest
Name of the request to send when unchecked.
Definition: ModelRightMenu.hh:177
std::string checkRequest
Name of the request to send when checked.
Definition: ModelRightMenu.hh:174
std::map< std::string, bool > modelStates
State of all the models for this view.
Definition: ModelRightMenu.hh:162
A class for managing view visualization states.
Definition: ModelRightMenu.hh:149
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
QAction * action
Action for this view.
Definition: ModelRightMenu.hh:165