2#include <NDEVR/QCustomTreeWidget.h>
3#include <NDEVR/BuildAction.h>
24 for (
const String&
id : ids)
26 actions.
add(
id.getAs< BuildAction>());
54 nodes[index].children.
add(node);
The equivelent of std::vector but with a bit more control.
void add(t_type &&object)
Adds object to the end of the buffer.
static bool IsSupported(const BuildAction &action)
Checks whether a given build action is supported on this platform.
static Buffer< TranslatedString > Categories()
Returns all build action category names.
static TranslatedString Category(BuildAction action)
Returns the category name for the given build action.
static StringView Icon(BuildAction action)
Returns the icon resource name for the given build action.
void init()
Populates the tree with build action categories and their child actions.
Buffer< BuildAction > selectedActions() const
Returns the currently selected build actions.
DevActionTree(QWidget *parent=nullptr)
Constructs the action tree and populates it with all supported build actions.
A hash-based key-value store, useful for quick associative lookups.
const t_value & get(const t_key_type &key) const
Retrieves a const reference to the value associated with the given key.
Represents a single node in a tree structure, containing a title, ID, icon, and any child nodes.
String icon
The icon resource name for the tree node.
String id
The unique identifier for the tree node.
TranslatedString title
The display title of the tree node.
The core String class for the NDEVR API.
static TranslatedString DisplayString(const t_type &value)
Converts an object into a TranslatedString.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.
BuildAction
Enumerates all supported build action types available in the Developer module build workflow system.
@ e_invalid
Sentinel value indicating no valid action.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
@ category
The category this object belongs to.
constexpr t_to cast(const Angle< t_from > &value)
Casts an Angle from one backing type to another.