kwindowinfo.h Source File (kdeui Library)

| # kdeui Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kwindowinfo.h

    00001 // -*- c++ -*-
    00002
    00003 /*
    00004  *   copyright            : (C) 2001-2002 by Richard Moore
    00005  *   License              : This file is released under the terms of the LGPL, version 2.
    00006  *   email                : rich@kde.org
    00007  */
    00008
    00009 #ifndef KWINDOWINFO_H
    00010 #define KWINDOWINFO_H
    00011
    00012 #include <qobject.h>
    00013 #include <qpixmap.h>
    00014 #include <qstring.h>
    00015
    00040 class KWindowInfo : public QObject
    00041 {
    00042     Q_OBJECT
    00043
    00044 public:
    00048     KWindowInfo( QWidget *parent, const char *name=0 );
    00049
    00053     virtual ~KWindowInfo();
    00054
    00058     bool autoDelete() const { return autoDel; }
    00059
    00064     void setAutoDelete( bool enable ) { autoDel = enable; }
    00065
    00070     static void showMessage( QWidget *window, const QString &text, int timeout = -1 );
    00071
    00076     static void showMessage( QWidget *window, const QString &text,
    00077                              const QPixmap &pix, int timeout = -1 );
    00078
    00079 public slots:
    00083     void message( const QString &text );
    00084
    00088     void message( const QString &text, const QPixmap &pix );
    00089
    00093     void message( const QString &text, int timeout );
    00094
    00102     void message( const QString &text, const QPixmap &pix, int timeout );
    00103
    00107     void permanent( const QString &text );
    00108
    00112     void permanent( const QString &text, const QPixmap &pix );
    00113
    00114 protected:
    00118     virtual void display( const QString &text, const QPixmap &pix );
    00119
    00120 protected slots:
    00124     virtual void save();
    00125
    00130     virtual void restore();
    00131
    00132 private:
    00133     QWidget *win;
    00134     QPixmap oldIcon;
    00135     QPixmap oldMiniIcon;
    00136     QString oldText;
    00137     bool autoDel;
    00138
    00139     /* @internal */
    00140     class Private *d;
    00141 };
    00142
    00143 #endif // KWINDOWINFO_H
    00144

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:57:59 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001