• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
kwindowinfo.h
1 // -*- c++ -*-
2 
3 /*
4  * copyright : (C) 2001-2002 by Richard Moore
5  * License : This file is released under the terms of the LGPL, version 2.
6  * email : rich@kde.org
7  */
8 
9 #ifndef KWINDOWINFO_H
10 #define KWINDOWINFO_H
11 
12 #include <tqobject.h>
13 #include <tqpixmap.h>
14 #include <tqstring.h>
15 
16 #include <kdelibs_export.h>
17 
41 class KDEUI_EXPORT KWindowInfo : public TQObject
42 {
43  Q_OBJECT
44 
45 public:
49  KWindowInfo( TQWidget *parent, const char *name=0 );
50 
54  virtual ~KWindowInfo();
55 
59  bool autoDelete() const { return autoDel; }
60 
65  void setAutoDelete( bool enable ) { autoDel = enable; }
66 
71  static void showMessage( TQWidget *window, const TQString &text, int timeout = -1 );
72 
77  static void showMessage( TQWidget *window, const TQString &text,
78  const TQPixmap &pix, int timeout = -1 );
79 
80 public slots:
84  void message( const TQString &text );
85 
89  void message( const TQString &text, const TQPixmap &pix );
90 
94  void message( const TQString &text, int timeout );
95 
103  void message( const TQString &text, const TQPixmap &pix, int timeout );
104 
108  void permanent( const TQString &text );
109 
113  void permanent( const TQString &text, const TQPixmap &pix );
114 
115 protected:
119  virtual void display( const TQString &text, const TQPixmap &pix );
120 
121 protected slots:
125  virtual void save();
126 
131  virtual void restore();
132 
133 private:
134  TQWidget *win;
135  TQPixmap oldIcon;
136  TQPixmap oldMiniIcon;
137  TQString oldText;
138  bool autoDel;
139 
140  /* @internal */
141  class Private *d;
142 };
143 
144 #endif // KWINDOWINFO_H
145 
KWindowInfo
Displays messages in the window icon and title.
Definition: kwindowinfo.h:42
KWindowInfo::autoDelete
bool autoDelete() const
Returns true iff the object should delete itself when it resets.
Definition: kwindowinfo.h:59
KWindowInfo::setAutoDelete
void setAutoDelete(bool enable)
Set to true if you want the object to delete itself when the message timeout occurs.
Definition: kwindowinfo.h:65

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |