Kexi API Documentation (2.0 alpha)

KexiFormEventAction::ActionData Class Reference

#include <kexiformeventhandler.h>

List of all members.


Detailed Description

A structure used in currentActionName().

Definition at line 61 of file kexiformeventhandler.h.

Public Member Functions

 ActionData ()
KexiPart::InfodecodeString (QString &actionType, QString &actionArg, bool &ok) const
bool isEmpty () const

Public Attributes

QString string
 action string with prefix, like "kaction:edit_copy" or "table:<tableName>"
QString option
 option used when name is "table/query/etc.


Constructor & Destructor Documentation

KexiFormEventAction::ActionData::ActionData  ) 
 

Definition at line 37 of file kexiformeventhandler.cpp.


Member Function Documentation

KexiPart::Info * KexiFormEventAction::ActionData::decodeString QString actionType,
QString actionArg,
bool &  ok
const
 

Decodes action string into action type/action argument parts. Action string has to be in a form of "actiontype:actionarg"

  • Action type is passed to actionType on success. Action type can be "kaction" or any of the part names (see KexiPart::Info::objectName()), e.g. "table", "query", etc.
  • Action argument can be an action name in case of "kaction" type or object name in case of action of type "table", "query", etc. ok is set to true on success and to false on failure. On failure no other values are passed.
    Returns:
    part info if action type is "table", "query", etc., or 0 for "kaction" type.

Definition at line 46 of file kexiformeventhandler.cpp.

References Kexi::partManager(), and string.

Referenced by KexiActionSelectionDialog::KexiActionSelectionDialog(), and KexiFormEventHandler::setMainWidgetForEventHandling().

bool KexiFormEventAction::ActionData::isEmpty  )  const
 

Returns:
true if the action is empty

Definition at line 41 of file kexiformeventhandler.cpp.

References string.

Referenced by KexiFormEventHandler::setMainWidgetForEventHandling().


Member Data Documentation

QString KexiFormEventAction::ActionData::option
 

option used when name is "table/query/etc.

:<objectName>" is set; can be set to "open", "design", "editText", etc.

See also:
ActionToExecuteListView::showActionsForMimeType()

Definition at line 82 of file kexiformeventhandler.h.

Referenced by KexiActionSelectionDialog::currentAction(), KexiActionSelectionDialog::KexiActionSelectionDialog(), KexiFormEventHandler::setMainWidgetForEventHandling(), and KexiFormPart::slotAssignAction().

QString KexiFormEventAction::ActionData::string
 

action string with prefix, like "kaction:edit_copy" or "table:<tableName>"

Definition at line 80 of file kexiformeventhandler.h.

Referenced by KexiActionSelectionDialog::currentAction(), decodeString(), isEmpty(), KexiFormEventHandler::setMainWidgetForEventHandling(), and KexiFormPart::slotAssignAction().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:01 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003