diff options
author | rtk0c <[email protected]> | 2021-06-03 10:39:18 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-06-03 10:39:18 -0700 |
commit | aca69f01a9cf4e8a12fe8d67882c05a1131e21b6 (patch) | |
tree | e12638107cf12f44e9f9dfdf9950f2afc2033259 /core/src/Model/Workflow/Value_RTTI.cpp | |
parent | 236d5d5c85bb05013f86b8096b85a79d6a58641e (diff) |
List value
Diffstat (limited to 'core/src/Model/Workflow/Value_RTTI.cpp')
-rw-r--r-- | core/src/Model/Workflow/Value_RTTI.cpp | 9 |
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>(); |