statusbarextension.h
/* This file is part of the KDE project
Copyright (C) 2003 Daniel Molkentin <molkentin@kde.org>
Copyright (C) 2003 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KPARTS_STATUSBAREXTENSION_H
#define KPARTS_STATUSBAREXTENSION_H
#include <qwidget.h>
#include <qvaluelist.h>
#include <kdelibs_export.h>
class KStatusBar;
class KMainWindow;
class QEvent;
namespace KParts
{
class ReadOnlyPart;
// Defined in impl
class StatusBarItem;
class KPARTS_EXPORT StatusBarExtension : public QObject
{
Q_OBJECT
public:
StatusBarExtension( KParts::ReadOnlyPart *parent, const char *name=0L );
~StatusBarExtension();
void addStatusBarItem( QWidget * widget, int stretch, bool permanent );
void removeStatusBarItem( QWidget * widget );
KStatusBar* statusBar() const;
void setStatusBar( KStatusBar* status );
static StatusBarExtension *childObject( QObject *obj );
virtual bool eventFilter( QObject *watched, QEvent* ev );
private:
QValueList<StatusBarItem> m_statusBarItems; // Our statusbar items
mutable KStatusBar* m_statusBar;
// for future extensions
class StatusBarExtensionPrivate;
StatusBarExtensionPrivate *d;
};
}
#endif // KPARTS_STATUSBAREXTENSION_H
// 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::ReadOnlyPart
Base class for any "viewer" part.
Definition: part.h:338

KDE Home | KDE Accessibility Home | Description of Access Keys