#include <GElementActionWidget.h>
Inheritance diagram for GCE::GElementActionWidget:


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::GActionInterface * | ActionInterface |
| GCS::GElementID | Element |
| QLabel * | ElementLabel |
| QComboBox * | Actions |
| QTextEdit * | Parameters |
| QTextEdit * | ActionDescription |
| QPushButton * | PerformAction |
| GCE::GElementActionWidget::GElementActionWidget | ( | GWE::GActionInterface * | interface, | |
| QWidget * | parent = 0 | |||
| ) |
Constructor
| GCE::GElementActionWidget::~GElementActionWidget | ( | ) | [virtual] |
Destructor
| 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.
QTextEdit* GCE::GElementActionWidget::ActionDescription [protected] |
Description of currently selected action.
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.
1.4.7