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

tdeparts

  • KParts
  • StatusBarExtension
Public Member Functions | Static Public Member Functions | List of all members
KParts::StatusBarExtension Class Reference

#include <statusbarextension.h>

Inherits TQObject.

Public Member Functions

 StatusBarExtension (KParts::ReadOnlyPart *parent, const char *name=0L)
 
void addStatusBarItem (TQWidget *widget, int stretch, bool permanent)
 
void removeStatusBarItem (TQWidget *widget)
 
KStatusBar * statusBar () const
 
void setStatusBar (KStatusBar *status)
 
virtual bool eventFilter (TQObject *watched, TQEvent *ev)
 

Static Public Member Functions

static StatusBarExtension * childObject (TQObject *obj)
 

Detailed Description

An extension for KParts that allows more sophisticated statusbar handling.

Every part can use this class to customize the statusbar as long as it is active. Add items via addStatusBarItem() and remove an item with removeStatusBarItem().

IMPORTANT: do NOT add any items immediately after constructing the extension. Give the application time to set the statusbar in the extension if necessary.

Since
3.2

Definition at line 53 of file statusbarextension.h.

Constructor & Destructor Documentation

◆ StatusBarExtension()

StatusBarExtension::StatusBarExtension ( KParts::ReadOnlyPart *  parent,
const char *  name = 0L 
)

Definition at line 78 of file statusbarextension.cpp.

◆ ~StatusBarExtension()

StatusBarExtension::~StatusBarExtension ( )

Definition at line 84 of file statusbarextension.cpp.

Member Function Documentation

◆ addStatusBarItem()

void StatusBarExtension::addStatusBarItem ( TQWidget *  widget,
int  stretch,
bool  permanent 
)

This adds a widget to the statusbar for this part.

If you use this method instead of using statusBar() directly, this extension will take care of removing the items when the parts GUI is deactivated and will re-add them when it is reactivated. The parameters are the same as TQStatusBar::addWidget().

Note that you can't use KStatusBar methods (inserting text items by id) but you can create a KStatusBarLabel with a dummy id instead, and use it directly in order to get the same look and feel.

Parameters
widgetthe widget to add
stretchthe stretch factor. 0 for a minimum size.
permanentpassed to TQStatusBar::addWidget as the "permanent" bool. Note that the item isn't really permanent though, it goes away when the part is unactivated. This simply controls where temporary messages hide the widget, and whether it's added to the left or to the right side.

IMPORTANT: do NOT add any items immediately after constructing the extension. Give the application time to set the statusbar in the extension if necessary.

Definition at line 150 of file statusbarextension.cpp.

◆ childObject()

StatusBarExtension * StatusBarExtension::childObject ( TQObject *  obj)
static

Queries obj for a child object which inherits from this BrowserExtension class.

Convenience method.

Definition at line 89 of file statusbarextension.cpp.

◆ eventFilter()

bool StatusBarExtension::eventFilter ( TQObject *  watched,
TQEvent *  ev 
)
virtual

Definition at line 105 of file statusbarextension.cpp.

◆ removeStatusBarItem()

void StatusBarExtension::removeStatusBarItem ( TQWidget *  widget)

Remove a widget from the statusbar for this part.

Definition at line 160 of file statusbarextension.cpp.

◆ setStatusBar()

void StatusBarExtension::setStatusBar ( KStatusBar *  status)

This allows the hosting application to set a particular KStatusBar for this part.

If it doesn't do this, the statusbar used will be the one of the TDEMainWindow in which the part is embedded. Konqueror uses this to assign a view-statusbar to the part. The part should never call this method!

Definition at line 145 of file statusbarextension.cpp.

◆ statusBar()

KStatusBar * StatusBarExtension::statusBar ( ) const
Returns
the statusbar of the TDEMainWindow in which this part is currently embedded. WARNING: this could return 0L

Definition at line 134 of file statusbarextension.cpp.


The documentation for this class was generated from the following files:
  • statusbarextension.h
  • statusbarextension.cpp

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
Generated for tdeparts by doxygen 1.9.4
This website is maintained by Timothy Pearson.