@@ -108,15 +108,15 @@ class MyCreateNodeCommand : public NUIE::SingleMenuCommand
108108 NUIE ::Point position;
109109};
110110
111- TestEventHandlers::TestEventHandlers (NodeEditor* nodeEditor) :
111+ TestEventHandler::TestEventHandler (NodeEditor* nodeEditor) :
112112 nodeEditor (nodeEditor),
113113 commandToSelect (),
114114 paramSettingsHandler (nullptr )
115115{
116116
117117}
118118
119- MenuCommandPtr TestEventHandlers ::OnContextMenu (const Point& position, const MenuCommandStructure& commands)
119+ MenuCommandPtr TestEventHandler ::OnContextMenu (const Point& position, const MenuCommandStructure& commands)
120120{
121121 NUIE ::MenuCommandStructure actualCommands = commands;
122122 NUIE ::GroupMenuCommandPtr createCommandGroup (new NUIE::GroupMenuCommand (L" Add Node" ));
@@ -131,32 +131,32 @@ MenuCommandPtr TestEventHandlers::OnContextMenu (const Point& position, const Me
131131 return SelectCommandByName (actualCommands);
132132}
133133
134- MenuCommandPtr TestEventHandlers ::OnContextMenu (const Point&, const UINodePtr&, const MenuCommandStructure& commands)
134+ MenuCommandPtr TestEventHandler ::OnContextMenu (const Point&, const UINodePtr&, const MenuCommandStructure& commands)
135135{
136136 return SelectCommandByName (commands);
137137}
138138
139- MenuCommandPtr TestEventHandlers ::OnContextMenu (const Point&, const UIOutputSlotConstPtr&, const MenuCommandStructure& commands)
139+ MenuCommandPtr TestEventHandler ::OnContextMenu (const Point&, const UIOutputSlotConstPtr&, const MenuCommandStructure& commands)
140140{
141141 return SelectCommandByName (commands);
142142}
143143
144- MenuCommandPtr TestEventHandlers ::OnContextMenu (const Point&, const UIInputSlotConstPtr&, const MenuCommandStructure& commands)
144+ MenuCommandPtr TestEventHandler ::OnContextMenu (const Point&, const UIInputSlotConstPtr&, const MenuCommandStructure& commands)
145145{
146146 return SelectCommandByName (commands);
147147}
148148
149- MenuCommandPtr TestEventHandlers ::OnContextMenu (const Point&, const UINodeGroupPtr&, const MenuCommandStructure& commands)
149+ MenuCommandPtr TestEventHandler ::OnContextMenu (const Point&, const UINodeGroupPtr&, const MenuCommandStructure& commands)
150150{
151151 return SelectCommandByName (commands);
152152}
153153
154- void TestEventHandlers ::OnDoubleClick (const Point&)
154+ void TestEventHandler ::OnDoubleClick (const Point&)
155155{
156156
157157}
158158
159- bool TestEventHandlers ::OnParameterSettings (ParameterInterfacePtr paramInterface, const UINodePtr&)
159+ bool TestEventHandler ::OnParameterSettings (ParameterInterfacePtr paramInterface, const UINodePtr&)
160160{
161161 if (DBGERROR (paramSettingsHandler == nullptr )) {
162162 return false ;
@@ -166,7 +166,7 @@ bool TestEventHandlers::OnParameterSettings (ParameterInterfacePtr paramInterfac
166166 return result;
167167}
168168
169- bool TestEventHandlers ::OnParameterSettings (ParameterInterfacePtr paramInterface, const UINodeGroupPtr&)
169+ bool TestEventHandler ::OnParameterSettings (ParameterInterfacePtr paramInterface, const UINodeGroupPtr&)
170170{
171171 if (DBGERROR (paramSettingsHandler == nullptr )) {
172172 return false ;
@@ -176,19 +176,19 @@ bool TestEventHandlers::OnParameterSettings (ParameterInterfacePtr paramInterfac
176176 return result;
177177}
178178
179- void TestEventHandlers ::SetNextCommandName (const std::wstring& nextCommandName)
179+ void TestEventHandler ::SetNextCommandName (const std::wstring& nextCommandName)
180180{
181181 DBGASSERT (commandToSelect.empty ());
182182 commandToSelect = nextCommandName;
183183}
184184
185- void TestEventHandlers ::SetNextCommandParameterSettings (const ParameterSettingsHandler& handler)
185+ void TestEventHandler ::SetNextCommandParameterSettings (const ParameterSettingsHandler& handler)
186186{
187187 SetNextCommandName (L" Node Settings" );
188188 paramSettingsHandler = handler;
189189}
190190
191- MenuCommandPtr TestEventHandlers ::SelectCommandByName (const MenuCommandStructure& commands)
191+ MenuCommandPtr TestEventHandler ::SelectCommandByName (const MenuCommandStructure& commands)
192192{
193193 DBGASSERT (!commandToSelect.empty ());
194194 MenuCommandPtr selectedCommand = nullptr ;
@@ -202,7 +202,7 @@ MenuCommandPtr TestEventHandlers::SelectCommandByName (const MenuCommandStructur
202202 return selectedCommand;
203203}
204204
205- MenuCommandPtr TestEventHandlers ::SelectCommandByName (const MenuCommandPtr& command)
205+ MenuCommandPtr TestEventHandler ::SelectCommandByName (const MenuCommandPtr& command)
206206{
207207 if (command->HasChildCommands ()) {
208208 MenuCommandPtr foundCommand = nullptr ;
@@ -226,7 +226,7 @@ TestNodeUIEnvironment::TestNodeUIEnvironment (NodeEditor& nodeEditor, const Basi
226226 stringConverter (GetDefaultStringConverter ()),
227227 skinParams (skinParams),
228228 drawingContext (800 , 600 ),
229- eventHandlers (&nodeEditor),
229+ eventHandler (&nodeEditor),
230230 evaluationEnv (nullptr ),
231231 windowScale (1.0 )
232232{
@@ -278,19 +278,19 @@ void TestNodeUIEnvironment::OnRedrawRequested ()
278278 nodeEditor.Draw ();
279279}
280280
281- EventHandlers & TestNodeUIEnvironment::GetEventHandlers ()
281+ EventHandler & TestNodeUIEnvironment::GetEventHandler ()
282282{
283- return eventHandlers ;
283+ return eventHandler ;
284284}
285285
286286void TestNodeUIEnvironment::SetNextCommandName (const std::wstring& nextCommandName)
287287{
288- eventHandlers .SetNextCommandName (nextCommandName);
288+ eventHandler .SetNextCommandName (nextCommandName);
289289}
290290
291291void TestNodeUIEnvironment::SetNextCommandParameterSettings (const ParameterSettingsHandler& handler)
292292{
293- eventHandlers .SetNextCommandParameterSettings (handler);
293+ eventHandler .SetNextCommandParameterSettings (handler);
294294}
295295
296296const SvgDrawingContext& TestNodeUIEnvironment::GetSvgDrawingContext () const
0 commit comments