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

kparts

  • kparts
statusbarextension.h
1 /* This file is part of the KDE project
2  Copyright (C) 2003 Daniel Molkentin <molkentin@kde.org>
3  Copyright (C) 2003 David Faure <faure@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef KPARTS_STATUSBAREXTENSION_H
22 #define KPARTS_STATUSBAREXTENSION_H
23 
24 #include <tqwidget.h>
25 #include <tqvaluelist.h>
26 
27 #include <kdelibs_export.h>
28 
29 class KStatusBar;
30 class KMainWindow;
31 class TQEvent;
32 
33 namespace KParts
34 {
35 
36  class ReadOnlyPart;
37 
38  // Defined in impl
39  class StatusBarItem;
40 
41 
53  class KPARTS_EXPORT StatusBarExtension : public TQObject
54  {
55  Q_OBJECT
56 
57  public:
58  StatusBarExtension( KParts::ReadOnlyPart *parent, const char *name=0L );
59  ~StatusBarExtension();
60 
82  void addStatusBarItem( TQWidget * widget, int stretch, bool permanent );
83 
87  void removeStatusBarItem( TQWidget * widget );
88 
93  KStatusBar* statusBar() const;
94 
102  void setStatusBar( KStatusBar* status );
103 
108  static StatusBarExtension *childObject( TQObject *obj );
109 
111  virtual bool eventFilter( TQObject *watched, TQEvent* ev );
112 
113  private:
114 
115  TQValueList<StatusBarItem> m_statusBarItems; // Our statusbar items
116  mutable KStatusBar* m_statusBar;
117 
118  // for future extensions
119  class StatusBarExtensionPrivate;
120  StatusBarExtensionPrivate *d;
121  };
122 
123 }
124 #endif // KPARTS_STATUSBAREXTENSION_H
125 
126 // vim: ts=2 sw=2 et
KStatusBar
KMainWindow
KParts::StatusBarExtension
An extension for KParts that allows more sophisticated statusbar handling.
Definition: statusbarextension.h:53
KParts
Definition: browserextension.cpp:64
KParts::ReadOnlyPart
Base class for any "viewer" part.
Definition: part.h:338

kparts

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

kparts

Skip menu "kparts"
  • 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 kparts by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |