NDEVR
API Documentation
DevActionTree

A tree widget that displays all supported build actions organized by category, allowing the user to select one or more actions. More...

Inheritance diagram for DevActionTree:
[legend]
Collaboration diagram for DevActionTree:
[legend]

Public Member Functions

 DevActionTree (QWidget *parent=nullptr)
 Constructs the action tree and populates it with all supported build actions.
Buffer< BuildActionselectedActions () const
 Returns the currently selected build actions.
Public Member Functions inherited from QCustomTreeWidget
 QCustomTreeWidget (QWidget *parent=nullptr)
 Constructs a tree widget.
void clear ()
 Removes all items from the tree widget.
bool event (QEvent *event)
 Handles events including palette changes to refresh icons and text.
void itemActivatedSignal (String id, int column)
 Signal emitted when a tree item is activated (e.g., by Enter key).
void itemChangedSignal (String id, int column)
 Signal emitted when a tree item's data changes.
void itemClickedSignal (String id, int column)
 Signal emitted when a tree item is clicked.
void itemCollapsedSignal (String id)
 Signal emitted when a tree item is collapsed.
void itemDoubleClickedSignal (String id, int column)
 Signal emitted when a tree item is double-clicked.
void itemEnteredSignal (String id, int column)
 Signal emitted when the mouse enters a tree item.
void itemExpandedSignal (String id)
 Signal emitted when a tree item is expanded.
void itemPressedSignal (String id)
 Signal emitted when a tree item is pressed.
Buffer< StringselectedIDs () const
 Returns the IDs of all currently selected tree items.
void selectionEditedSignal ()
 Signal emitted when the item selection changes.
void setTitle (const TranslatedString &title)
 Sets the header title for the tree widget.
void setup (const Buffer< QCustomTreeNode > &children)
 Sets up the tree with the given root-level nodes and their children.

Protected Member Functions

void init ()
 Populates the tree with build action categories and their child actions.

Detailed Description

A tree widget that displays all supported build actions organized by category, allowing the user to select one or more actions.

Definition at line 8 of file DevActionTree.h.

Constructor & Destructor Documentation

◆ DevActionTree()

DevActionTree::DevActionTree ( QWidget * parent = nullptr)
inline

Constructs the action tree and populates it with all supported build actions.

Parameters
[in]parentOptional parent widget.

Definition at line 13 of file DevActionTree.h.

References QCustomTreeWidget::QCustomTreeWidget(), and init().

Member Function Documentation

◆ selectedActions()

Buffer< BuildAction > DevActionTree::selectedActions ( ) const
inline

Returns the currently selected build actions.

Returns
A buffer of selected BuildAction values.

Definition at line 20 of file DevActionTree.h.

References Buffer< t_type, t_memory_manager >::add(), and QCustomTreeWidget::selectedIDs().


The documentation for this class was generated from the following file: