|
|
|
@ -308,14 +308,14 @@ void StencilBarDockManager::setAllStackBarsShown(bool shown)
|
|
|
|
|
KoToolDockMoveManager::KoToolDockMoveManager()
|
|
|
|
|
: TQObject()
|
|
|
|
|
{
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
|
XGCValues gv;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
working=false;
|
|
|
|
|
noLast=true;
|
|
|
|
|
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
|
scr = tqt_xscreen();
|
|
|
|
|
root = tqt_xrootwin();
|
|
|
|
|
|
|
|
|
@ -386,7 +386,7 @@ void KoToolDockMoveManager::doMoveInternal()
|
|
|
|
|
if (check(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());
|
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
|
#endif
|
|
|
|
@ -402,7 +402,7 @@ void KoToolDockMoveManager::stop()
|
|
|
|
|
TQApplication::restoreOverrideCursor();
|
|
|
|
|
|
|
|
|
|
paintProcess();
|
|
|
|
|
#if defined Q_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
|
#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|
|
|
|
|
XFlush(tqt_xdisplay());
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
@ -424,7 +424,7 @@ void KoToolDockMoveManager::setGeometry(int _x, int _y, int _w, int _h)
|
|
|
|
|
check(_x, _y, _w, _h, true);
|
|
|
|
|
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());
|
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
|
#endif
|
|
|
|
@ -440,7 +440,7 @@ void KoToolDockMoveManager::drawRectangle( int _x, int _y, int _w, int _h)
|
|
|
|
|
ow = _w;
|
|
|
|
|
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);
|
|
|
|
|
#endif
|
|
|
|
|
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 )
|
|
|
|
|
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);
|
|
|
|
|
#endif
|
|
|
|
|
noLast = true;
|
|
|
|
@ -546,7 +546,7 @@ void KoToolDockMoveManager::doResizeInternal()
|
|
|
|
|
if (check(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());
|
|
|
|
|
XSync(tqt_xdisplay(),false);
|
|
|
|
|
#endif
|
|
|
|
|