2 Modify from KTolBoxManager
5 **********************************/
8 This file is part of the KDE libraries
9 Copyright (C) 1998 Sven Radej (radej@kde.org)
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Library General Public
13 License as published by the Free Software Foundation; either
14 version 2 of the License, or (at your option) any later version.
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Library General Public License for more details.
21 You should have received a copy of the GNU Library General Public License
22 along with this library; see the file COPYING.LIB. If not, write to
23 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 Boston, MA 02111-1307, USA.
27 #ifndef DOCK_MOVE_MANAGER
28 #define DOCK_MOVE_MANAGER
33 #include <X11/Xutil.h>
38 class DockMoveManager
: public QObject
40 friend class DockManager
;
43 DockMoveManager(QWidget
*widget
);
46 void doMove(bool in_hotspot_static
=false, bool dynamic
= false, bool dontmove
=false);
47 void movePause(){ pauseMove
= true; }
48 void moveContinue(){ pauseMove
= false; }
49 void setGeometry(int x
, int y
, int w
, int h
);
52 * Resizes the resizer. rw is width and rh is height
54 void resize(int rw
, int rh
) {setGeometry(xp
, yp
, rw
, rh
);};
57 * Returns global x coordinate of a mouse.
59 int mouseX() {return rx
;};
62 * Returns global y coordinate of a mouse.
64 int mouseY() {return ry
;};
67 * Returns global x coordinate.
72 * Returns global y coordinate.
79 int width() {return w
;};
84 int height() {return h
;};
86 * Calling this slot will stop the process of moving. It is
87 * equal as if user releases the mouse button.
91 * Internal - draws rectangle on the screen
93 void drawRectangle (int x
, int y
, int w
, int h
);
96 * Internal - deletes last rectangle, if there is one.
98 void deleteLastRectangle ();
102 void doMoveInternal();
108 int orig_x
, orig_y
, orig_w
, orig_h
;
123 unsigned int active_button
;