Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
using | ActionFunctionOnItem = std::function< void(Visualization::Item *item)> |
using | ActionFunctionOnNode = std::function< void(Model::Node *node)> |
using | FilterFunctionOnNode = std::function< bool(Model::Node *node)> |
Public Member Functions | |
Action (const QString &shortcut, const QString &name) | |
Action (const QString &shortcut, const QString &name, ActionFunctionOnItem action) | |
Action (const QString &shortcut, const QString &name, ActionFunctionOnItem action, FilterFunctionOnNode filter) | |
Action (const QString &shortcut, const QString &name, ActionFunctionOnNode action) | |
Action (const QString &shortcut, const QString &name, ActionFunctionOnNode action, FilterFunctionOnNode filter) | |
virtual | ~Action () |
virtual bool | canBeAppliedTo (Model::Node *node) const |
virtual void | execute (Model::Node *node) |
virtual void | execute (Visualization::Item *itemWithNode) |
bool | isPrefix (const QString &str) const |
const QString & | name () const |
const QString & | shortcut () const |
Static Public Member Functions | |
static QList< Action * > & | actions (int nodeTypeId) |
static QList< Action * > | actions (Model::Node *node) |
template<typename T > | |
static void | add (Action *action) |
Static Private Member Functions | |
static QString | calculateSuitableShortcut (const QString &name, const QStringList &list) |
static void | createStandardActionsForCompositeNode (Model::CompositeNode *node, QList< Action * > &list) |
static void | createStandardRemoveAction (QList< Action * > &list) |
Private Attributes | |
ActionFunctionOnItem | actionOnItem_ |
ActionFunctionOnNode | actionOnNode_ |
FilterFunctionOnNode | filterOnNode_ |
QString | name_ |
QString | shortcut_ |
using Interaction::Action::ActionFunctionOnItem = std::function<void (Visualization::Item* item)> |
using Interaction::Action::ActionFunctionOnNode = std::function<void (Model::Node* node)> |
using Interaction::Action::FilterFunctionOnNode = std::function<bool (Model::Node* node)> |
Interaction::Action::Action | ( | const QString & | shortcut, |
const QString & | name | ||
) |
Interaction::Action::Action | ( | const QString & | shortcut, |
const QString & | name, | ||
ActionFunctionOnNode | action | ||
) |
Interaction::Action::Action | ( | const QString & | shortcut, |
const QString & | name, | ||
ActionFunctionOnNode | action, | ||
FilterFunctionOnNode | filter | ||
) |
Interaction::Action::Action | ( | const QString & | shortcut, |
const QString & | name, | ||
ActionFunctionOnItem | action | ||
) |
Interaction::Action::Action | ( | const QString & | shortcut, |
const QString & | name, | ||
ActionFunctionOnItem | action, | ||
FilterFunctionOnNode | filter | ||
) |
|
virtual |
|
static |
|
static |
|
inlinestatic |
|
staticprivate |
|
virtual |
|
staticprivate |
|
staticprivate |
|
virtual |
|
virtual |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |