GCE::GElementActionWidget Class Reference

GUI for the actions of an element. More...

#include <GElementActionWidget.h>

Inheritance diagram for GCE::GElementActionWidget:

Inheritance graph
[legend]
Collaboration diagram for GCE::GElementActionWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void setElement (const GCS::GElementID &element)
void performAction ()
void performAction (QString action, QStringList params)
void performAction (const GCS::GElementID &element, QString action, QStringList params)

Signals

void actionPerformed (const QString &action)

Public Member Functions

 GElementActionWidget (GWE::GActionInterface *interface, QWidget *parent=0)
virtual ~GElementActionWidget ()

Protected Slots

void selectedActionChanged (const QString &action)

Protected Attributes

GWE::GActionInterfaceActionInterface
GCS::GElementID Element
QLabel * ElementLabel
QComboBox * Actions
QTextEdit * Parameters
QTextEdit * ActionDescription
QPushButton * PerformAction

Detailed Description

GUI for the actions of an element.

Author:
Raphael Langerhorst
Agents can provide actions for an element. These actions are made available to the user through this interface.


Constructor & Destructor Documentation

GCE::GElementActionWidget::GElementActionWidget ( GWE::GActionInterface interface,
QWidget *  parent = 0 
)

Constructor

GCE::GElementActionWidget::~GElementActionWidget (  )  [virtual]

Destructor


Member Function Documentation

void GCE::GElementActionWidget::actionPerformed ( const QString &  action  )  [signal]

Emitted when an action has been performed. This has originally been introduced to move focus from action widget to the GOpenGLFrame.

void GCE::GElementActionWidget::performAction ( const GCS::GElementID element,
QString  action,
QStringList  params 
) [slot]

Performs given action for given element.

void GCE::GElementActionWidget::performAction ( QString  action,
QStringList  params 
) [slot]

Performs given action with given parameters for the element set in this interface.

void GCE::GElementActionWidget::performAction (  )  [slot]

Actually performs the action currently selected with all arguments set in the Aguments text field.

void GCE::GElementActionWidget::selectedActionChanged ( const QString &  action  )  [protected, slot]

Updates the action description text for selected action.

void GCE::GElementActionWidget::setElement ( const GCS::GElementID element  )  [slot]

Sets the element to use for this action interface.

See also:
Element


Member Data Documentation

QTextEdit* GCE::GElementActionWidget::ActionDescription [protected]

Description of currently selected action.

GWE::GActionInterface* GCE::GElementActionWidget::ActionInterface [protected]

The interface to the G World Engine for actually performing actions.

QComboBox* GCE::GElementActionWidget::Actions [protected]

The combo box contains all available actions for the element in use. One of the actions can be chosen at a time.

GCS::GElementID GCE::GElementActionWidget::Element [protected]

The element in use. The action interface will display all available actions of this element. Actions that are taken in this interface are sent to the element which actually performs the requested action by means of the respective agent that makes the action available.

QLabel* GCE::GElementActionWidget::ElementLabel [protected]

The label that displays the currently set element ID.

QTextEdit* GCE::GElementActionWidget::Parameters [protected]

List of arguments for the selected action. One parameter per line.

QPushButton* GCE::GElementActionWidget::PerformAction [protected]

Button for actually performing the action.


The documentation for this class was generated from the following files:
Generated on Thu Nov 16 07:49:29 2006 for G System by  doxygen 1.4.7