19#ifndef STENCILBARDOCKMANAGER_H
20#define STENCILBARDOCKMANAGER_H
28#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
33#include <koffice_export.h>
45class StencilBarDockManager : public TQWidget
60 StencilBarDockManager( KivioView* parent, const char* name = 0 );
61 ~StencilBarDockManager();
63 void insertStencilSet( TQWidget*, const TQString&, BarPos = AutoSelect,
64 TQRect r = TQRect(), KivioStackBar* destinationBar = 0L );
67 void slotDeleteStencilSet( DragBarButton*,TQWidget*,KivioStackBar* );
68 void setAllStackBarsShown( bool shown);
71 void slotBeginDragPage( DragBarButton* );
72 void slotFinishDragPage( DragBarButton* );
77 DragBarButton* dragButton;
79 KoToolDockMoveManager* moveManager;
80 TQPtrList<KivioStackBar> m_pBars;
86 KivioStackBar* m_destinationBar;
94class KoToolDockMoveManager: public TQObject
101 KoToolDockMoveManager();
102 ~KoToolDockMoveManager();
104 bool isWorking() const { return working; }
106 void doXResize( TQWidget*, bool mirror );
107 void doYResize( TQWidget*, bool mirror );
108 void doXYResize( TQWidget*, bool _mirrorX, bool _mirrorY );
110 void doMove( TQWidget* );
111 void movePause( bool horizontal = true, bool vertical = true );
114 void setGeometry( const TQRect& r );
115 void setGeometry( int x, int y, int w, int h);
119 void resize( const TQSize& s ) { setGeometry(xp, yp, s.width(), s.height()); }
120 void resize( int rw, int rh) { setGeometry(xp, yp, rw, rh); }
121 void move( int rx, int ry) { setGeometry(rx, ry, w, h); }
122 void move( const TQPoint& p ) {setGeometry(p.x(), p.y(), w, h); }
124 int x() const { return xp; }
125 int y() const { return yp; }
126 int width() const { return w; }
127 int height() const { return h; }
129 bool isXMirror() const { return mirrorX; }
130 bool isYMirror() const{ return mirrorY; }
133 TQWidget* getWidget() const{ return widget; }
137 void positionChanged();
139 void fixPosition( int& x, int& y, int& w, int& h);
140 void fixSize( int& x, int& y, int& w, int& h);
144 void doResize( TQWidget* );
145 void setWidget( TQWidget* );
146 void drawRectangle ( int x, int y, int w, int h);
147 void paintProcess( bool onlyDeelete = true, int _x = 0, int _y = 0, int _w = 0, int _h = 0 );
148 bool check( int& x, int& y, int& w, int& h, bool change = false);
152 void doMoveInternal();
153 void doResizeInternal();
161 int orig_x, orig_y, orig_w, orig_h;
174#if defined TQ_WS_X11 && !defined K_WS_TQTONLY
|