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

tdeui

Public Member Functions | Protected Slots | Protected Member Functions
KWidgetAction Class Reference

#include <tdeactionclasses.h>

Inheritance diagram for KWidgetAction:
TDEAction TQObject TDEToolBarLabelAction

List of all members.

Public Member Functions

 KWidgetAction (TQWidget *widget, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name)
TQWidget * widget ()
void setAutoSized (bool)
virtual int plug (TQWidget *widget, int index=-1)
virtual void unplug (TQWidget *w)

Protected Slots

void slotToolbarDestroyed ()

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Detailed Description

An action that automatically embeds a widget into a toolbar.

Definition at line 1309 of file tdeactionclasses.h.


Constructor & Destructor Documentation

KWidgetAction::KWidgetAction ( TQWidget *  widget,
const TQString &  text,
const TDEShortcut &  cut,
const TQObject *  receiver,
const char *  slot,
TDEActionCollection *  parent,
const char *  name 
)

Create an action that will embed widget into a toolbar when plugged.

This action may only be plugged into a toolbar.

Definition at line 2117 of file tdeactionclasses.cpp.


Member Function Documentation

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

Plug the action.

The widget passed to the constructor will be reparented to w, which must inherit TDEToolBar.

Reimplemented from TDEAction.

Definition at line 2151 of file tdeactionclasses.cpp.

void KWidgetAction::unplug ( TQWidget *  w) [virtual]

Unplug the action.

Ensures that the action is not destroyed. It will be hidden and reparented to 0L instead.

Reimplemented from TDEAction.

Definition at line 2182 of file tdeactionclasses.cpp.

TQWidget* KWidgetAction::widget ( ) [inline]

Returns the widget associated with this action.

Definition at line 1328 of file tdeactionclasses.h.


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.7.6.1
This website is maintained by Timothy Pearson.