20 #ifndef __KBUTTONBOX__H__
21 #define __KBUTTONBOX__H__
23 #include <tdelibs_export.h>
29 class KButtonBoxPrivate;
54 KButtonBox(TQWidget *parent, Orientation _orientation = TQt::Horizontal,
55 int border = 0,
int _autoborder = 6);
68 virtual TQSize sizeHint()
const;
69 virtual TQSizePolicy sizePolicy()
const;
70 virtual void resizeEvent(TQResizeEvent *);
83 TQPushButton *addButton(
const TQString& text,
bool noexpand =
false);
98 TQPushButton *addButton(
const TQString& text, TQObject * receiver,
const char * slot,
bool noexpand =
false);
113 TQPushButton *addButton(
const KGuiItem& guiitem,
bool noexpand =
false);
130 TQPushButton *addButton(
const KGuiItem& guiitem, TQObject * receiver,
const char * slot,
bool noexpand =
false);
143 void addStretch(
int scale = 1);
160 TQSize bestButtonSize()
const;
162 TQSize buttonSizeHint(TQPushButton *)
const;
165 virtual void virtual_hook(
int id,
void* data );
167 KButtonBoxPrivate*
const data;
An abstract class for GUI data such as ToolTip and Icon.