Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ToggleViewAction Class Reference

A KAction that hides and shows a widget. More...

#include <actions.h>

Inheritance diagram for ToggleViewAction::

List of all members.

Public Slots

void setView (QWidget *w)
void update ()
void toggleView ()
void showView ()
void hideView ()

Public Methods

 ToggleViewAction (const QString &text, const QString &icon, const KShortcut &cut, QObject *parent, const char *name)
 ~ToggleViewAction ()

Protected Slots

void slotActivated ()

Detailed Description

A KAction that hides and shows a widget.

Author:
Richard Moore, rich@kde.org
Version:
Id:
actions.h,v 1.10 2002/09/21 23:29:47 rich Exp


Constructor & Destructor Documentation

ToggleViewAction::ToggleViewAction const QString & text,
const QString & icon,
const KShortcut & cut,
QObject * parent,
const char * name
 

Creates a ToggleViewAction.


Member Function Documentation

void ToggleViewAction::setView QWidget * w [slot]
 

Specifies the widget to be hidden and shown.

void ToggleViewAction::update [slot]
 

Updates the state of the action to reflect the visibility of the window.

void ToggleViewAction::toggleView [slot]
 

Toggles the visibility of the view.

void ToggleViewAction::showView [slot]
 

Shows the view (if it was hidden).

void ToggleViewAction::hideView [slot]
 

Hides the view (if it was visible).


The documentation for this class was generated from the following file:
Generated at Thu Jan 30 02:56:03 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001