Frapper  1.0a
Public Slots | Public Member Functions | Private Attributes | List of all members
Frapper::WindowAction Class Reference

Class for actions that represent one of the application's windows. More...

#include <WindowAction.h>

Inheritance diagram for Frapper::WindowAction:
Inheritance graph
[legend]
Collaboration diagram for Frapper::WindowAction:
Collaboration graph
[legend]

Public Slots

void activateWindow ()
 Slot that is called when the action is triggered. Activates the window that the action represents.
 

Public Member Functions

 WindowAction (Window *window, int index)
 Constructor of the WindowAction class.
 
WindowgetWindow ()
 Returns the window that the action represents.
 
void setText (const QString &text)
 Sets the text of the action.
 

Private Attributes

Windowm_window
 The window that the action represents.
 
int m_index
 The index of the action in the window menu.
 

Detailed Description

Class for actions that represent one of the application's windows.

Inheritance Diagram
dot_inline_dotgraph_20.png
[legend]

Constructor & Destructor Documentation

Frapper::WindowAction::WindowAction ( Window window,
int  index 
)

Constructor of the WindowAction class.

Constructors and Destructors.

Parameters
windowThe window that the action represents.
indexThe index of the action in the window menu.

Constructor of the WindowAction class.

Parameters
windowThe window that the action represents.
indexThe index of the action in the window menu.

Member Function Documentation

Window * Frapper::WindowAction::getWindow ( )

Returns the window that the action represents.

Public Functions.

Returns
The window that the action represents.

Returns the window that the action represents.

Returns
The window that the action represents.
void Frapper::WindowAction::setText ( const QString &  text)

Sets the text of the action.

Parameters
textThe new text for the action.
void Frapper::WindowAction::activateWindow ( )
slot

Slot that is called when the action is triggered. Activates the window that the action represents.

Public Slots.

Member Data Documentation

Window* Frapper::WindowAction::m_window
private

The window that the action represents.

int Frapper::WindowAction::m_index
private

The index of the action in the window menu.


The documentation for this class was generated from the following files: