Choreonoid  1.8
ViewArea.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_VIEW_AREA_H
6 #define CNOID_BASE_VIEW_AREA_H
7 
8 #include "Archive.h"
9 #include <QWidget>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class View;
15 
16 class CNOID_EXPORT ViewArea : public QWidget
17 {
18 public:
19  ViewArea(QWidget* parent = 0);
20  ~ViewArea();
21 
22  void setSingleView(View* view);
23  void createDefaultPanes();
24 
25  bool viewTabsVisible() const;
26  void setViewTabsVisible(bool on);
27 
28  bool addView(View* view);
29  bool removeView(View* view);
30 
31  int numViews() const;
32 
33  void storeLayout(ArchivePtr archive);
34  void restoreLayout(ArchivePtr archive);
35  void resetLayout();
36 
37  static void storeAllViewAreaLayouts(ArchivePtr archive);
38  static void restoreAllViewAreaLayouts(ArchivePtr archive);
39  static void resetAllViewAreaLayouts();
40 
41  class Impl;
42 
43 protected:
44  virtual void keyPressEvent(QKeyEvent* event);
45 
46 private:
47  Impl* impl;
48 };
49 
50 }
51 
52 #endif
cnoid::View
Definition: View.h:27
cnoid::ViewArea
Definition: ViewArea.h:16
cnoid::ref_ptr< Archive >
Archive.h
cnoid
Definition: AbstractSceneLoader.h:11