|
10 | 10 | #include "BI_BuiltInNodes.hpp" |
11 | 11 | #include "NUIE_Localization.hpp" |
12 | 12 |
|
13 | | -#include <windows.h> |
14 | | -#include <windowsx.h> |
15 | | - |
16 | 13 | #include "WAS_Direct2DContext.hpp" |
17 | 14 | #include "WAS_Direct2DOffscreenContext.hpp" |
18 | 15 |
|
| 16 | +#include <windows.h> |
| 17 | +#include <windowsx.h> |
| 18 | +#include "resources.hpp" |
| 19 | + |
19 | 20 | #pragma comment (lib, "windowscodecs.lib") |
20 | 21 | #pragma comment (lib, "d2d1.lib") |
21 | 22 | #pragma comment (lib, "dwrite.lib") |
@@ -115,60 +116,60 @@ class AppUIEnvironment : public NUIE::NodeUIEnvironment |
115 | 116 | NUIE::NodeTree nodeTree; |
116 | 117 |
|
117 | 118 | size_t inputNodes = nodeTree.AddGroup (L"Input Nodes"); |
118 | | - AddNodeTreeItem (nodeTree, inputNodes, L"Boolean", NUIE::IconId (101), [&] (const NUIE::Point& position) { |
| 119 | + AddNodeTreeItem (nodeTree, inputNodes, L"Boolean", NUIE::IconId (BOOLEAN_ICON), [&] (const NUIE::Point& position) { |
119 | 120 | return NUIE::UINodePtr (new BI::BooleanNode (NE::LocString (L"Boolean"), position, true)); |
120 | 121 | }); |
121 | | - AddNodeTreeItem (nodeTree, inputNodes, L"Integer", NUIE::IconId (102), [&] (const NUIE::Point& position) { |
| 122 | + AddNodeTreeItem (nodeTree, inputNodes, L"Integer", NUIE::IconId (INTEGER_ICON), [&] (const NUIE::Point& position) { |
122 | 123 | return NUIE::UINodePtr (new BI::IntegerUpDownNode (NE::LocString (L"Integer"), position, 0, 5)); |
123 | 124 | }); |
124 | | - AddNodeTreeItem (nodeTree, inputNodes, L"Number", NUIE::IconId (103), [&] (const NUIE::Point& position) { |
| 125 | + AddNodeTreeItem (nodeTree, inputNodes, L"Number", NUIE::IconId (DOUBLE_ICON), [&] (const NUIE::Point& position) { |
125 | 126 | return NUIE::UINodePtr (new BI::DoubleUpDownNode (NE::LocString (L"Number"), position, 0.0, 5.0)); |
126 | 127 | }); |
127 | | - AddNodeTreeItem (nodeTree, inputNodes, L"Integer Increment", NUIE::IconId (104), [&] (const NUIE::Point& position) { |
| 128 | + AddNodeTreeItem (nodeTree, inputNodes, L"Integer Increment", NUIE::IconId (INTEGERINCREMENTED_ICON), [&] (const NUIE::Point& position) { |
128 | 129 | return NUIE::UINodePtr (new BI::IntegerIncrementedNode (NE::LocString (L"Integer Increment"), position)); |
129 | 130 | }); |
130 | | - AddNodeTreeItem (nodeTree, inputNodes, L"Number Increment", NUIE::IconId (105), [&] (const NUIE::Point& position) { |
| 131 | + AddNodeTreeItem (nodeTree, inputNodes, L"Number Increment", NUIE::IconId (DOUBLEINCREMENTED_ICON), [&] (const NUIE::Point& position) { |
131 | 132 | return NUIE::UINodePtr (new BI::DoubleIncrementedNode (NE::LocString (L"Number Increment"), position)); |
132 | 133 | }); |
133 | | - AddNodeTreeItem (nodeTree, inputNodes, L"Number Distribution", NUIE::IconId (106), [&] (const NUIE::Point& position) { |
| 134 | + AddNodeTreeItem (nodeTree, inputNodes, L"Number Distribution", NUIE::IconId (DOUBLEDISTRIBUTED_ICON), [&] (const NUIE::Point& position) { |
134 | 135 | return NUIE::UINodePtr (new BI::DoubleDistributedNode (NE::LocString (L"Number Distribution"), position)); |
135 | 136 | }); |
136 | 137 | size_t mathematicalNodes = nodeTree.AddGroup (L"Mathematical Nodes"); |
137 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Addition", NUIE::IconId (107), [&] (const NUIE::Point& position) { |
| 138 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Addition", NUIE::IconId (ADDITION_ICON), [&] (const NUIE::Point& position) { |
138 | 139 | return NUIE::UINodePtr (new BI::AdditionNode (NE::LocString (L"Addition"), position)); |
139 | 140 | }); |
140 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Subtraction", NUIE::IconId (108), [&] (const NUIE::Point& position) { |
| 141 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Subtraction", NUIE::IconId (SUBTRACTION_ICON), [&] (const NUIE::Point& position) { |
141 | 142 | return NUIE::UINodePtr (new BI::SubtractionNode (NE::LocString (L"Subtraction"), position)); |
142 | 143 | }); |
143 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Multiplication", NUIE::IconId (109), [&] (const NUIE::Point& position) { |
| 144 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Multiplication", NUIE::IconId (MULTIPLICATION_ICON), [&] (const NUIE::Point& position) { |
144 | 145 | return NUIE::UINodePtr (new BI::MultiplicationNode (NE::LocString (L"Multiplication"), position)); |
145 | 146 | }); |
146 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Division", NUIE::IconId (110), [&] (const NUIE::Point& position) { |
| 147 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Division", NUIE::IconId (DIVISION_ICON), [&] (const NUIE::Point& position) { |
147 | 148 | return NUIE::UINodePtr (new BI::DivisionNode (NE::LocString (L"Division"), position)); |
148 | 149 | }); |
149 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Floor", NUIE::IconId (113), [&] (const NUIE::Point& position) { |
| 150 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Floor", NUIE::IconId (FLOOR_ICON), [&] (const NUIE::Point& position) { |
150 | 151 | return NUIE::UINodePtr (new BI::FloorNode (NE::LocString (L"Floor"), position)); |
151 | 152 | }); |
152 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Ceil", NUIE::IconId (114), [&] (const NUIE::Point& position) { |
| 153 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Ceil", NUIE::IconId (CEIL_ICON), [&] (const NUIE::Point& position) { |
153 | 154 | return NUIE::UINodePtr (new BI::CeilNode (NE::LocString (L"Ceil"), position)); |
154 | 155 | }); |
155 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Abs", NUIE::IconId (115), [&] (const NUIE::Point& position) { |
| 156 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Abs", NUIE::IconId (ABS_ICON), [&] (const NUIE::Point& position) { |
156 | 157 | return NUIE::UINodePtr (new BI::AbsNode (NE::LocString (L"Abs"), position)); |
157 | 158 | }); |
158 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Negative", NUIE::IconId (116), [&] (const NUIE::Point& position) { |
| 159 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Negative", NUIE::IconId (NEGATIVE_ICON), [&] (const NUIE::Point& position) { |
159 | 160 | return NUIE::UINodePtr (new BI::NegativeNode (NE::LocString (L"Negative"), position)); |
160 | 161 | }); |
161 | | - AddNodeTreeItem (nodeTree, mathematicalNodes, L"Sqrt", NUIE::IconId (117), [&] (const NUIE::Point& position) { |
| 162 | + AddNodeTreeItem (nodeTree, mathematicalNodes, L"Sqrt", NUIE::IconId (SQRT_ICON), [&] (const NUIE::Point& position) { |
162 | 163 | return NUIE::UINodePtr (new BI::SqrtNode (NE::LocString (L"Sqrt"), position)); |
163 | 164 | }); |
164 | 165 | size_t otherNodes = nodeTree.AddGroup (L"Other Nodes"); |
165 | | - AddNodeTreeItem (nodeTree, otherNodes, L"List Builder", NUIE::IconId (111), [&] (const NUIE::Point& position) { |
| 166 | + AddNodeTreeItem (nodeTree, otherNodes, L"List Builder", NUIE::IconId (LISTBUILDER_ICON), [&] (const NUIE::Point& position) { |
166 | 167 | return NUIE::UINodePtr (new BI::ListBuilderNode (NE::LocString (L"List Builder"), position)); |
167 | 168 | }); |
168 | | - AddNodeTreeItem (nodeTree, otherNodes, L"Multiline Viewer", NUIE::IconId (112), [&] (const NUIE::Point& position) { |
| 169 | + AddNodeTreeItem (nodeTree, otherNodes, L"Multiline Viewer", NUIE::IconId (VIEWER_ICON), [&] (const NUIE::Point& position) { |
169 | 170 | return NUIE::UINodePtr (new BI::MultiLineViewerNode (NE::LocString (L"Multiline Viewer"), position, 5)); |
170 | 171 | }); |
171 | | - AddNodeTreeItem (nodeTree, otherNodes, L"Viewer", NUIE::IconId (112), [&] (const NUIE::Point& position) { |
| 172 | + AddNodeTreeItem (nodeTree, otherNodes, L"Viewer", NUIE::IconId (VIEWER_ICON), [&] (const NUIE::Point& position) { |
172 | 173 | return NUIE::UINodePtr (new BI::ViewerNode (NE::LocString (L"Viewer"), position)); |
173 | 174 | }); |
174 | 175 |
|
|
0 commit comments