kdeui Library API Documentation

KToolBarRadioGroup Class Reference

KToolBarRadioGroup is class for group of radio butons in toolbar. Class for group of radio butons in toolbar. More...

#include <ktoolbarradiogroup.h>

Inheritance diagram for KToolBarRadioGroup:

Inheritance graph
[legend]
Collaboration diagram for KToolBarRadioGroup:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotToggled (int)
 Internal - nothing for you here.


Public Member Functions

 KToolBarRadioGroup (KToolBar *_parent, const char *_name=0)
 Constructor.

 ~KToolBarRadioGroup ()
 Destructor.

void addButton (int id)
 Adds button to group.

void removeButton (int id)
 Removes button from group, making it again toggle button (i.e.


Detailed Description

KToolBarRadioGroup is class for group of radio butons in toolbar. Class for group of radio butons in toolbar.

Take toggle buttons which you already inserted into toolbar, create KToolBarRadioGroup instance and add them here. All buttons will emit signals toggled (bool) (or you can use sitgnal toggled (int id) from toolbar). When one button is set down, all others are unset. All buttons emit signals - those who "go down" and those who "go up".

Author:
Sven Radej <radej@kde.org>

Definition at line 47 of file ktoolbarradiogroup.h.


Constructor & Destructor Documentation

KToolBarRadioGroup::KToolBarRadioGroup KToolBar _parent,
const char *  _name = 0
 

Constructor.

Parent must be KToolBar .

Definition at line 35 of file ktoolbarradiogroup.cpp.

References QObject::connect(), and slotToggled().

KToolBarRadioGroup::~KToolBarRadioGroup  ) 
 

Destructor.

Definition at line 43 of file ktoolbarradiogroup.cpp.


Member Function Documentation

void KToolBarRadioGroup::addButton int  id  ) 
 

Adds button to group.

Button cannot be unset by mouse clicks (you must press some other button tounset this one)

Definition at line 48 of file ktoolbarradiogroup.cpp.

References KToolBar::getButton(), QIntDict< KToolBarButton >::insert(), and KToolBarButton::setRadio().

void KToolBarRadioGroup::removeButton int  id  ) 
 

Removes button from group, making it again toggle button (i.e.

You can unset it with mouse).

Definition at line 55 of file ktoolbarradiogroup.cpp.

References QIntDict< KToolBarButton >::find(), and QIntDict< KToolBarButton >::remove().

void KToolBarRadioGroup::slotToggled int   )  [slot]
 

Internal - nothing for you here.

Definition at line 63 of file ktoolbarradiogroup.cpp.

References QIntDictIterator::current(), QIntDictIterator::currentKey(), and QIntDict< KToolBarButton >::find().

Referenced by KToolBarRadioGroup().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:05:14 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001