|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <ActionsListModel.h>
Signals | |
| void | rootActionChanged (gui::WidgetAction *rootAction) |
Public Member Functions | |
| ActionsListModel (QObject *parent, gui::WidgetAction *rootAction=nullptr) | |
| void | initialize () override |
| gui::WidgetAction * | getRootAction () |
| void | setRootAction (gui::WidgetAction *rootAction) |
Public Member Functions inherited from hdps::AbstractActionsModel | |
| AbstractActionsModel (QObject *parent=nullptr) | |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| gui::WidgetAction * | getAction (const QModelIndex &index) |
| gui::WidgetAction * | getAction (std::int32_t rowIndex) |
| gui::WidgetAction * | getAction (const QString &name) |
| virtual QModelIndex | getActionIndex (const gui::WidgetAction *action, const Column &column=Column::Name) const final |
| virtual QStandardItem * | getActionItem (const gui::WidgetAction *action) const final |
Protected Member Functions | |
| void | actionAddedToManager (gui::WidgetAction *action) override |
| void | actionAboutToBeRemovedFromManager (gui::WidgetAction *action) override |
Protected Member Functions inherited from hdps::AbstractActionsModel | |
| Qt::DropActions | supportedDropActions () const override |
| Qt::DropActions | supportedDragActions () const override |
| QStringList | mimeTypes () const override |
| QMimeData * | mimeData (const QModelIndexList &indexes) const override |
| bool | canDropMimeData (const QMimeData *mimeData, Qt::DropAction dropAction, int row, int column, const QModelIndex &parent) const override |
| bool | dropMimeData (const QMimeData *mimeData, Qt::DropAction dropAction, int row, int column, const QModelIndex &parent) override |
| virtual void | publicActionAddedToManager (gui::WidgetAction *publicAction) |
| virtual void | publicActionAboutToBeRemovedFromManager (gui::WidgetAction *publicAction) |
Additional Inherited Members | |
Public Types inherited from hdps::AbstractActionsModel | |
| enum class | Column { Name , Location , ID , Type , Scope , ForceDisabled , ForceHidden , MayPublish , MayConnect , MayDisconnect , SortIndex , Stretch , ParentActionId , IsConnected , NumberOfConnectedActions , PublicActionID , IsRoot , IsLeaf , InternalUseOnly , Count } |
Static Public Attributes inherited from hdps::AbstractActionsModel | |
| static QMap< Column, ColumHeaderInfo > | columnInfo |
Actions list model class
List model for actions derived from abstract actions model class
When initialized with a root action, it lists the root action and its descendants, otherwise it just lists all the actions from the actions manager.
| hdps::ActionsListModel::ActionsListModel | ( | QObject * | parent, |
| gui::WidgetAction * | rootAction = nullptr |
||
| ) |
Construct with parent object and rootAction
| parent | Pointer to parent object |
| rootAction | When set, only list the root action and its descendants |
|
overrideprotectedvirtual |
Helper method which is invoked when action is about to be removed from the actions manager
| action | Pointer to action that was removed |
Reimplemented from hdps::AbstractActionsModel.
|
overrideprotectedvirtual |
Helper method which is invoked when action is added to the actions manager
| action | Pointer to action that was added |
Reimplemented from hdps::AbstractActionsModel.
| WidgetAction * hdps::ActionsListModel::getRootAction | ( | ) |
Get root action
|
overridevirtual |
Initializes the model from the current state of the actions manager
Implements hdps::AbstractActionsModel.
|
signal |
Signals that the root action changed to rootAction
| rootAction | Pointer to root action (if any) |
| void hdps::ActionsListModel::setRootAction | ( | gui::WidgetAction * | rootAction | ) |
Set root action to rootAction
| rootAction | When set, only list the root action and its descendants |