Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdeparts
tdeparts
tdeparts
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 TDEPARTS_STATUSBAREXTENSION_H
22
#define TDEPARTS_STATUSBAREXTENSION_H
23
24
#include <tqwidget.h>
25
#include <tqvaluelist.h>
26
27
#include <tdelibs_export.h>
28
29
class
KStatusBar
;
30
class
TDEMainWindow
;
31
class
TQEvent;
32
33
namespace
KParts
34
{
35
36
class
ReadOnlyPart;
37
38
// Defined in impl
39
class
StatusBarItem;
40
41
53
class
TDEPARTS_EXPORT
StatusBarExtension
:
public
TQObject
54
{
55
TQ_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
// TDEPARTS_STATUSBAREXTENSION_H
KParts::ReadOnlyPart
Base class for any "viewer" part.
Definition
part.h:339
KParts::StatusBarExtension
An extension for KParts that allows more sophisticated statusbar handling.
Definition
statusbarextension.h:54
KStatusBar
TDEMainWindow
tdeparts
Skip menu "tdeparts"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdeparts
Skip menu "tdeparts"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet