• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KParts

statusbarextension.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2003 Daniel Molkentin <molkentin@kde.org>
00003    Copyright (C) 2003 David Faure <faure@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #ifndef KPARTS_STATUSBAREXTENSION_H
00022 #define KPARTS_STATUSBAREXTENSION_H
00023 
00024 #include <QtGui/QWidget>
00025 
00026 #include <kparts/kparts_export.h>
00027 #include <QtCore/QList>
00028 
00029 class KStatusBar;
00030 class KMainWindow;
00031 class QEvent;
00032 
00033 namespace KParts
00034 {
00035 
00036   class ReadOnlyPart;
00037 
00038   // Defined in impl
00039   class StatusBarItem;
00040   class StatusBarExtensionPrivate;
00041 
00042 
00052   class KPARTS_EXPORT StatusBarExtension : public QObject
00053   {
00054     Q_OBJECT
00055 
00056     public:
00057       StatusBarExtension( KParts::ReadOnlyPart *parent );
00058       ~StatusBarExtension();
00059 
00081       void addStatusBarItem( QWidget * widget, int stretch, bool permanent );
00082 
00086       void removeStatusBarItem( QWidget * widget );
00087 
00092       KStatusBar* statusBar() const;
00093 
00101       void setStatusBar( KStatusBar* status );
00102 
00107       static StatusBarExtension *childObject( QObject *obj );
00108 
00110       virtual bool eventFilter( QObject *watched, QEvent* ev );
00111 
00112     private:
00113      // for future extensions
00114      friend class StatusBarExtensionPrivate;
00115      StatusBarExtensionPrivate* const d;
00116   };
00117 
00118 }
00119 #endif // KPARTS_STATUSBAREXTENSION_H
00120 
00121 // vim: ts=2 sw=2 et

KParts

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal