add move-to-screen shortcuts
[kwingrid.git] / kwingrid.h
index f596adc..8551de4 100644 (file)
@@ -17,7 +17,8 @@ class KWinGrid : public QObject
 public:
     KWinGrid(int hgap__, int vgap__, int hsplit__, int vsplit__, int split__=0,
              int ignorestruts__=-1,
-             int reserveNorth__=0, int reserveSouth__=0, int reserveWest__=0, int reserveEast__=0);
+             int reserveNorth__=0, int reserveSouth__=0, int reserveWest__=0, int reserveEast__=0,
+             int southstrut__=0, int strutscreen__=-2);
 
     virtual void move(int __xslot, int __yslot);
     virtual void resize(int __xsize, int __ysize);
@@ -25,6 +26,7 @@ public:
                             int __xsize, int __ysize);
     virtual void moveRelative(int __xdiff, int __ydiff);
     virtual void resizeRelative(int __xdiff, int __ydiff);
+    virtual void toScreen(int screen);
     virtual void toDesk(int __desk);
 
     virtual void quit();
@@ -42,6 +44,44 @@ public slots:
     void resize_V();
     void resize_F();
 
+    void move32_00();
+    void move32_10();
+    void move32_20();
+    void move32_01();
+    void move32_11();
+    void move32_21();
+    void resize32_00();
+    void resize32_10();
+    void resize32_20();
+    void resize32_01();
+    void resize32_11();
+    void resize32_21();
+
+    void move43_00();
+    void move43_10();
+    void move43_20();
+    void move43_30();
+    void move43_01();
+    void move43_11();
+    void move43_21();
+    void move43_31();
+    void move43_02();
+    void move43_12();
+    void move43_22();
+    void move43_32();
+    void resize43_00();
+    void resize43_10();
+    void resize43_20();
+    void resize43_30();
+    void resize43_01();
+    void resize43_11();
+    void resize43_21();
+    void resize43_31();
+    void resize43_02();
+    void resize43_12();
+    void resize43_22();
+    void resize43_32();
+
     void move_L();
     void move_R();
     void move_U();
@@ -52,6 +92,9 @@ public slots:
     void resize_IV();
     void resize_DV();
 
+    void move_Screen0();
+    void move_Screen1();
+
 public slots:
     void activeWindowChanged(WId id);
 
@@ -61,6 +104,8 @@ private:
     void applyGeometry();
     QRect doMoveResize(int __xslot, int __yslot,
                        int __xsize, int __ysize);
+    void moveSlot(int nx, int ny, int posx, int posy);
+    void resizeSlot(int nx, int ny, int szx, int szy);
 
     void updateTimestamp(void);
 
@@ -88,6 +133,9 @@ private:
     int hsplit_;
     int vsplit_;
 
+    int southstrut_;
+    int strutscreen_;
+
     QDateTime timestamp_;
 };