|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <AbstractActionsModel.h>
Classes | |
| struct | ColumHeaderInfo |
| class | ConnectionPermissionItem |
| class | ForceDisabledItem |
| class | ForceHiddenItem |
| class | HeaderItem |
| class | IdItem |
| class | InternalUseOnlyItem |
| class | IsConnectedItem |
| class | IsLeafItem |
| class | IsRootItem |
| class | Item |
| class | LocationItem |
| class | NameItem |
| class | NumberOfConnectedActionsItem |
| class | ParentActionIdItem |
| class | PublicActionIdItem |
| class | Row |
| class | ScopeItem |
| class | SortIndexItem |
| class | StretchItem |
| class | TypeItem |
Public Types | |
| enum class | Column { Name , Location , ID , Type , Scope , ForceDisabled , ForceHidden , MayPublish , MayConnect , MayDisconnect , SortIndex , Stretch , ParentActionId , IsConnected , NumberOfConnectedActions , PublicActionID , IsRoot , IsLeaf , InternalUseOnly , Count } |
Public Member Functions | |
| AbstractActionsModel (QObject *parent=nullptr) | |
| virtual void | initialize ()=0 |
| 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 |
Static Public Attributes | |
| static QMap< Column, ColumHeaderInfo > | columnInfo |
Protected Member Functions | |
| 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 | actionAddedToManager (gui::WidgetAction *action) |
| virtual void | actionAboutToBeRemovedFromManager (gui::WidgetAction *action) |
| virtual void | publicActionAddedToManager (gui::WidgetAction *publicAction) |
| virtual void | publicActionAboutToBeRemovedFromManager (gui::WidgetAction *publicAction) |
Friends | |
| class | ActionsFilterModel |
| class | Item |
Abstract actions model class
Abstract standard item model class for actions
|
strong |
Action columns
| hdps::AbstractActionsModel::AbstractActionsModel | ( | QObject * | parent = nullptr | ) |
Construct with parent object
| parent | Pointer to parent object |
|
inlineprotectedvirtual |
Helper method which is invoked when action is about to be removed from the actions manager
| action | Pointer to action that was removed |
Reimplemented in hdps::ActionsHierarchyModel, hdps::ActionsListModel, and hdps::PublicActionsModel.
|
inlineprotectedvirtual |
Helper method which is invoked when action is added to the actions manager
| action | Pointer to action that was added |
Reimplemented in hdps::ActionsHierarchyModel, hdps::ActionsListModel, and hdps::PublicActionsModel.
|
overrideprotected |
Determines whether mimeData with action can be dropped on row and column with parent model index
| mimeData | Pointer to dropped mime data |
| dropAction | Drop action |
| row | Drop row |
| column | Drop column |
| parent | Drop parent index |
|
overrideprotected |
Invoked when mimeData is dropped
| mimeData | Pointer to dropped mime data |
| dropAction | Drop action |
| row | Drop row |
| column | Drop column |
| parent | Drop parent index |
|
override |
Get flags for item with index
| WidgetAction * hdps::AbstractActionsModel::getAction | ( | const QModelIndex & | index | ) |
Get action for model index
| index | Model index to retrieve the action for |
| WidgetAction * hdps::AbstractActionsModel::getAction | ( | const QString & | name | ) |
Get action by name
| name | Name of the action |
| WidgetAction * hdps::AbstractActionsModel::getAction | ( | std::int32_t | rowIndex | ) |
Get action for model rowIndex
| rowIndex | Row index to retrieve the action for |
|
finalvirtual |
Get model index for action and column
| action | Pointer to action to retrieve the model index for |
| column | Column to retrieve the action index for |
| column | = Column::Name |
|
finalvirtual |
Get action item for action
| action | Pointer to action to retrieve the model item for |
|
pure virtual |
Initializes the model from the current state of the actions manager
Implemented in hdps::ActionsHierarchyModel, hdps::ActionsListModel, and hdps::PublicActionsModel.
|
overrideprotected |
Get mime data for model indexes
indexes
|
overrideprotected |
Get mime types
|
inlineprotectedvirtual |
Helper method which is invoked when publicAction is about to be removed from the actions manager
| publicAction | Pointer to public action to remove |
Reimplemented in hdps::ActionsHierarchyModel, and hdps::PublicActionsModel.
|
inlineprotectedvirtual |
Helper method which is invoked when publicAction is added to the actions manager
| publicAction | Pointer to public action that was added |
Reimplemented in hdps::ActionsHierarchyModel, and hdps::PublicActionsModel.
|
overrideprotected |
Get the supported drag actions
|
overrideprotected |
Get the supported drop actions
|
friend |
|
friend |
|
static |
Column name and tooltip