.TH "KToggleToolBarAction" 3 "28 Jan 2004" "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 <kaction.h>\fP
.PP
Inherits \fBKToggleAction\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBsetChecked\fP (bool)"
.br
.RI "\fISets the state of the action. \fP"
.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
.RI "\fICreate a KToggleToolbarAction that manages the toolbar named toolBarName. \fP"
.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 *, int index=-1)"
.br
.RI "\fI'Plug' or insert this action into a given widget. \fP"
.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 1659 of file kaction.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. This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name. Definition at line 2848 of file kaction.cpp.
.PP
References KStdAccel::name().
.SH "Member Function Documentation"
.PP 
.SS "int KToggleToolBarAction::plug (\fBQWidget\fP *, int index = -1)\fC [virtual]\fP"
.PP
'Plug' or insert this action into a given widget. 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
Reimplemented from \fBKToggleAction\fP.
.PP
Definition at line 2867 of file kaction.cpp.
.PP
References QObject::connect(), QWidget::isDialog(), QObject::name(), 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. Reimplemented from \fBKToggleAction\fP.
.PP
Definition at line 2897 of file kaction.cpp.
.PP
References KToggleAction::setChecked().
.PP
Referenced by plug().

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