11 #ifndef KPASSIVEPOPUP_H
12 #define KPASSIVEPOPUP_H
16 #include <kdelibs_export.h>
71 Q_PROPERTY (
bool autoDelete READ autoDelete WRITE setAutoDelete )
72 Q_PROPERTY (
int timeout READ timeout WRITE setTimeout )
89 KPassivePopup( TQWidget *parent=0,
const char *name=0, WFlags f=0 );
100 KPassivePopup(
int popupStyle, TQWidget *parent=0,
const char *name=0, WFlags f=0 );
106 KPassivePopup(
int popupStyle, WId parent,
const char *name=0, WFlags f=0 );
116 void setView( TQWidget *child );
121 void setView(
const TQString &caption,
const TQString &text = TQString::null );
126 virtual void setView(
const TQString &caption,
const TQString &text,
const TQPixmap &icon );
148 TQVBox * standardView(
const TQString& caption,
const TQString& text,
149 const TQPixmap& icon, TQWidget *parent = 0L );
154 TQWidget *
view()
const {
return msgView; }
167 virtual void setAutoDelete(
bool autoDelete );
180 void setAnchor(
const TQPoint& anchor );
191 static KPassivePopup *message(
const TQString &text, TQWidget *parent,
const char *name=0 );
199 static KPassivePopup *message(
const TQString &caption,
const TQString &text,
200 TQWidget *parent,
const char *name=0 );
208 static KPassivePopup *message(
const TQString &caption,
const TQString &text,
209 const TQPixmap &icon,
210 TQWidget *parent,
const char *name=0,
int timeout = -1 );
218 static KPassivePopup *message(
const TQString &caption,
const TQString &text,
219 const TQPixmap &icon,
220 WId parent,
const char *name=0,
int timeout = -1 );
228 static KPassivePopup *message(
int popupStyle,
const TQString &text, TQWidget *parent,
229 const char *name=0 );
237 static KPassivePopup *message(
int popupStyle,
const TQString &caption,
const TQString &text,
238 TQWidget *parent,
const char *name=0 );
246 static KPassivePopup *message(
int popupStyle,
const TQString &caption,
const TQString &text,
247 const TQPixmap &icon,
248 TQWidget *parent,
const char *name=0,
int timeout = -1 );
256 static KPassivePopup *message(
int popupStyle,
const TQString &caption,
const TQString &text,
257 const TQPixmap &icon,
258 WId parent,
const char *name=0,
int timeout = -1 );
270 void setTimeout(
int delay );
281 void show(
const TQPoint &p);
303 virtual void positionSelf();
309 virtual void hideEvent( TQHideEvent * );
314 void moveNear( TQRect target );
319 virtual void mouseReleaseEvent( TQMouseEvent *e );
329 TQRect defaultArea()
const;
341 virtual void paintEvent( TQPaintEvent* pe );
344 void init(
int popupStyle );
348 TQBoxLayout *topLayout;