|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <ToolbarActionItem.h>
Public Types | |
| enum class | State { Collapsed , Expanded } |
Signals | |
| void | stateChanged (const State &state) |
| void | changingStateChanged (bool changingState) |
| void | autoExpandPriorityChanged (std::int32_t autoExpandPriority) |
| void | widgetSizeChanged (const QSize &size, const State &state) |
Protected Member Functions | |
| ToolbarActionItem (QObject *parent, const WidgetAction *action, std::int32_t widgetFlags, const State &state=State::Collapsed, std::int32_t autoExpandPriority=-1) | |
| const WidgetAction * | getAction () |
| std::int32_t | getWidgetFlags () |
| State | getState () const |
| void | setState (const State &state) |
| std::int32_t | getAutoExpandPriority () const |
| void | setAutoExpandPriority (std::int32_t autoExpandPriority) |
| QWidget * | createWidget (QWidget *parent) |
| QSize | getWidgetSize (const State &state) const |
| void | setWidgetSize (const QSize &size, const State &state) |
| bool | operator< (const ToolbarActionItem &other) const |
| bool | isChangingState () const |
| void | setChangingState (bool changingState) |
Protected Attributes | |
| const WidgetAction * | _action |
| std::int32_t | _widgetFlags |
| State | _state |
| std::int32_t | _autoExpandPriority |
| QSize | _widgetSizes [2] |
| bool | _changingState |
Friends | |
| class | ToolbarAction |
| class | HorizontalToolbarAction |
| class | VerticalToolbarAction |
| class | ToolbarActionItemWidget |
Toolbar action item class
|
strong |
|
protected |
Constructor
| parent | Pointer to parent object |
| action | Pointer to action that creates the widget |
| widgetFlags | Flags to use in widget creation |
| state | State of the widget |
| autoExpandPriority | Priority with which action should be auto-expanded |
|
signal |
Signals that the auto expand priority changed to autoExpandPriority
| autoExpandPriority | Auto expand priority |
|
signal |
Signals that the changing state changed to changingState
| changingState | Boolean determining whether the item is currently changing state |
|
protected |
Create widget for item with parent
| parent | Pointer to parent |
|
protected |
Get action
|
protected |
Get priority with which action should be auto-expanded
|
protected |
Get state of the action (expanded or collapsed)
|
protected |
Get widget flags
|
protected |
Get widget size for state
| state | State to get the widget size for |
|
protected |
Get whether the item is currently changing state
|
inlineprotected |
Compare with other toolbar action item on the basis of their auto expand priority
| other | Other toolbar action item to compare with |
other toolbar action item is smaller
|
protected |
Set priority with which action should be auto-expanded
| autoExpandPriority | Priority with which action should be auto-expanded |
|
protected |
Set whether the item is currently changing state
| changingState | Boolean determining whether the item is currently changing state |
|
protected |
Set state of the action to state
| state | State of the action (expanded or collapsed) |
|
protected |
Set widget size for state
| state | State to set the widget size for |
| size | Widget size |
|
signal |
Signals that the state changed to state
| state | Item state |
|
signal |
Signals that the size of widget with state changed to size
| size | New size of the widget |
| state | State of the widget |
|
friend |
|
friend |
Boolean determining whether the item is currently changing state
|
friend |
|
friend |
|
protected |
|
protected |
Whether the item is expanded or collapsed
|
protected |
Widget sizes in collapsed and expanded state respectively
|
protected |
Flags to use in widget creation
|
protected |
Pointer to horizontal toolbar action that creates the widget
|
protected |
Priority with which action should be auto-expanded (higher priority w.r.t. other actions means it will auto-expanded sooner)