This is an abstract class used to register actions into st pluging. More...
#include <AbstractAction.h>
Signals | |
| void | triggered (te::qt::af::evt::Event *e) |
Public Member Functions | |
| AbstractAction (QMenu *menu) | |
| Constructor. More... | |
| virtual | ~AbstractAction () |
| Destructor. More... | |
Protected Slots | |
| virtual void | onActionActivated (bool checked)=0 |
| Slot function used when a action was selected. More... | |
Protected Member Functions | |
| void | createAction (std::string name, std::string pixmap="") |
| Create and set the actions parameters. More... | |
Protected Attributes | |
| QAction * | m_action |
| Action used to call the process. More... | |
| QMenu * | m_menu |
| Parent Menu. More... | |
This is an abstract class used to register actions into st pluging.
Definition at line 59 of file st/AbstractAction.h.
| te::qt::plugins::st::AbstractAction::AbstractAction | ( | QMenu * | menu | ) |
Constructor.
| menu | The parent menu object. |
Definition at line 31 of file st/AbstractAction.cpp.
References ~AbstractAction().
|
virtualdefault |
Destructor.
Referenced by AbstractAction().
|
protected |
Create and set the actions parameters.
| name | The action name. |
| pixmap | The action pixmap name. |
Definition at line 37 of file st/AbstractAction.cpp.
References m_action, m_menu, onActionActivated(), and triggered().
Referenced by te::qt::plugins::st::ObservationAction::ObservationAction(), te::qt::plugins::st::TimeSeriesAction::TimeSeriesAction(), te::qt::plugins::st::TimeSliderWidgetAction::TimeSliderWidgetAction(), and te::qt::plugins::st::TrajectoryAction::TrajectoryAction().
|
protectedpure virtualslot |
Slot function used when a action was selected.
| checked | Flag used in case a toggle action. |
Referenced by createAction().
|
signal |
|
protected |
Action used to call the process.
Definition at line 102 of file st/AbstractAction.h.
Referenced by createAction(), and te::qt::plugins::st::TimeSliderWidgetAction::~TimeSliderWidgetAction().
|
protected |
Parent Menu.
Definition at line 101 of file st/AbstractAction.h.
Referenced by createAction(), and te::qt::plugins::st::TimeSliderWidgetAction::~TimeSliderWidgetAction().