diff options
author | rtk0c <[email protected]> | 2021-06-03 12:17:46 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-06-03 12:17:46 -0700 |
commit | beb1f3969e13af72bd9098d484b693e397cf7235 (patch) | |
tree | 32f5e15393116a487b59b8dd7f4dbc7e5e6ddc59 /core/src/Model/Workflow/Value_RTTI.cpp | |
parent | aca69f01a9cf4e8a12fe8d67882c05a1131e21b6 (diff) |
Dictionary value (string key)
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 d6721d7..dfb1273 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/Dictionary.hpp" #include "Model/Workflow/Values/List.hpp" #include "UI/UI.hpp" @@ -30,6 +31,11 @@ constexpr BaseValue::KindInfo kListInfo{ .PinColor = RgbaColor(58, 154, 214), }; +constexpr BaseValue::KindInfo kDictionaryInfo{ + .PinIcon = ImGui::IconType::Diamond, + .PinColor = RgbaColor(240, 240, 34), +}; + constexpr BaseValue::KindInfo kDatabaseRowInfo{ .PinIcon = ImGui::IconType::Square, .PinColor = RgbaColor(15, 124, 196), @@ -48,6 +54,7 @@ const BaseValue::KindInfo& BaseValue::QueryInfo(BaseValue::Kind kind) case KD_DateTime: return kDateTimeInfo; case KD_DatabaseRowId: return kDatabaseRowIdInfo; case KD_List: return kListInfo; + case KD_Dictionary: return kDictionaryInfo; case KD_BaseObject: return kObjectinfo; case KD_SaleDatabaseRow: @@ -67,6 +74,7 @@ const char* BaseValue::Format(Kind kind) case KD_DateTime: return "Date/time"; case KD_DatabaseRowId: return "Row id"; case KD_List: return "List"; + case KD_Dictionary: return "Dictionary"; case KD_BaseObject: return "Object"; case KD_SaleDatabaseRow: return "Sale record"; @@ -85,6 +93,7 @@ std::unique_ptr<BaseValue> BaseValue::CreateByKind(BaseValue::Kind kind) 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_Dictionary: return std::make_unique<DictionaryValue>(); case KD_BaseObject: return nullptr; case KD_SaleDatabaseRow: return std::make_unique<SaleDatabaseRowValue>(); |