Public Member Functions

Koo::Screen::Action::Action Class Reference

The Action class is a QAction that can execute a model action. More...

List of all members.

Public Member Functions

def __init__
 Creates a new Action instance given a parent.
def setData
 Sets the data associated with the action.
def data
 Returns the data associated with the action.
def setType
 Sets the type of action (such as 'print' or 'plugin').
def type
 Returns the type of action (such as 'print' or 'plugin').
def setModel
 Sets the model the action refers to.
def model
 Returns the model the action refers to.
def execute
 Executes the action (depending on its type), given the current id and the selected ids.

Detailed Description

The Action class is a QAction that can execute a model action.

Such as relate, print or wizard (on the server) and plugins (on the client).

Definition at line 37 of file Action.py.


Member Function Documentation

def Koo::Screen::Action::Action::__init__ (   self,
  parent 
)

Creates a new Action instance given a parent.

Definition at line 39 of file Action.py.

def Koo::Screen::Action::Action::data (   self  ) 

Returns the data associated with the action.

Definition at line 50 of file Action.py.

def Koo::Screen::Action::Action::execute (   self,
  currentId,
  selectedIds,
  context 
)

Executes the action (depending on its type), given the current id and the selected ids.

Definition at line 71 of file Action.py.

def Koo::Screen::Action::Action::setData (   self,
  data 
)

Sets the data associated with the action.

Definition at line 46 of file Action.py.


The documentation for this class was generated from the following file:
Generated by Doxygen