9 #ifndef KPASSIVEPOPUP_H
10 #define KPASSIVEPOPUP_H
14 #include <tdelibs_export.h>
69 TQ_PROPERTY (
bool autoDelete READ autoDelete WRITE setAutoDelete )
70 TQ_PROPERTY (
int timeout READ timeout WRITE setTimeout )
87 KPassivePopup( TQWidget *parent=0,
const char *name=0, WFlags f=0 );
98 KPassivePopup(
int popupStyle, TQWidget *parent=0,
const char *name=0, WFlags f=0 );
104 KPassivePopup(
int popupStyle, WId parent,
const char *name=0, WFlags f=0 );
114 void setView( TQWidget *child );
119 void setView(
const TQString &caption,
const TQString &text = TQString::null );
124 virtual void setView(
const TQString &caption,
const TQString &text,
const TQPixmap &icon );
146 TQVBox * standardView(
const TQString& caption,
const TQString& text,
147 const TQPixmap& icon, TQWidget *parent = 0L );
152 TQWidget *
view()
const {
return msgView; }
165 virtual void setAutoDelete(
bool autoDelete );
178 void setAnchor(
const TQPoint& anchor );
189 static KPassivePopup *message(
const TQString &text, TQWidget *parent,
const char *name=0 );
197 static KPassivePopup *message(
const TQString &caption,
const TQString &text,
198 TQWidget *parent,
const char *name=0 );
206 static KPassivePopup *message(
const TQString &caption,
const TQString &text,
207 const TQPixmap &icon,
208 TQWidget *parent,
const char *name=0,
int timeout = -1 );
216 static KPassivePopup *message(
const TQString &caption,
const TQString &text,
217 const TQPixmap &icon,
218 WId parent,
const char *name=0,
int timeout = -1 );
226 static KPassivePopup *message(
int popupStyle,
const TQString &text, TQWidget *parent,
227 const char *name=0 );
235 static KPassivePopup *message(
int popupStyle,
const TQString &caption,
const TQString &text,
236 TQWidget *parent,
const char *name=0 );
244 static KPassivePopup *message(
int popupStyle,
const TQString &caption,
const TQString &text,
245 const TQPixmap &icon,
246 TQWidget *parent,
const char *name=0,
int timeout = -1 );
254 static KPassivePopup *message(
int popupStyle,
const TQString &caption,
const TQString &text,
255 const TQPixmap &icon,
256 WId parent,
const char *name=0,
int timeout = -1 );
268 void setTimeout(
int delay );
279 void show(
const TQPoint &p);
301 virtual void positionSelf();
307 virtual void hideEvent( TQHideEvent * );
312 void moveNear( TQRect target );
317 virtual void mouseReleaseEvent( TQMouseEvent *e );
327 TQRect defaultArea()
const;
339 virtual void paintEvent( TQPaintEvent* pe );
342 void init(
int popupStyle );
346 TQBoxLayout *topLayout;