24 #ifndef KDOCKWIDGET_PRIVATE_H 25 #define KDOCKWIDGET_PRIVATE_H 28 #include <tqpushbutton.h> 31 #include <netwm_def.h> 59 KDockSplitter(TQWidget *parent= 0,
const char *name= 0, Orientation orient= Qt::Vertical,
int pos= 50);
70 void activate(TQWidget *c0, TQWidget *c1 = 0L);
80 int separatorPosInPercent();
85 void setSeparatorPosInPercent(
int percent);
95 int separatorPos()
const;
102 void setSeparatorPos(
int pos,
bool do_resize =
true);
112 void setSeparatorPosX(
int pos,
bool do_resize=
false);
118 virtual bool eventFilter(TQObject *, TQEvent *);
119 virtual bool event( TQEvent * );
133 TQWidget* getAnother( TQWidget* w )
const;
141 void setOpaqueResize(
bool b=
true);
142 bool opaqueResize()
const;
148 void setKeepSize(
bool b=
true);
149 bool keepSize()
const;
162 friend class KDockContainer;
168 int checkValue(
int position)
const;
176 int checkValueOverlapped(
int position, TQWidget* child)
const;
192 virtual void resizeEvent(TQResizeEvent *ev);
204 void setupMinMaxSize();
210 TQWidget *child0, *child1;
211 Orientation m_orientation;
232 bool mOpaqueResize, mKeepSize;
233 int fixedWidth0,fixedWidth1;
234 int fixedHeight0,fixedHeight1;
239 static const int factor = 100000;
256 virtual void drawButton( TQPainter * );
257 virtual void enterEvent( TQEvent * );
258 virtual void leaveEvent( TQEvent * );
284 void slotFocusEmbeddedWidget(TQWidget* w = 0L);
287 enum KDockWidgetResize
288 {ResizeLeft,ResizeTop,ResizeRight,ResizeBottom,ResizeBottomLeft,ResizeTopLeft,ResizeBottomRight,ResizeTopRight};
291 int splitPosInPercent;
292 bool pendingFocusInEvent;
293 bool blockHasUndockedSignal;
306 TQGuardedPtr<TQWidget> container;
310 KDockWidgetResize resizeMode;
313 class KDockWidgetHeaderPrivate
317 KDockWidgetHeaderPrivate( TQObject* parent )
320 forceCloseButtonHidden=
false;
322 showToDesktopButton =
true;
328 bool showToDesktopButton;
330 TQPtrList<KDockButton_Private> btns;
331 bool forceCloseButtonHidden;
Like TQSplitter but specially designed for dockwidgets stuff.
TQWidget * getFirst() const
Orientation orientation()
The orientation is either Horizontal or Vertical.
TQWidget * getLast() const