26 #include <tdelibs_export.h>
74 TQ_PROPERTY (TQString url READ url WRITE setURL)
75 TQ_PROPERTY (TQString tipText READ tipText WRITE setTipText )
76 TQ_PROPERTY (TQPixmap altPixmap READ altPixmap WRITE setAltPixmap)
77 TQ_PROPERTY (
bool glowEnabled READ isGlowEnabled WRITE setGlow )
78 TQ_PROPERTY (
bool floatEnabled READ isFloatEnabled WRITE setFloat )
79 TQ_PROPERTY (
bool useTips READ useTips WRITE setUseTips )
80 TQ_PROPERTY (
bool useCursor READ useCursor WRITE setUseCursor )
89 KURLLabel (TQWidget* parent = 0L,
const char* name = 0L);
103 KURLLabel (
const TQString& url,
const TQString& text = TQString::null,
104 TQWidget* parent = 0L,
const char* name = 0L);
114 const TQString& url ()
const;
119 const TQString& tipText ()
const;
126 bool useTips ()
const;
133 bool useCursor ()
const;
139 bool isGlowEnabled ()
const;
149 bool isFloatEnabled ()
const;
154 const TQPixmap* altPixmap ()
const;
159 virtual void setMargin (
int margin );
166 virtual void setFocusPolicy ( TQ_FocusPolicy policy );
172 virtual void setSizePolicy ( TQSizePolicy );
181 void setUnderline (
bool on =
true);
188 void setURL (
const TQString& url);
193 virtual void setFont (
const TQFont&);
202 void setUseTips (
bool on =
true);
211 void setTipText (
const TQString& tip);
219 void setHighlightedColor(
const TQColor& highcolor);
226 void setHighlightedColor(
const TQString& highcolor);
235 void setSelectedColor(
const TQColor& selcolor);
242 void setSelectedColor(
const TQString& selcolor);
247 virtual void setCursor (
const TQCursor& cursor );
252 virtual void unsetCursor ();
264 void setUseCursor (
bool on, TQCursor* cursor = 0L);
273 void setGlow (
bool glow =
true);
286 void setFloat (
bool do_float =
true);
297 void setAltPixmap (
const TQPixmap& altPix);
306 void enteredURL (
const TQString& url);
318 void leftURL (
const TQString& url);
330 void leftClickedURL(
const TQString& url);
335 void leftClickedURL();
342 void rightClickedURL(
const TQString& url);
347 void rightClickedURL();
354 void middleClickedURL(
const TQString& url);
359 void middleClickedURL();
366 virtual void mouseReleaseEvent ( TQMouseEvent * e );
371 virtual void enterEvent (TQEvent*);
376 virtual void leaveEvent (TQEvent*);
381 virtual bool event (TQEvent *e);
386 TQRect activeRect()
const;
401 void setLinkColor (
const TQColor& col);
404 virtual void virtual_hook(
int id,
void* data );
410 #endif // KURLLABEL_H
A drop-in replacement for TQLabel that displays hyperlinks.