NDEVR
API Documentation
BuildActionItemsWidget.h
1#pragma once
2#include <NDEVR/Editor.h>
3#include "../Headers/BuildActions.h"
4#include <QWidget>
5namespace Ui
6{
7 class BuildActionItemsUI;
8}
9namespace NDEVR
10{
15 {
16 public:
19 BuildActionItemsWidget(QWidget* parent = nullptr);
23 BuildActionItemsWidget(const DynamicPointer<QTDesignObject>& object, QWidget* parent = nullptr);
26 void setTarget(const DynamicPointer<QTDesignObject>& object) override;
31 void updateValues() override;
32 private:
34 void init();
37 void setOnFailureAction(const OnFailureAction& action);
38 private slots:
40 void updateRunIfSlot();
41 protected:
42 Ui::BuildActionItemsUI* ui;
43 };
44}
A Model subclass that defines a single build action or workflow step, holding its action type,...
BuildActionItemsWidget(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Constructs the widget and sets the given design object as the target.
BuildActionDefinition definition() const
Returns the BuildActionDefinition derived from the current target.
void setTarget(const DynamicPointer< QTDesignObject > &object) override
Sets the target design object for this editor.
void updateValues() override
Refreshes all UI fields from the current target data.
BuildActionItemsWidget(QWidget *parent=nullptr)
Constructs the widget with no initial target.
Ui::BuildActionItemsUI * ui
The auto-generated UI form.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
The primary namespace for the NDEVR SDK.
OnFailureAction
Specifies the behavior when a build action fails during workflow execution.