aboutsummaryrefslogtreecommitdiff
path: root/core/src/Model/Workflow/Value_RTTI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/Model/Workflow/Value_RTTI.cpp')
-rw-r--r--core/src/Model/Workflow/Value_RTTI.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/src/Model/Workflow/Value_RTTI.cpp b/core/src/Model/Workflow/Value_RTTI.cpp
index 44b047c..d6721d7 100644
--- a/core/src/Model/Workflow/Value_RTTI.cpp
+++ b/core/src/Model/Workflow/Value_RTTI.cpp
@@ -2,6 +2,7 @@
#include "Model/Workflow/Values/Basic.hpp"
#include "Model/Workflow/Values/Database.hpp"
+#include "Model/Workflow/Values/List.hpp"
#include "UI/UI.hpp"
constexpr BaseValue::KindInfo kNumericInfo{
@@ -24,6 +25,11 @@ constexpr BaseValue::KindInfo kDatabaseRowIdInfo{
.PinColor = RgbaColor(216, 42, 221),
};
+constexpr BaseValue::KindInfo kListInfo{
+ .PinIcon = ImGui::IconType::Diamond,
+ .PinColor = RgbaColor(58, 154, 214),
+};
+
constexpr BaseValue::KindInfo kDatabaseRowInfo{
.PinIcon = ImGui::IconType::Square,
.PinColor = RgbaColor(15, 124, 196),
@@ -41,6 +47,7 @@ const BaseValue::KindInfo& BaseValue::QueryInfo(BaseValue::Kind kind)
case KD_Text: return kTextInfo;
case KD_DateTime: return kDateTimeInfo;
case KD_DatabaseRowId: return kDatabaseRowIdInfo;
+ case KD_List: return kListInfo;
case KD_BaseObject: return kObjectinfo;
case KD_SaleDatabaseRow:
@@ -59,6 +66,7 @@ const char* BaseValue::Format(Kind kind)
case KD_Text: return "Text";
case KD_DateTime: return "Date/time";
case KD_DatabaseRowId: return "Row id";
+ case KD_List: return "List";
case KD_BaseObject: return "Object";
case KD_SaleDatabaseRow: return "Sale record";
@@ -76,6 +84,7 @@ std::unique_ptr<BaseValue> BaseValue::CreateByKind(BaseValue::Kind kind)
case KD_Text: return std::make_unique<TextValue>();
case KD_DateTime: return std::make_unique<DateTimeValue>();
case KD_DatabaseRowId: return std::make_unique<DatabaseRowIdValue>();
+ case KD_List: return std::make_unique<ListValue>();
case KD_BaseObject: return nullptr;
case KD_SaleDatabaseRow: return std::make_unique<SaleDatabaseRowValue>();