class QextMdiTaskBar

# class QextMdiTaskBar | Internal class. More...
Definition | `#include <include/qextmditaskbar.h>`
Inherits | KToolBar [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- QextMdiTaskBar (QextMdiMainFrm *parent,QMainWindow::ToolBarDock dock)
- ~QextMdiTaskBar ()
- QextMdiTaskBarButton * addWinButton (QextMdiChildView *win_ptr)
- void removeWinButton (QextMdiChildView *win_ptr, bool haveToLayoutTaskBar = TRUE)
- QextMdiTaskBarButton * getNextWindowButton (bool bRight,QextMdiChildView *win_ptr)
- QextMdiTaskBarButton * getButton (QextMdiChildView *win_ptr)
- void switchOn (bool bOn)
- bool isSwitchedOn ()

#### Public Slots

- void setActiveButton (QextMdiChildView *win_ptr)

#### Protected Methods

- void resizeEvent ( QResizeEvent*)

#### Protected Slots

- void layoutTaskBar ( int taskBarWidth = 0)

#### Protected Members

- QList* m_pButtonList
- QextMdiMainFrm* m_pFrm
- QextMdiChildView* m_pCurrentFocusedWindow
- QLabel* m_pStretchSpace
- bool m_layoutIsPending
- bool m_bSwitchedOn

## Detailed Description

It's a special kind of QToolBar that acts as taskbar for child views. QextMdiTaskBarButtons can be added or removed dynamically.
The button sizes are adjusted dynamically, as well.

QextMdiTaskBar (QextMdiMainFrm *parent,QMainWindow::ToolBarDock dock) | ### QextMdiTaskBar

Constructor (NoFocus, minimum width = 1, an internal QList of taskbar buttons (autodelete))

~QextMdiTaskBar () | ### ~QextMdiTaskBar

Destructor (deletes the taskbar button list)

QextMdiTaskBarButton * addWinButton (QextMdiChildView *win_ptr) | ### addWinButton

Add a new QextMdiTaskBarButton . The width doesn't change. If there's not enough space, all taskbar buttons will be resized to a new smaller size. Probably button texts must be abbreviated now.

void removeWinButton (QextMdiChildView *win_ptr, bool haveToLayoutTaskBar = TRUE) | ### removeWinButton

Removes a QextMdiTaskBarButton and deletes it. If the rest of the buttons are smaller than they usually are, all those buttons will be resized in a way that the new free size is used as well.

QextMdiTaskBarButton * getNextWindowButton (bool bRight,QextMdiChildView *win_ptr) | ### getNextWindowButton

Returns the neighbor taskbar button of the taskbar button of the MDI view given by parameter bRight specifies the side, of course left is used if bRight is false.

QextMdiTaskBarButton * getButton (QextMdiChildView *win_ptr) | ### getButton

Get the button belonging to the MDI view given as parameter.

void switchOn (bool bOn) | ### switchOn

Switch it on or off.

bool isSwitchedOn () | ### isSwitchedOn

Returns: whether switched on or off.

void resizeEvent ( QResizeEvent*) | ### resizeEvent

[protected]

Reimplemented from its base class to call layoutTaskBar, additionally.

void layoutTaskBar ( int taskBarWidth = 0) | ### layoutTaskBar

[protected slots slot]

Checks if all buttons fits into this. If not, it recalculates all button widths in a way that all buttons fits into the taskbar and have got equal width. The text of the buttons will be abbreviated when nessecary, all buttons get a fixed width and show() is called for each one. If one drags the taskbar to a vertical orientation, the button width is set to 80 pixel.

void setActiveButton (QextMdiChildView *win_ptr) | ### setActiveButton

[slot]

Pushes the desired taskbar button down (switch on), the old one is released (switched off). Actually it's a radiobutton group behaviour.

QList<QextMdiTaskBarButton>* m_pButtonList | ### m_pButtonList

[protected]

QextMdiMainFrm* m_pFrm | ### m_pFrm

[protected]

QextMdiChildView* m_pCurrentFocusedWindow | ### m_pCurrentFocusedWindow

[protected]

QLabel* m_pStretchSpace | ### m_pStretchSpace

[protected]

bool m_layoutIsPending | ### m_layoutIsPending

[protected]

bool m_bSwitchedOn | ### m_bSwitchedOn

[protected]

Generated by: falk on pc9 on Fri Nov 30 14:44:26 2001, using kdoc 2.0a53.