c16646ff3030b0ff984023ae20e6297cf80b1a4f
[kwingrid.git] / old / kwingrid.h
1 // -*- c++ -*-
2
3 #ifndef __kwingrid_h
4 #define __kwingrid_h 1
5
6 #include <qobject.h>
7 #include <kwinmodule.h>
8 #include <kwingrid_iface.h>
9
10 class KWinGrid 
11     : public QObject, public virtual KWinGrid_Iface
12 {
13     Q_OBJECT
14
15 public:
16     KWinGrid(int hgap__, int vgap__, int hsplit__, int vsplit__);
17     
18     virtual void move(int __xslot, int __yslot);
19     virtual void resize(int __xsize, int __ysize);
20     virtual void moveResize(int __xslot, int __yslot, 
21                             int __xsize, int __ysize);
22     virtual void moveRelative(int __xdiff, int __ydiff);
23     virtual void resizeRelative(int __xdiff, int __ydiff);
24     virtual void toDesk(int __desk);
25
26 public slots:
27     void move_TL();
28     void move_TR();
29     void move_BL();
30     void move_BR();
31     
32     void resize_Q();
33     void resize_H();
34     void resize_V();
35     void resize_F();
36
37     void move_L();
38     void move_R();
39     void move_U();
40     void move_D();
41     
42     void resize_IH();
43     void resize_DH();
44     void resize_IV();
45     void resize_DV();
46
47 private:
48     void initGeometry();
49     void updateGeometry(QRect& __new);
50     void applyGeometry();
51     QRect doMoveResize(int __xslot, int __yslot, 
52                        int __xsize, int __ysize);
53     
54     KWinModule* module_;
55     DCOPClient* client_;
56
57     int activeWindow_;
58     QRect inner_;
59     QRect outer_;
60     QRect region_;
61
62     int hsize_;
63     int vsize_;
64
65     int hgap_;
66     int vgap_;
67     int hsplit_;
68     int vsplit_;
69 };
70
71 #endif