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

tdemdi

Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
KMdiTaskBar Class Reference

#include <tdemditaskbar.h>

Inherits TDEToolBar.

Public Slots

void setActiveButton (KMdiChildView *win_ptr)
 

Public Member Functions

 KMdiTaskBar (KMdiMainFrm *parent, TQMainWindow::ToolBarDock dock)
 
 ~KMdiTaskBar ()
 
KMdiTaskBarButton * addWinButton (KMdiChildView *win_ptr)
 
void removeWinButton (KMdiChildView *win_ptr, bool haveToLayoutTaskBar=true)
 
KMdiTaskBarButton * getNextWindowButton (bool bRight, KMdiChildView *win_ptr)
 
KMdiTaskBarButton * getButton (KMdiChildView *win_ptr)
 
void switchOn (bool bOn)
 
bool isSwitchedOn () const
 

Protected Slots

void layoutTaskBar (int taskBarWidth=0)
 

Protected Member Functions

void resizeEvent (TQResizeEvent *)
 

Protected Attributes

TQPtrList< KMdiTaskBarButton > * m_pButtonList
 
KMdiMainFrm * m_pFrm
 
KMdiChildView * m_pCurrentFocusedWindow
 
TQLabel * m_pStretchSpace
 
bool m_layoutIsPending
 
bool m_bSwitchedOn
 

Detailed Description

Internal class.

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

Definition at line 129 of file tdemditaskbar.h.

Constructor & Destructor Documentation

◆ KMdiTaskBar()

KMdiTaskBar::KMdiTaskBar ( KMdiMainFrm *  parent,
TQMainWindow::ToolBarDock  dock 
)

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

Definition at line 147 of file tdemditaskbar.cpp.

◆ ~KMdiTaskBar()

KMdiTaskBar::~KMdiTaskBar ( )

Destructor (deletes the taskbar button list)

Definition at line 163 of file tdemditaskbar.cpp.

Member Function Documentation

◆ addWinButton()

KMdiTaskBarButton * KMdiTaskBar::addWinButton ( KMdiChildView *  win_ptr)

Add a new KMdiTaskBarButton .

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.

Definition at line 168 of file tdemditaskbar.cpp.

◆ getButton()

KMdiTaskBarButton * KMdiTaskBar::getButton ( KMdiChildView *  win_ptr)

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

Definition at line 242 of file tdemditaskbar.cpp.

◆ getNextWindowButton()

KMdiTaskBarButton * KMdiTaskBar::getNextWindowButton ( bool  bRight,
KMdiChildView *  win_ptr 
)

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.

Definition at line 252 of file tdemditaskbar.cpp.

◆ isSwitchedOn()

bool KMdiTaskBar::isSwitchedOn ( ) const
inline
Returns
whether switched on or off.

Definition at line 168 of file tdemditaskbar.h.

◆ layoutTaskBar

void KMdiTaskBar::layoutTaskBar ( int  taskBarWidth = 0)
protectedslot

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.

Definition at line 310 of file tdemditaskbar.cpp.

◆ removeWinButton()

void KMdiTaskBar::removeWinButton ( KMdiChildView *  win_ptr,
bool  haveToLayoutTaskBar = true 
)

Removes a KMdiTaskBarButton 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.

Definition at line 202 of file tdemditaskbar.cpp.

◆ resizeEvent()

void KMdiTaskBar::resizeEvent ( TQResizeEvent *  rse)
protected

Reimplemented from its base class to call layoutTaskBar, additionally.

Definition at line 382 of file tdemditaskbar.cpp.

◆ setActiveButton

void KMdiTaskBar::setActiveButton ( KMdiChildView *  win_ptr)
slot

Pushes the desired taskbar button down (switch on), the old one is released (switched off).

Actually it's a radiobutton group behavior.

Definition at line 289 of file tdemditaskbar.cpp.

◆ switchOn()

void KMdiTaskBar::switchOn ( bool  bOn)

Switch it on or off.

Definition at line 222 of file tdemditaskbar.cpp.

Member Data Documentation

◆ m_bSwitchedOn

bool KMdiTaskBar::m_bSwitchedOn
protected

Definition at line 211 of file tdemditaskbar.h.

◆ m_layoutIsPending

bool KMdiTaskBar::m_layoutIsPending
protected

Definition at line 210 of file tdemditaskbar.h.

◆ m_pButtonList

TQPtrList<KMdiTaskBarButton>* KMdiTaskBar::m_pButtonList
protected

A list of taskbar buttons.

Note: Each button stands for one MDI view (toolviews doesn't have got a taskbar button).

Definition at line 197 of file tdemditaskbar.h.

◆ m_pCurrentFocusedWindow

KMdiChildView* KMdiTaskBar::m_pCurrentFocusedWindow
protected

The MDI view belonging to the currently pressed taskbar button.

Definition at line 205 of file tdemditaskbar.h.

◆ m_pFrm

KMdiMainFrm* KMdiTaskBar::m_pFrm
protected

The belonging MDI mainframe (parent widget of this)

Definition at line 201 of file tdemditaskbar.h.

◆ m_pStretchSpace

TQLabel* KMdiTaskBar::m_pStretchSpace
protected

A stretchable widget used as 'space' at the end of a half filled taskbar.

Definition at line 209 of file tdemditaskbar.h.


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

tdemdi

Skip menu "tdemdi"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdemdi

Skip menu "tdemdi"
  • 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 tdemdi by doxygen 1.9.4
This website is maintained by Timothy Pearson.