Choreonoid  1.8
SceneBar.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_SCENE_BAR_H
6 #define CNOID_BASE_SCENE_BAR_H
7 
8 #include <cnoid/ToolBar>
9 #include "exportdecl.h"
10 
11 namespace cnoid {
12 
13 class SceneWidget;
14 class SceneView;
15 
16 class CNOID_EXPORT SceneBar : public ToolBar
17 {
18 public:
19  static void initialize(ExtensionManager* ext);
20  static SceneBar* instance();
21 
22  void addCustomModeButton(int id, const QIcon& icon, const QString& caption);
23  void removeCustomModeButton(int id);
24 
25  SceneView* currentSceneView();
26 
27  // [[deprecated("Use SceneBar::currentSceneView().")]]
28  SceneWidget* targetSceneWidget();
29 
30 protected:
31  SceneBar();
32 
33 private:
34  ~SceneBar();
35 
36  class Impl;
37  Impl* impl;
38 };
39 
40 }
41 
42 #endif
cnoid::ToolBar
Definition: ToolBar.h:22
cnoid::ExtensionManager
Definition: ExtensionManager.h:23
cnoid::SceneView
Definition: SceneView.h:19
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::SceneBar
Definition: SceneBar.h:16
cnoid::SceneWidget
Definition: SceneWidget.h:25