22 #ifndef __kguiitem_h__
23 #define __kguiitem_h__
26 #include <tqiconset.h>
28 #include <tqvaluelist.h>
29 #include <kicontheme.h>
30 #include <tdeglobal.h>
48 const TQString &iconName = TQString::null,
49 const TQString &toolTip = TQString::null,
50 const TQString &whatsThis = TQString::null );
52 KGuiItem(
const TQString &text,
const TQIconSet &iconSet,
53 const TQString &toolTip = TQString::null,
54 const TQString &whatsThis = TQString::null );
61 TQString text()
const;
62 TQString plainText()
const;
70 TQString iconName()
const;
71 TQString toolTip()
const;
72 TQString whatsThis()
const;
73 bool isEnabled()
const;
79 bool hasIconSet()
const {
return hasIcon(); }
82 void setText(
const TQString &text );
83 void setIconSet(
const TQIconSet &iconset );
84 void setIconName(
const TQString &iconName );
85 void setToolTip(
const TQString &tooltip );
86 void setWhatsThis(
const TQString &whatsThis );
87 void setEnabled(
bool enable );
90 class KGuiItemPrivate;
An abstract class for GUI data such as ToolTip and Icon.
static TDEInstance * instance()