|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <WidgetAction.h>
Public Types | |
| enum class | Scope { Private , Public } |
| enum class | HighlightOption { None , Moderate , Strong } |
| enum class | ConfigurationFlag { VisibleInMenu = 0x00001 , InternalUseOnly = 0x00002 , NoLabelInGroup = 0x00004 , ForceCollapsedInGroup = 0x00008 , ForceExpandedInGroup = 0x00010 , User = 0x00100 , Default = 0 } |
| enum | ConnectionContextFlag { Api = 0x00008 , Gui = 0x00010 , ApiAndGui = Api | Gui } |
| ** Describes the connection context options */ More... | |
| enum class | ConnectionPermissionFlag { None = 0x00000 , PublishViaApi = 0x00001 , PublishViaGui = 0x00002 , PublishViaApiAndGui = PublishViaApi | PublishViaGui , ConnectViaApi = 0x00008 , ConnectViaGui = 0x00010 , ConnectViaApiAndGui = ConnectViaApi | ConnectViaGui , DisconnectViaApi = 0x00040 , DisconnectViaGui = 0x00080 , DisconnectViaApiAndGui = DisconnectViaApi | DisconnectViaGui , ForceNone = 0x00100 , All = PublishViaApiAndGui | ConnectViaApiAndGui | DisconnectViaApiAndGui , Default = All } |
Public Types inherited from hdps::util::Serializable | |
| enum class | State { Idle , Reading , Writing } |
Signals | |
| void | idChanged (const QString &id) |
| void | sortIndexChanged (std::int32_t sortIndex) |
| void | stretchChanged (std::int32_t stretch) |
| void | forceHiddenChanged (bool forceHidden) |
| void | forceDisabledChanged (bool forceDisabled) |
| void | highlightingChanged (const HighlightOption &highlightOption) |
| void | isPublishedChanged (const bool &isPublished) |
| void | isConnectedChanged (const bool &isConnected) |
| void | actionConnected (WidgetAction *action) |
| void | actionDisconnected (WidgetAction *action) |
| void | connectionPermissionsChanged (std::int32_t connectionPermissions) |
| void | configurationFlagToggled (const ConfigurationFlag &configurationFlag, bool set) |
| void | configurationChanged (std::int32_t configuration) |
| void | scopeChanged (const Scope &scope) |
| void | textChanged (const QString &text) |
| void | locationChanged (const QString &location) |
Public Member Functions | |
| WidgetAction (QObject *parent, const QString &title) | |
| ~WidgetAction () | |
| virtual WidgetAction * | getParentAction () const final |
| virtual WidgetActions | getParentActions () const final |
| virtual WidgetActions | getChildren () const final |
| virtual bool | isRoot () const final |
| virtual bool | isLeaf () const final |
| virtual QWidget * | createWidget (QWidget *parent) override final |
| virtual QWidget * | createCollapsedWidget (QWidget *parent) const final |
| virtual QWidget * | createLabelWidget (QWidget *parent, const std::int32_t &widgetFlags=0x00001) const final |
| virtual QMenu * | getContextMenu (QWidget *parent=nullptr) |
| QWidget * | createWidget (QWidget *parent, const std::int32_t &widgetFlags) |
| virtual std::int32_t | getSortIndex () const final |
| virtual void | setSortIndex (const std::int32_t &sortIndex) final |
| virtual std::int32_t | getStretch () const final |
| virtual void | setStretch (const std::int32_t &stretch) final |
| virtual bool | getForceHidden () const final |
| virtual void | setForceHidden (bool forceHidden) final |
| virtual bool | isVisible () const final |
| virtual bool | getForceDisabled () const final |
| virtual void | setForceDisabled (bool forceDisabled) final |
| virtual bool | isEnabled () const final |
| void | setText (const QString &text) |
| virtual QString | getLocation () const |
| virtual std::int32_t | getDefaultWidgetFlags () const final |
| virtual void | setDefaultWidgetFlags (const std::int32_t &widgetFlags) final |
| virtual void | setDefaultWidgetFlag (const std::int32_t &widgetFlags, bool unset=false) final |
| virtual HighlightOption | getHighlighting () const final |
| virtual bool | isHighlighted () const final |
| virtual void | setHighlighting (const HighlightOption &highlighting) final |
| virtual void | setHighlighted (bool highlighted) final |
| virtual void | highlight () final |
| virtual void | unHighlight () final |
| virtual Scope | getScope () const final |
| virtual bool | isPrivate () const final |
| virtual bool | isPublic () const final |
| virtual bool | isPublished () const final |
| virtual bool | isConnected () const final |
| virtual bool | mayConnectToPublicAction (const WidgetAction *publicAction) const final |
| virtual bool | publish (const QString &name="", bool allowDuplicateName=false) final |
| virtual WidgetAction * | getPublicAction () final |
| virtual WidgetAction * | getPublicCopy () const final |
| virtual const WidgetActions | getConnectedActions () const final |
| virtual WidgetActions & | getConnectedActions () final |
| virtual bool | mayPublish (ConnectionContextFlag connectionContextFlags) const final |
| virtual bool | mayConnect (ConnectionContextFlag connectionContextFlags) const final |
| virtual bool | mayDisconnect (ConnectionContextFlag connectionContextFlags) const final |
| virtual std::int32_t | getConnectionPermissions () const final |
| virtual bool | isConnectionPermissionFlagSet (ConnectionPermissionFlag connectionPermissionsFlag) final |
| virtual void | setConnectionPermissionsFlag (ConnectionPermissionFlag connectionPermissionsFlag, bool unset=false, bool recursive=false) final |
| virtual void | setConnectionPermissions (std::int32_t connectionPermissions, bool recursive=false) final |
| virtual void | setConnectionPermissionsToNone (bool recursive=false) final |
| virtual void | setConnectionPermissionsToForceNone (bool recursive=false) final |
| virtual void | setConnectionPermissionsToAll (bool recursive=false) final |
| virtual void | cacheConnectionPermissions (bool recursive=false) final |
| virtual void | restoreConnectionPermissions (bool recursive=false) final |
| virtual void | startDrag () final |
| virtual bool | isResettable () const final |
| virtual void | reset () final |
| virtual void | setSettingsPrefix (const QString &settingsPrefix, const bool &load=true) final |
| virtual void | setSettingsPrefix (plugin::Plugin *plugin, const QString &settingsPrefix, const bool &load=true) final |
| virtual QString | getSettingsPrefix () const |
| virtual void | loadFromSettings () final |
| virtual void | saveToSettings () final |
| virtual QVector< WidgetAction * > | findChildren (const QString &searchString, bool recursive=true) const final |
| virtual QSize | getPopupSizeHint () const final |
| virtual void | setPopupSizeHint (const QSize &popupSizeHint) final |
| virtual std::int32_t | getConfiguration () const final |
| virtual bool | isConfigurationFlagSet (ConfigurationFlag configurationFlag) const final |
| virtual void | setConfigurationFlag (ConfigurationFlag configurationFlag, bool unset=false, bool recursive=false) final |
| virtual void | setConfiguration (std::int32_t configuration, bool recursive=false) final |
| virtual QString | getTypeString (bool humanFriendly=false) const final |
| void | fromVariantMap (const QVariantMap &variantMap) override |
| QVariantMap | toVariantMap () const override |
| virtual void | cacheState (const QString &name="cache") final |
| virtual void | restoreState (const QString &name="cache", bool remove=true) final |
| virtual void | setStudioMode (bool studioMode, bool recursive=true) final |
Public Member Functions inherited from hdps::util::Serializable | |
| Serializable (const QString &serializationName="") | |
| virtual QString | getId () const final |
| virtual void | setId (const QString &id) final |
| virtual QString | getSerializationName () const final |
| virtual void | setSerializationName (const QString &serializationName) final |
| virtual void | fromParentVariantMap (const QVariantMap &parentVariantMap) |
| virtual void | insertIntoVariantMap (QVariantMap &variantMap) const final |
| virtual void | fromJsonDocument (const QJsonDocument &jsonDocument) final |
| virtual QJsonDocument | toJsonDocument () const final |
| virtual void | fromJsonFile (const QString &filePath="") final |
| virtual void | toJsonFile (const QString &filePath="") final |
| virtual void | makeUnique () final |
Static Public Attributes | |
| static QMap< Scope, QString > | scopeNames |
Protected Member Functions | |
| virtual void | makePublic (bool recursive=true) final |
| virtual void | connectToPublicAction (WidgetAction *publicAction, bool recursive) |
| virtual void | connectToPublicActionByName (const QString &publicActionName) final |
| virtual void | disconnectFromPublicAction (bool recursive) |
| virtual QWidget * | getWidget (QWidget *parent, const std::int32_t &widgetFlags) |
Friends | |
| class | hdps::AbstractActionsManager |
Additional Inherited Members | |
Static Public Member Functions inherited from hdps::util::Serializable | |
| static QString | createId () |
Static Protected Member Functions inherited from hdps::util::Serializable | |
| static void | fromVariantMap (Serializable *serializable, const QVariantMap &variantMap) |
| static void | fromVariantMap (Serializable &serializable, const QVariantMap &variantMap, const QString &key) |
| static QVariantMap | toVariantMap (const Serializable *serializable) |
| static void | insertIntoVariantMap (const Serializable &serializable, QVariantMap &variantMap, const QString &key) |
| static void | insertIntoVariantMap (const Serializable &serializable, QVariantMap &variantMap) |
Widget action class
Base class for custom widget actions
|
strong |
Describes the configuration options
|
strong |
Describes the connection permission options
|
strong |
|
strong |
| hdps::gui::WidgetAction::WidgetAction | ( | QObject * | parent, |
| const QString & | title | ||
| ) |
Constructor
| parent | Pointer to parent object |
| title | Widget action title and serialization name |
| hdps::gui::WidgetAction::~WidgetAction | ( | ) |
Destructor
|
signal |
Signals that an action connected
| action | Action that connected |
|
signal |
Signals that an action disconnected
| action | Action that disconnected |
|
finalvirtual |
Cache connection permissions
| recursive | Whether to recursively cache child connection permissions |
|
finalvirtual |
Cache the state of a widget action under name in the action itself (for global presets use the presets action)
| name | Name to use for the cached widget action state |
|
signal |
Signals that the configuration changed
| configuration | New configuration |
|
signal |
Signals that configurationFlag is set
| configurationFlag | Toggled configuration flag |
| set | Whether the flag was set or unset |
|
signal |
Signals that the connection permissions changed
| connectionPermissions | New connection permissions |
|
protectedvirtual |
Connect this action to a public action
| publicAction | Pointer to public action to connect to |
| recursive | Whether to also connect descendant child actions |
Reimplemented in hdps::gui::ColorAction, hdps::gui::ColorMapAction, hdps::gui::ColorMapEditor1DAction, hdps::gui::ColorPickerAction, hdps::gui::DatasetPickerAction, hdps::gui::DecimalAction, hdps::gui::DecimalRangeAction, hdps::gui::DecimalRectangleAction, hdps::gui::IntegralAction, hdps::gui::IntegralRangeAction, hdps::gui::IntegralRectangleAction, hdps::gui::OptionAction, hdps::gui::OptionsAction, hdps::gui::PixelSelectionAction, hdps::gui::StretchAction, hdps::gui::StringAction, hdps::gui::StringsAction, hdps::gui::ToggleAction, hdps::gui::TriggerAction, hdps::gui::VariantAction, hdps::gui::WindowLevelAction, DimensionPickerAction, and DimensionsPickerAction.
|
finalprotectedvirtual |
Connect this action to a public action
| publicAction | Pointer to public action to connect to |
|
finalvirtual |
Create collapsed widget
| parent | Parent widget |
|
finalvirtual |
Create label widget
| parent | Parent widget |
| widgetFlags | Label widget configuration flags |
|
finaloverridevirtual |
Create standard widget
| parent | Parent widget |
| QWidget * hdps::gui::WidgetAction::createWidget | ( | QWidget * | parent, |
| const std::int32_t & | widgetFlags | ||
| ) |
Create widget for the action
| parent | Pointer to parent widget |
| widgetFlags | Widget flags |
|
protectedvirtual |
Disconnect this action from its public action
| recursive | Whether to also disconnect descendant child actions |
Reimplemented in hdps::gui::ColorAction, hdps::gui::ColorMapAction, hdps::gui::ColorMapEditor1DAction, hdps::gui::ColorPickerAction, hdps::gui::DatasetPickerAction, hdps::gui::DecimalAction, hdps::gui::DecimalRangeAction, hdps::gui::DecimalRectangleAction, hdps::gui::IntegralAction, hdps::gui::IntegralRangeAction, hdps::gui::IntegralRectangleAction, hdps::gui::OptionAction, hdps::gui::OptionsAction, hdps::gui::PixelSelectionAction, hdps::gui::StretchAction, hdps::gui::StringAction, hdps::gui::StringsAction, hdps::gui::ToggleAction, hdps::gui::TriggerAction, hdps::gui::VariantAction, hdps::gui::WindowLevelAction, DimensionPickerAction, and DimensionsPickerAction.
|
finalvirtual |
Find child widget action of which the GUI name contains the search string
| searchString | The search string |
| recursive | Whether to search recursively |
|
signal |
Signals that force disabled changed to forceDisabled
| forceDisabled | Boolean determining whether the widget action should be forcibly disabled (regardless of the enabled setting in the base QWidgetAction class) |
|
signal |
Signals that force hidden changed to forceHidden
| forceHidden | Boolean determining whether the widget action should be forcibly hidden (regardless of the visibility setting in the base QWidgetAction class) |
|
overridevirtual |
Load widget action from variant map
| Variant | map representation of the widget action |
Reimplemented from hdps::util::Serializable.
Reimplemented in hdps::gui::WindowLevelAction.
|
finalvirtual |
Get child actions
|
finalvirtual |
Get configuration
|
finalvirtual |
Get connected actions
|
finalvirtual |
Get connected actions
|
finalvirtual |
Get connection permission flags
|
virtual |
Get the context menu for the action
| parent | Parent widget |
Reimplemented in hdps::DataHierarchyItem, and hdps::DatasetImpl.
|
finalvirtual |
Gets the default widget flags
|
finalvirtual |
Get force disabled
|
finalvirtual |
Get force hidden
|
finalvirtual |
Get highlighting
|
virtual |
|
finalvirtual |
Get parent widget action
|
finalvirtual |
Get parent widget actions
|
finalvirtual |
Get size hint of popups (in case of collapsed actions)
|
finalvirtual |
Get the public action to which the action is connected
|
finalvirtual |
Get public copy of the action (other compatible actions can connect to it)
Reimplemented in hdps::gui::ProjectSplashScreenAction.
|
finalvirtual |
Get widget action scope
|
virtual |
|
finalvirtual |
Get the sort index
|
finalvirtual |
Get stretch
|
finalvirtual |
Get type string
| humanFriendly | Whether to return a type string where the namespace is omitted |
|
protectedvirtual |
Get widget representation of the action
| parent | Pointer to parent widget |
| widgetFlags | Widget flags for the configuration of the widget (type) |
Reimplemented in hdps::gui::ColorAction, hdps::gui::ColorMapAction, hdps::gui::ColorMapAxisAction, hdps::gui::ColorMapDiscreteAction, hdps::gui::ColorMapEditor1DAction, hdps::gui::ColorMapEditor1DNodeAction, hdps::gui::ColorMapSettings1DAction, hdps::gui::ColorMapSettings2DAction, hdps::gui::ColorMapSettingsAction, hdps::gui::ColorMapViewAction, hdps::gui::ColorPickerAction, hdps::gui::DecimalAction, hdps::gui::DecimalRangeAction, hdps::gui::DirectoryPickerAction, hdps::gui::FilePickerAction, hdps::gui::GroupAction, hdps::gui::GroupsAction, hdps::gui::HorizontalToolbarAction, hdps::gui::ImageAction, hdps::gui::IntegralAction, hdps::gui::IntegralRangeAction, hdps::gui::OptionAction, hdps::gui::OptionsAction, hdps::gui::OptionsAction::SelectionAction, hdps::gui::OptionsAction::FileAction, hdps::gui::PluginTriggerPickerAction, hdps::gui::RectangleAction< RectangleType, NumericalRangeActionType >, hdps::gui::RectangleAction< QRect, IntegralRangeAction >, hdps::gui::RectangleAction< QRectF, DecimalRangeAction >, hdps::gui::ProjectSplashScreenAction, hdps::gui::StatusAction, hdps::gui::StringAction, hdps::gui::StringsAction, hdps::gui::ToggleAction, hdps::gui::TriggerAction, hdps::gui::TriggersAction, hdps::gui::VerticalToolbarAction, ClustersAction, ColorizeClustersAction, FilterClustersAction, PrefixClustersAction, SelectClustersAction, SubsetAction, CreateSetFromSelectionAction, DimensionPickerAction, DimensionsPickerAction, hdps::gui::DimensionsPickerFilterAction, hdps::gui::DimensionsPickerMiscellaneousAction, hdps::gui::DimensionsPickerSelectAction, EditProxyDatasetsAction, NumberOfSelectedPointsAction, ProxyDatasetsAction, and SelectedIndicesAction.
|
finalvirtual |
Convenience method to highlight the action
|
signal |
Signals that the highlighting options changed to highlightOption
| highlightOption | Current highlight option |
|
signal |
Signals that the globally unique identifier changed (only happens upon de-serialization of a widget action)
| id | Globally unique identifier that changed |
|
finalvirtual |
Check whether configurationFlag is set or not
| configurationFlag | Configuration flag |
configurationFlag is set or not
|
finalvirtual |
Get whether the action is connect to a public action
|
signal |
Signals that the connected state changed
| isConnected | Whether the action is connected or not |
|
finalvirtual |
Check whether connectionPermissionsFlag is set or not
| connectionPermissionsFlag | Connection permissions flag |
connectionPermissionsFlag is set or not
|
finalvirtual |
Re-implement the isEnabled() getter from the base QWidgetAction class to support the force disabled functionality
|
finalvirtual |
Determine whether the action is in a highlighted state or not
|
finalvirtual |
Establish whether this action is positioned at the bottom of the hierarchy
|
finalvirtual |
Get whether this action is in the private actions pool
|
finalvirtual |
Get whether this action is in the public actions pool
|
finalvirtual |
Get whether the action is published
|
signal |
Signals that the published state changed
| isPublished | Whether the action is published or not |
|
finalvirtual |
Determines whether the action can be reset to its default
|
finalvirtual |
Establish whether this action is positioned at the top of the hierarchy
|
finalvirtual |
Re-implement the isVisible() getter from the base QWidgetAction class to support the force hidden functionality
|
finalvirtual |
Load from settings (if the settings prefix is set)
|
signal |
Signals that the location changed to location
| location | The path relative to the root in string format |
|
finalprotectedvirtual |
Make widget action public (and possibly all of its descendant widget actions)
| recursive | Whether to also make all descendant widget actions public |
|
finalvirtual |
Get whether this action may connect to a public action, depending on the connectionContextFlags
| connectionContextFlags | The context from which the connection will be made (API and/or GUI) |
connectionContextFlags
|
finalvirtual |
Get whether the action may connect to publicAction
| publicAction | Pointer to public action |
publicAction
|
finalvirtual |
Get whether this action may disconnect from a public action, depending on the connectionContextFlags
| connectionContextFlags | The context from which the disconnection will be initiated (API and/or GUI) |
connectionContextFlags
|
finalvirtual |
Get whether a copy of this action may be published and shared, depending on the connectionContextFlags
| connectionContextFlags | The context from which the action will be published (API and/or GUI) |
connectionContextFlags
|
finalvirtual |
Publish this action so that other actions can connect to it
| name | Name of the published widget action (if empty, a configuration dialog will popup) |
| allowDuplicateName | Boolean determining whether publishing will take place when a public with the same name already exists in the public actions database |
|
finalvirtual |
Reset to default
|
finalvirtual |
Restore connection permissions
| recursive | Whether to recursively restore child connection permissions |
|
finalvirtual |
Restore the state of under name
| name | Name of the cached widget action state to restore |
| remove | Whether to remove the cache |
|
finalvirtual |
Save to settings (if the settings prefix is set)
|
signal |
Signals that the scope changed to scope
| scope | Scope of the widget action |
|
finalvirtual |
Set configuration
| configuration | Configuration value |
| recursive | Whether to recursively set child child configuration flag |
|
finalvirtual |
Set configuration flag
| configurationFlag | Configuration flag to set |
| unset | Whether to unset the configurationFlag flag |
| recursive | Whether to recursively set child child configuration flag |
|
finalvirtual |
Set connection permissions
| connectionPermissions | Connection permissions value |
| recursive | Whether to recursively set child connection permissions |
|
finalvirtual |
Set connection permissions flag
| connectionPermissionsFlag | Connection permissions flag to set |
| unset | Whether to unset the connection permissions flag |
| recursive | Whether to recursively set child connection permissions |
|
finalvirtual |
Set connection permissions to all
| recursive | Whether to recursively set child connection permissions |
|
finalvirtual |
Set connection permissions to force none (connections fully disabled, regardless of other connection permission flags)
| recursive | Whether to recursively set child connection permissions |
|
finalvirtual |
Reset connection permissions to none
| recursive | Whether to recursively set child connection permissions |
|
finalvirtual |
Set the widget flags
| widgetFlags | Widget flags |
| unset | Whether to unset the default widget flag |
|
finalvirtual |
Set the widget flags
| widgetFlags | Widget flags |
|
finalvirtual |
Set force disabled to forceDisabled
| forceDisabled | Boolean determining whether the widget action should be forcibly disabled (regardless of the enabled setting in the base QWidgetAction class) |
|
finalvirtual |
Set force hidden to forceHidden
| forceHidden | Boolean determining whether the widget action should be forcibly hidden (regardless of the enabled visibility in the base QWidgetAction class) |
|
finalvirtual |
Set highlighted to highlighted
| highlighted | Boolean determining whether the action is in a normal highlighted state or not |
|
finalvirtual |
Set highlighting to highlighting
| highlighting | Highlighting state |
|
finalvirtual |
Set size hint of popups (in case of collapsed actions)
| popupSizeHint | Popup size hint |
|
finalvirtual |
Set settings prefix
| load | Whether to restore settings after setting the prefix |
| settingsPrefix | Settings prefix |
|
finalvirtual |
Set settings prefix in the context of a plugin (the combined settings prefix will be: Plugins/PluginKind/SettingsPrefix)
| load | Whether to restore settings after setting the prefix |
| plugin | Pointer to plugin context |
| settingsPrefix | Settings prefix |
|
finalvirtual |
Set the sort index
| sortIndex | Sorting index |
|
finalvirtual |
Set stretch to stretch
| stretch | Stretch factor |
|
finalvirtual |
Set studio mode to studioMode
| studioMode | Boolean determining whether studio mode is on or off |
| recursive | Boolean determining whether to also apply the studio mode to child actions recursively |
| void hdps::gui::WidgetAction::setText | ( | const QString & | text | ) |
Re-implement the setText(...) setter from the base QWidgetAction class to support updating the location
| text | Text to set |
|
signal |
Signals that the sort index changed to sortIndex
| sortIndex | Sort index (relative position in group items) |
|
finalvirtual |
Start drag process
|
signal |
Signals that the stretch changed to stretch
| stretch | Stretch factor (in action groups) |
|
signal |
Signals that the text changed to text
| text | Action text |
|
overridevirtual |
Save widget action to variant map
Reimplemented from hdps::util::Serializable.
Reimplemented in hdps::gui::WindowLevelAction.
|
finalvirtual |
Convenience method to un-highlight the action
|
friend |
The path relative to the root in string format
|
static |
Map scope enum to scope name