|
|
@ -308,14 +308,14 @@ void StencilBarDockManager::setAllStackBarsShown(bool shown)
|
|
|
|
KoToolDockMoveManager::KoToolDockMoveManager()
|
|
|
|
KoToolDockMoveManager::KoToolDockMoveManager()
|
|
|
|
: TQObject()
|
|
|
|
: TQObject()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
XGCValues gv;
|
|
|
|
XGCValues gv;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
working=false;
|
|
|
|
working=false;
|
|
|
|
noLast=true;
|
|
|
|
noLast=true;
|
|
|
|
|
|
|
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
scr = tqt_xscreen();
|
|
|
|
scr = tqt_xscreen();
|
|
|
|
root = tqt_xrootwin();
|
|
|
|
root = tqt_xrootwin();
|
|
|
|
|
|
|
|
|
|
|
@ -386,7 +386,7 @@ void KoToolDockMoveManager::doMoveInternal()
|
|
|
|
if (check(xp, yp, w, h)) {
|
|
|
|
if (check(xp, yp, w, h)) {
|
|
|
|
paintProcess(false,xp, yp, w, h);
|
|
|
|
paintProcess(false,xp, yp, w, h);
|
|
|
|
|
|
|
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -402,7 +402,7 @@ void KoToolDockMoveManager::stop()
|
|
|
|
TQApplication::restoreOverrideCursor();
|
|
|
|
TQApplication::restoreOverrideCursor();
|
|
|
|
|
|
|
|
|
|
|
|
paintProcess();
|
|
|
|
paintProcess();
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -424,7 +424,7 @@ void KoToolDockMoveManager::setGeometry(int _x, int _y, int _w, int _h)
|
|
|
|
check(_x, _y, _w, _h, true);
|
|
|
|
check(_x, _y, _w, _h, true);
|
|
|
|
paintProcess(false,_x, _y, _w, _h);
|
|
|
|
paintProcess(false,_x, _y, _w, _h);
|
|
|
|
|
|
|
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
@ -440,7 +440,7 @@ void KoToolDockMoveManager::drawRectangle( int _x, int _y, int _w, int _h)
|
|
|
|
ow = _w;
|
|
|
|
ow = _w;
|
|
|
|
oh = _h;
|
|
|
|
oh = _h;
|
|
|
|
|
|
|
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
XDrawRectangle(tqt_xdisplay(), root, rootgc, _x, _y, _w, _h);
|
|
|
|
XDrawRectangle(tqt_xdisplay(), root, rootgc, _x, _y, _w, _h);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
noLast = false;
|
|
|
|
noLast = false;
|
|
|
@ -454,7 +454,7 @@ void KoToolDockMoveManager::paintProcess( bool onlyDelete, int _x, int _y, int _
|
|
|
|
if ( ox == _x && oy == _y && ow ==_w && oh == _h )
|
|
|
|
if ( ox == _x && oy == _y && ow ==_w && oh == _h )
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
XDrawRectangle(tqt_xdisplay(), root, rootgc, ox, oy, ow, oh);
|
|
|
|
XDrawRectangle(tqt_xdisplay(), root, rootgc, ox, oy, ow, oh);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
noLast = true;
|
|
|
|
noLast = true;
|
|
|
@ -546,7 +546,7 @@ void KoToolDockMoveManager::doResizeInternal()
|
|
|
|
if (check(xp, yp, w, h)) {
|
|
|
|
if (check(xp, yp, w, h)) {
|
|
|
|
paintProcess(false,xp, yp, w, h);
|
|
|
|
paintProcess(false,xp, yp, w, h);
|
|
|
|
|
|
|
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|