KDevelop API Documentation

ViewMenuAction Class Reference

Mereley a KToggleAction whith some additional data to store the window. More...

#include <mainwindow.h>

Inheritance diagram for ViewMenuAction:

KToggleAction KAction QObject List of all members.

Signals

void activated (const ViewMenuActionPrivateData &)

Public Member Functions

 ViewMenuAction (ViewMenuActionPrivateData Data, const QString &Name)
 ViewMenuAction (ViewMenuActionPrivateData Data, const QString &text, const QString &pix, const KShortcut &cut, const QObject *receiver, const char *slot, KActionCollection *parent, const char *name)
 Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user.

const ViewMenuActionPrivateDatagetData (void)

Protected Slots

virtual void slotActivated ()

Private Attributes

ViewMenuActionPrivateData WindowData
 My data to identify the window to hide or show.


Detailed Description

Mereley a KToggleAction whith some additional data to store the window.

Definition at line 227 of file mainwindow.h.


Constructor & Destructor Documentation

ViewMenuAction::ViewMenuAction ViewMenuActionPrivateData  Data,
const QString Name
 

Definition at line 58 of file mainwindow.cpp.

References ViewMenuAction().

Referenced by ViewMenuAction().

ViewMenuAction::ViewMenuAction ViewMenuActionPrivateData  Data,
const QString text,
const QString pix,
const KShortcut cut,
const QObject receiver,
const char *  slot,
KActionCollection parent,
const char *  name
 

Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user.

If you do not want or have a keyboard shortcut, set the cut param to 0.

This is the other common KAction used. Use it when you do have a corresponding icon.

Parameters:
Data The data to be used when activated.
text The text that will be displayed.
pix The icon to display.
cut The corresponding keyboard shortcut.
receiver The SLOT's parent.
slot The SLOT to invoke to execute this action.
parent This action's parent.
name An internal name for this action.

Definition at line 65 of file mainwindow.cpp.

References KAction::activated(), text(), and ViewMenuAction().


Member Function Documentation

void ViewMenuAction::activated const ViewMenuActionPrivateData  )  [signal]
 

const ViewMenuActionPrivateData* ViewMenuAction::getData void   )  [inline]
 

Definition at line 258 of file mainwindow.h.

References WindowData.

void ViewMenuAction::slotActivated  )  [protected, virtual, slot]
 

Reimplemented from KToggleAction.

Definition at line 76 of file mainwindow.cpp.

References KAction::activated(), KToggleAction::slotActivated(), and WindowData.


Member Data Documentation

ViewMenuActionPrivateData ViewMenuAction::WindowData [private]
 

My data to identify the window to hide or show.

Definition at line 268 of file mainwindow.h.

Referenced by getData(), and slotActivated().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:31 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003