Salome HOME
no message
[modules/gui.git] / src / STD / STD_TabDesktop.h
1 #ifndef STD_TABDESKTOP_H
2 #define STD_TABDESKTOP_H
3
4 #include "STD.h"
5
6 #include <SUIT_Desktop.h>
7
8 class QtxAction;
9 class QPopupMenu;
10 class QWorkspace;
11 class QtxWorkstack;
12 class QtxWorkstackAction;
13
14 #if defined WNT
15 #pragma warning( disable: 4251 )
16 #endif
17
18 class STD_EXPORT STD_TabDesktop: public SUIT_Desktop 
19 {
20   Q_OBJECT
21
22 public:
23   enum { VSplit, HSplit };
24
25 public:
26   STD_TabDesktop();
27   virtual ~STD_TabDesktop();
28
29   virtual SUIT_ViewWindow* activeWindow() const;
30   virtual QPtrList<SUIT_ViewWindow> windows() const;
31
32   void                     windowOperation( const int );
33
34   void                     setWindowOperations( const int, ... );
35   void                     setWindowOperations( const QValueList<int>& );
36
37   QtxWorkstack*            workstack() const;
38
39 private slots:
40   void                     onWindowActivated( QWidget* );
41
42 protected:
43   void                     createActions();
44   virtual QWidget*         parentArea() const;
45
46 private:
47   int                      operationFlag( const int ) const;
48
49 private:
50   QtxWorkstack*            myWorkstack;
51   QtxWorkstackAction*      myWorkstackAction;
52 };
53
54 #if defined WNT
55 #pragma warning( default: 4251 )
56 #endif
57
58 #endif