Choreonoid  1.8
JointDisplacementWidget.h
Go to the documentation of this file.
1 #ifndef CNOID_BODY_PLUGIN_JOINT_DISPLACEMENT_WIDGET_H
2 #define CNOID_BODY_PLUGIN_JOINT_DISPLACEMENT_WIDGET_H
3 
4 #include <QWidget>
5 #include <cnoid/Signal>
6 #include "exportdecl.h"
7 
8 namespace cnoid {
9 
10 class BodyItem;
11 class MenuManager;
12 class Archive;
13 
14 class CNOID_EXPORT JointDisplacementWidget : public QWidget
15 {
16 public:
17  JointDisplacementWidget(QWidget* parent);
19 
20  void setBodyItem(BodyItem* bodyItem);
21  BodyItem* bodyItem();
22 
23  void setOptionMenuTo(MenuManager& menu);
24  bool storeState(Archive& archive);
25  bool restoreState(const Archive& archive);
26 
27  SignalProxy<void(QWidget* widget)> sigJointWidgetFocused();
28 
29  class Impl;
30 
31 protected:
32  virtual bool eventFilter(QObject* object, QEvent* event) override;
33 
34 private:
35  Impl* impl;
36 };
37 
38 }
39 
40 #endif
cnoid::Archive
Definition: Archive.h:22
cnoid::MenuManager
Definition: MenuManager.h:14
cnoid::BodyItem
Definition: BodyItem.h:28
cnoid::JointDisplacementWidget
Definition: JointDisplacementWidget.h:14
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::SignalProxy
Definition: Signal.h:470