Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
viewportcontainer.h
Go to the documentation of this file.
1 
8 #ifndef SCROLLWIDGET_H
9 #define SCROLLWIDGET_H
10 
11 #include <QSplitter>
12 #include <QHash>
13 
14 class CAViewPort;
15 class CASheet;
16 
18 Q_OBJECT
19 
20 public:
23 
24  void addViewPort( CAViewPort *v, QSplitter *s=0 );
25  void removeViewPort( CAViewPort *v );
28 
29  CAViewPort* unsplit( CAViewPort *v = 0 );
30  QList<CAViewPort*> unsplitAll();
31 
32  inline bool contains(CAViewPort* v) { return _viewPortMap.contains(v); }
33  inline QList<CAViewPort*> viewPortList() { return _viewPortMap.keys(); }
34 
35  inline void setCurrentViewPort( CAViewPort *v ) { _currentViewPort = v; }
37 
38 private:
39  QHash<CAViewPort*, QSplitter*> _viewPortMap;
42 };
43 #endif