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

tdeui

TDEToggleToolBarAction Class Reference

An action that takes care of everything associated with showing or hiding a toolbar by a menu action. More...

#include <tdeactionclasses.h>

Inheritance diagram for TDEToggleToolBarAction:
TDEToggleAction TDEAction TQObject

List of all members.

Public Slots

virtual void setChecked (bool)

Public Member Functions

 TDEToggleToolBarAction (const char *toolBarName, const TQString &text, TDEActionCollection *parent, const char *name)
 TDEToggleToolBarAction (TDEToolBar *toolBar, const TQString &text, TDEActionCollection *parent, const char *name)
virtual int plug (TQWidget *widget, int index=-1)
TDEToolBar * toolBar ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

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.

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.

Since:
3.1

Definition at line 1217 of file tdeactionclasses.h.


Constructor & Destructor Documentation

TDEToggleToolBarAction::TDEToggleToolBarAction ( const char *  toolBarName,
const TQString &  text,
TDEActionCollection *  parent,
const char *  name 
)

Create a TDEToggleToolbarAction 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 2000 of file tdeactionclasses.cpp.


Member Function Documentation

int TDEToggleToolBarAction::plug ( TQWidget *  widget,
int  index = -1 
) [virtual]

"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 TDEToggleAction object.

Parameters:
widget The GUI element to display this action.
index The index of the item.

Reimplemented from TDEToggleAction.

Definition at line 2019 of file tdeactionclasses.cpp.

void TDEToggleToolBarAction::setChecked ( bool  c  )  [virtual, slot]

Sets the state of the action.

Reimplemented from TDEToggleAction.

Definition at line 2049 of file tdeactionclasses.cpp.


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

tdeui

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

tdeui

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