.TH "KToggleToolBarAction" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdeui Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KToggleToolBarAction \- An action that takes care of everything associated with showing or hiding a toolbar by a menu action.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kactionclasses.h>\fP
.PP
Inherits \fBKToggleAction\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBsetChecked\fP (bool)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKToggleToolBarAction\fP (const char *toolBarName, const \fBQString\fP &text, \fBKActionCollection\fP *\fBparent\fP, const char *\fBname\fP)"
.br
.ti -1c
.RI "\fBKToggleToolBarAction\fP (\fBKToolBar\fP *toolBar, const \fBQString\fP &text, \fBKActionCollection\fP *\fBparent\fP, const char *\fBname\fP)"
.br
.ti -1c
.RI "virtual int \fBplug\fP (\fBQWidget\fP *widget, int index=-1)"
.br
.ti -1c
.RI "\fBKToolBar\fP * \fBtoolBar\fP ()"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
An action that takes care of everything associated with showing or hiding a toolbar by a menu action. 

It will show or hide the toolbar with the given name when activated, and check or uncheck itself if the toolbar is manually shown or hidden.
.PP
If you need to perfom some additional action when the toolbar is shown or hidden, connect to the toggled(bool) signal. It will be emitted after the toolbar's visibility has changed, whenever it changes. 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1172 of file kactionclasses.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KToggleToolBarAction::KToggleToolBarAction (const char * toolBarName, const \fBQString\fP & text, \fBKActionCollection\fP * parent, const char * name)"
.PP
Create a KToggleToolbarAction that manages the toolbar named toolBarName. 
.PP
This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name. 
.PP
Definition at line 1882 of file kactionclasses.cpp.
.SH "Member Function Documentation"
.PP 
.SS "int KToggleToolBarAction::plug (\fBQWidget\fP * widget, int index = \fC-1\fP)\fC [virtual]\fP"
.PP
'Plug' or insert this action into a given widget. 
.PP
This will typically be a menu or a toolbar. From this point on, you will never need to directly manipulate the item in the menu or toolbar. You do all enabling/disabling/manipulation directly with your \fBKToggleAction\fP object.
.PP
\fBParameters:\fP
.RS 4
\fIwidget\fP The GUI element to display this action. 
.br
\fIindex\fP The index of the item. 
.RE
.PP

.PP
Reimplemented from \fBKToggleAction\fP.
.PP
Definition at line 1901 of file kactionclasses.cpp.
.PP
References QObject::connect(), QWidget::isDialog(), QWidget::parentWidget(), KToggleAction::plug(), setChecked(), KAction::setEnabled(), and KMainWindow::toolBar().
.SS "void KToggleToolBarAction::setChecked (bool)\fC [virtual, slot]\fP"
.PP
Sets the state of the action. 
.PP
Reimplemented from \fBKToggleAction\fP.
.PP
Definition at line 1931 of file kactionclasses.cpp.
.PP
References KToggleAction::setChecked().
.PP
Referenced by plug().

.SH "Author"
.PP 
Generated automatically by Doxygen for kdeui Library from the source code.
