00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef TDETOOLBARLABELACTION_H
00019 #define TDETOOLBARLABELACTION_H
00020
00021 #include <tdeactionclasses.h>
00022
00023 class TQLabel;
00024
00049 class TDEUI_EXPORT TDEToolBarLabelAction : public KWidgetAction
00050 {
00051 public:
00062 TDEToolBarLabelAction(const TQString &text,
00063 const TDEShortcut &cut,
00064 const TQObject *receiver, const char *slot,
00065 TDEActionCollection *parent, const char *name);
00078 TDEToolBarLabelAction(TQWidget* buddy, const TQString &text,
00079 const TDEShortcut &cut,
00080 const TQObject *receiver, const char *slot,
00081 TDEActionCollection *parent, const char *name);
00101 TDEToolBarLabelAction(TQLabel* label, const TDEShortcut &cut,
00102 const TQObject *receiver, const char *slot,
00103 TDEActionCollection* parent, const char *name);
00104
00105 virtual ~TDEToolBarLabelAction();
00109 virtual void setText(const TQString& text);
00115 virtual void setBuddy(TQWidget* buddy);
00121 TQWidget* buddy() const;
00125 TQLabel* label() const;
00126
00127 protected:
00128 virtual void virtual_hook(int id, void* data);
00129
00130 private:
00131 class TDEToolBarLabelActionPrivate;
00132 TDEToolBarLabelActionPrivate *d;
00133 void init();
00134 };
00135
00136
00137 #endif