• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.8.3 API Reference
  • KDE Home
  • 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 
00085       void addStatusBarItem( QWidget * widget, int stretch, bool permanent );
00086 
00090       void removeStatusBarItem( QWidget * widget );
00091 
00096       KStatusBar* statusBar() const;
00097 
00105       void setStatusBar( KStatusBar* status );
00106 
00111       static StatusBarExtension *childObject( QObject *obj );
00112 
00114       virtual bool eventFilter( QObject *watched, QEvent* ev );
00115 
00116     private:
00117      // for future extensions
00118      friend class StatusBarExtensionPrivate;
00119      StatusBarExtensionPrivate* const d;
00120   };
00121 
00122 }
00123 #endif // KPARTS_STATUSBAREXTENSION_H
00124 
00125 // vim: ts=2 sw=2 et
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:57:03 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KParts

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

kdelibs-4.8.3 API Reference

Skip menu "kdelibs-4.8.3 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal