Choreonoid  1.8
ToolBarArea.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_TOOL_BAR_AREA_H
6 #define CNOID_BASE_TOOL_BAR_AREA_H
7 
8 #include <QWidget>
9 #include <vector>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class ToolBar;
15 class Menu;
16 class Mapping;
17 
18 class CNOID_EXPORT ToolBarArea : public QWidget
19 {
20 public:
21  ToolBarArea(QWidget* parent);
22  ~ToolBarArea();
23 
24  std::vector<ToolBar*> toolBars() const;
25  std::vector<ToolBar*> visibleToolBars() const;
26 
27  void setInitialLayout(Mapping* archive);
28  void doInitialLayout();
29  void restoreLayout(Mapping* archive);
30  void resetLayout(Mapping* archive);
31  void removeLayout(Mapping* archive);
32  void storeLayout(Mapping* archive);
33 
34  void addToolBar(ToolBar* toolBar);
35  void removeToolBar(ToolBar* toolBar);
36 
37  void setVisibilityMenuItems(Menu* menu);
38 
39  void layoutToolBars();
40 
41  // called from ToolBar
42  void dragToolBar(ToolBar* toolBar, const QPoint& globalPos);
43 
44 protected:
45  virtual void resizeEvent(QResizeEvent* event);
46  virtual bool event(QEvent* event);
47 
48 private:
49  class Impl;
50  Impl* impl;
51 };
52 
53 }
54 
55 #endif
cnoid::Mapping
Definition: ValueTree.h:253
cnoid::ToolBar
Definition: ToolBar.h:22
cnoid::ToolBarArea
Definition: ToolBarArea.h:18
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Menu
Definition: Menu.h:14