Sfoglia il codice sorgente

Added missing file.
Updated script API.

Lasse Öörni 14 anni fa
parent
commit
dd131fbd66

+ 2 - 0
Docs/ScriptAPI.dox

@@ -1976,6 +1976,7 @@ Methods:<br>
 - void Remove()
 - void Resize(const BoundingBox&, uint)
 - void DrawDebugGeometry(bool) const
+- void AddDrawable(Drawable@)
 - RayQueryResult[]@ Raycast(const Ray&, RayQueryLevel arg1 = RAY_TRIANGLE, float arg2 = M_INFINITY, uint8 arg3 = DRAWABLE_ANY, uint arg4 = DEFAULT_VIEWMASK)
 - Node@[]@ GetDrawables(const Vector3&, uint8 arg1 = DRAWABLE_ANY, uint arg2 = DEFAULT_VIEWMASK)
 - Node@[]@ GetDrawables(const BoundingBox&, uint8 arg1 = DRAWABLE_ANY, uint arg2 = DEFAULT_VIEWMASK)
@@ -2958,6 +2959,7 @@ Methods:<br>
 - void SetChildItemsVisible(uint, bool)
 - void SetChildItemsVisible(bool)
 - void ToggleChildItemsVisible(uint)
+- bool IsSelected(uint) const
 - UIElement@[]@ GetItems() const
 
 Properties:<br>

+ 5 - 5
Engine/Core/CoreEvents.h

@@ -28,26 +28,26 @@
 /// Frame begin event.
 EVENT(E_BEGINFRAME, BeginFrame)
 {
-    PARAM(P_FRAMENUMBER, FrameNumber);  // unsigned
-    PARAM(P_TIMESTEP, TimeStep);        // float
+    PARAM(P_FRAMENUMBER, FrameNumber);      // unsigned
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Application-wide logic update event.
 EVENT(E_UPDATE, Update)
 {
-    PARAM(P_TIMESTEP, TimeStep);          // float
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Application-wide logic post-update event.
 EVENT(E_POSTUPDATE, PostUpdate)
 {
-    PARAM(P_TIMESTEP, TimeStep);          // float
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Render update event.
 EVENT(E_RENDERUPDATE, RenderUpdate)
 {
-    PARAM(P_TIMESTEP, TimeStep);          // float
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Post-render update event.

+ 32 - 0
Engine/Graphics/DrawableEvents.h

@@ -0,0 +1,32 @@
+//
+// Urho3D Engine
+// Copyright (c) 2008-2011 Lasse Öörni
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+//
+
+#pragma once
+
+#include "Object.h"
+
+/// AnimatedModel bone hierarchy created.
+EVENT(E_BONEHIERARCHYCREATED, BoneHierarchyCreated)
+{
+    PARAM(P_NODE, Node);                    // Node pointer
+}

+ 8 - 8
Engine/Graphics/GraphicsEvents.h

@@ -28,19 +28,19 @@
 /// Operating system window message.
 EVENT(E_WINDOWMESSAGE, WindowMessage)
 {
-    PARAM(P_WINDOW, Window);              // int
-    PARAM(P_MSG, Msg);                    // int
-    PARAM(P_WPARAM, WParam);              // int
-    PARAM(P_LPARAM, LParam);              // int
-    PARAM(P_HANDLED, Handled);            // bool
+    PARAM(P_WINDOW, Window);                // int
+    PARAM(P_MSG, Msg);                      // int
+    PARAM(P_WPARAM, WParam);                // int
+    PARAM(P_LPARAM, LParam);                // int
+    PARAM(P_HANDLED, Handled);              // bool
 }
 
 /// New screen mode set.
 EVENT(E_SCREENMODE, ScreenMode)
 {
-    PARAM(P_WIDTH, Width);                // int
-    PARAM(P_HEIGHT, Height);              // int
-    PARAM(P_FULLSCREEN, Fullscreen);      // bool
+    PARAM(P_WIDTH, Width);                  // int
+    PARAM(P_HEIGHT, Height);                // int
+    PARAM(P_FULLSCREEN, Fullscreen);        // bool
 }
 
 /// Frame rendering started.

+ 1 - 1
Engine/IO/IOEvents.h

@@ -28,5 +28,5 @@
 /// Log message event.
 EVENT(E_LOGMESSAGE, LogMessage)
 {
-    PARAM(P_MESSAGE, Message);          // string
+    PARAM(P_MESSAGE, Message);              // String
 }

+ 25 - 25
Engine/Input/InputEvents.h

@@ -32,66 +32,66 @@
 /// Mouse button pressed.
 EVENT(E_MOUSEBUTTONDOWN, MouseButtonDown)
 {
-    PARAM(P_BUTTON, Button);              // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
+    PARAM(P_BUTTON, Button);                // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
 }
 
 /// Mouse button released.
 EVENT(E_MOUSEBUTTONUP, MouseButtonUp)
 {
-    PARAM(P_BUTTON, Button);              // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
+    PARAM(P_BUTTON, Button);                // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
 }
 
 /// Mouse moved.
 EVENT(E_MOUSEMOVE, MouseMove)
 {
-    PARAM(P_DX, DX);                      // int
-    PARAM(P_DY, DY);                      // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
+    PARAM(P_DX, DX);                        // int
+    PARAM(P_DY, DY);                        // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
 }
 
 /// Mouse wheel moved.
 EVENT(E_MOUSEWHEEL, MouseWheel)
 {
-    PARAM(P_WHEEL, Wheel);                // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
+    PARAM(P_WHEEL, Wheel);                  // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
 }
 
 /// Key pressed.
 EVENT(E_KEYDOWN, KeyDown)
 {
-    PARAM(P_KEY, Key);                    // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
-    PARAM(P_REPEAT, Repeat);              // bool
+    PARAM(P_KEY, Key);                      // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
+    PARAM(P_REPEAT, Repeat);                // bool
 }
 
 /// Key released.
 EVENT(E_KEYUP, KeyUp)
 {
-    PARAM(P_KEY, Key);                    // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
+    PARAM(P_KEY, Key);                      // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
 }
 
 /// Character typed on the keyboard.
 EVENT(E_CHAR, Char)
 {
-    PARAM(P_CHAR, Char);                  // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
+    PARAM(P_CHAR, Char);                    // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
 }
 
 /// Application activation state changed.
 EVENT(E_ACTIVATION, Activation)
 {
-    PARAM(P_ACTIVE, Active);              // bool
-    PARAM(P_MINIMIZED, Minimized);        // bool
+    PARAM(P_ACTIVE, Active);                // bool
+    PARAM(P_MINIMIZED, Minimized);          // bool
 }
 
 static const int MOUSEB_LEFT = 1;

+ 8 - 8
Engine/Network/NetworkEvents.h

@@ -43,34 +43,34 @@ EVENT(E_CONNECTFAILED, ConnectFailed)
 /// New client connection established.
 EVENT(E_CLIENTCONNECTED, ClientConnected)
 {
-    PARAM(P_CONNECTION, Connection);      // Connection pointer
+    PARAM(P_CONNECTION, Connection);        // Connection pointer
 }
 
 /// Client connection disconnected.
 EVENT(E_CLIENTDISCONNECTED, ClientDisconnected)
 {
-    PARAM(P_CONNECTION, Connection);      // Connection pointer
+    PARAM(P_CONNECTION, Connection);        // Connection pointer
 }
 
 /// Client has sent identity: identity map is in the event data.
 EVENT(E_CLIENTIDENTITY, ClientIdentity)
 {
-    PARAM(P_CONNECTION, Connection);      // Connection pointer
-    PARAM(P_ALLOW, Allow);                // bool
+    PARAM(P_CONNECTION, Connection);        // Connection pointer
+    PARAM(P_ALLOW, Allow);                  // bool
 }
 
 /// Client has informed to have loaded the scene.
 EVENT(E_CLIENTSCENELOADED, ClientSceneLoaded)
 {
-    PARAM(P_CONNECTION, Connection);      // Connection pointer
+    PARAM(P_CONNECTION, Connection);        // Connection pointer
 }
 
 /// Unhandled network message received.
 EVENT(E_NETWORKMESSAGE, NetworkMessage)
 {
-    PARAM(P_CONNECTION, Connection);      // Connection pointer
-    PARAM(P_MESSAGEID, MessageID);        // int
-    PARAM(P_DATA, Data);                  // Buffer
+    PARAM(P_CONNECTION, Connection);        // Connection pointer
+    PARAM(P_MESSAGEID, MessageID);          // int
+    PARAM(P_DATA, Data);                    // Buffer
 }
 
 /// About to send network update on the client or server.

+ 16 - 16
Engine/Physics/PhysicsEvents.h

@@ -28,35 +28,35 @@
 /// Physics world is about to be stepped.
 EVENT(E_PHYSICSPRESTEP, PhysicsPreStep)
 {
-    PARAM(P_WORLD, World);                // PhysicsWorld pointer
-    PARAM(P_TIMESTEP, TimeStep);          // float
+    PARAM(P_WORLD, World);                  // PhysicsWorld pointer
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Physics world has been stepped.
 EVENT(E_PHYSICSPOSTSTEP, PhysicsPostStep)
 {
-    PARAM(P_WORLD, World);                // PhysicsWorld pointer
-    PARAM(P_TIMESTEP, TimeStep);          // float
+    PARAM(P_WORLD, World);                  // PhysicsWorld pointer
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Physics collision occurred.
 EVENT(E_PHYSICSCOLLISION, PhysicsCollision)
 {
-    PARAM(P_WORLD, World);                // PhysicsWorld pointer
-    PARAM(P_NODEA, NodeA);                // Node pointer
-    PARAM(P_NODEB, NodeB);                // Node pointer
-    PARAM(P_SHAPEA, ShapeA);              // CollisionShape pointer
-    PARAM(P_SHAPEB, ShapeB);              // CollisionShape pointer
-    PARAM(P_NEWCOLLISION, NewCollision);  // bool
-    PARAM(P_CONTACTS, Contacts);          // Buffer containing position, normal, depth, velocity for each contact
+    PARAM(P_WORLD, World);                  // PhysicsWorld pointer
+    PARAM(P_NODEA, NodeA);                  // Node pointer
+    PARAM(P_NODEB, NodeB);                  // Node pointer
+    PARAM(P_SHAPEA, ShapeA);                // CollisionShape pointer
+    PARAM(P_SHAPEB, ShapeB);                // CollisionShape pointer
+    PARAM(P_NEWCOLLISION, NewCollision);    // bool
+    PARAM(P_CONTACTS, Contacts);            // Buffer containing position, normal, depth, velocity for each contact
 }
 
 /// Physics collision occurred (sent to the participating scene nodes.)
 EVENT(E_NODECOLLISION, NodeCollision)
 {
-    PARAM(P_SHAPE, Shape);                // CollisionShape pointer
-    PARAM(P_OTHERNODE, OtherNode);        // Node pointer
-    PARAM(P_OTHERSHAPE, OtherShape);      // CollisionShape pointer
-    PARAM(P_NEWCOLLISION, NewCollision);  // bool
-    PARAM(P_CONTACTS, Contacts);          // Buffer containing position, normal, depth, velocity for each contact
+    PARAM(P_SHAPE, Shape);                  // CollisionShape pointer
+    PARAM(P_OTHERNODE, OtherNode);          // Node pointer
+    PARAM(P_OTHERSHAPE, OtherShape);        // CollisionShape pointer
+    PARAM(P_NEWCOLLISION, NewCollision);    // bool
+    PARAM(P_CONTACTS, Contacts);            // Buffer containing position, normal, depth, velocity for each contact
 }

+ 11 - 11
Engine/Scene/SceneEvents.h

@@ -28,35 +28,35 @@
 /// Variable timestep scene update.
 EVENT(E_SCENEUPDATE, SceneUpdate)
 {
-    PARAM(P_SCENE, Scene);                // Scene pointer
-    PARAM(P_TIMESTEP, TimeStep);          // float
+    PARAM(P_SCENE, Scene);                  // Scene pointer
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Scene subsystem update.
 EVENT(E_SCENESUBSYSTEMUPDATE, SceneSubsystemUpdate)
 {
-    PARAM(P_SCENE, Scene);                // Scene pointer
-    PARAM(P_TIMESTEP, TimeStep);          // float
+    PARAM(P_SCENE, Scene);                  // Scene pointer
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Variable timestep scene post-update.
 EVENT(E_SCENEPOSTUPDATE, ScenePostUpdate)
 {
-    PARAM(P_SCENE, Scene);                // Scene pointer
-    PARAM(P_TIMESTEP, TimeStep);          // float
+    PARAM(P_SCENE, Scene);                  // Scene pointer
+    PARAM(P_TIMESTEP, TimeStep);            // float
 }
 
 /// Asynchronous scene loading progress.
 EVENT(E_ASYNCLOADPROGRESS, AsyncLoadProgress)
 {
-    PARAM(P_SCENE, Scene);                // Scene pointer
-    PARAM(P_PROGRESS, Progress);          // float
-    PARAM(P_LOADEDNODES, LoadedNodes);    // int
-    PARAM(P_TOTALNODES, TotalNodes);      // int
+    PARAM(P_SCENE, Scene);                  // Scene pointer
+    PARAM(P_PROGRESS, Progress);            // float
+    PARAM(P_LOADEDNODES, LoadedNodes);      // int
+    PARAM(P_TOTALNODES, TotalNodes);        // int
 };
 
 /// Asynchronous scene loading finished.
 EVENT(E_ASYNCLOADFINISHED, AsyncLoadFinished)
 {
-    PARAM(P_SCENE, Scene);                // Scene pointer
+    PARAM(P_SCENE, Scene);                  // Scene pointer
 };

+ 49 - 49
Engine/UI/UIEvents.h

@@ -28,158 +28,158 @@
 /// Mouse click in the UI.
 EVENT(E_UIMOUSECLICK, UIMouseClick)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_X, X);                        // int
-    PARAM(P_Y, Y);                        // int
-    PARAM(P_BUTTON, Button);              // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_X, X);                          // int
+    PARAM(P_Y, Y);                          // int
+    PARAM(P_BUTTON, Button);                // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
 }
 
 /// Drag and drop test.
 EVENT(E_DRAGDROPTEST, DragDropTest)
 {
-    PARAM(P_SOURCE, Source);              // UIElement pointer
-    PARAM(P_TARGET, Target);              // UIElement pointer
-    PARAM(P_ACCEPT, Accept);              // bool
+    PARAM(P_SOURCE, Source);                // UIElement pointer
+    PARAM(P_TARGET, Target);                // UIElement pointer
+    PARAM(P_ACCEPT, Accept);                // bool
 };
 
 /// Drag and drop finish.
 EVENT(E_DRAGDROPFINISH, DragDropFinish)
 {
-    PARAM(P_SOURCE, Source);              // UIElement pointer
-    PARAM(P_TARGET, Target);              // UIElement pointer
-    PARAM(P_ACCEPT, Accept);              // bool
+    PARAM(P_SOURCE, Source);                // UIElement pointer
+    PARAM(P_TARGET, Target);                // UIElement pointer
+    PARAM(P_ACCEPT, Accept);                // bool
 };
 
 /// Focus element changed.
 EVENT(E_FOCUSCHANGED, FocusChanged)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_ORIGINALELEMENT, Element);    // UIElement pointer
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_ORIGINALELEMENT, Element);      // UIElement pointer
 }
 
 /// UI element resized.
 EVENT(E_RESIZED, Resized)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_WIDTH, Width);                // int
-    PARAM(P_HEIGHT, Height);              // int
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_WIDTH, Width);                  // int
+    PARAM(P_HEIGHT, Height);                // int
 }
 
 /// UI element visibility changed.
 EVENT(E_VISIBLECHANGED, VisibleChanged)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_VISIBLE, Visible);            // bool
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_VISIBLE, Visible);              // bool
 }
 
 /// UI element focused.
 EVENT(E_FOCUSED, Focused)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
 }
 
 /// UI element defocused.
 EVENT(E_DEFOCUSED, Defocused)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
 }
 
 /// UI button pressed.
 EVENT(E_PRESSED, Pressed)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
 }
 
 /// UI button was pressed, then released.
 EVENT(E_RELEASED, Released)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
 }
 
 /// UI checkbox toggled.
 EVENT(E_TOGGLED, Toggled)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_STATE, State);                // bool
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_STATE, State);                  // bool
 }
 
 /// UI slider value changed
 EVENT(E_SLIDERCHANGED, SliderChanged)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_VALUE, Value);                // float
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_VALUE, Value);                  // float
 }
 
 /// UI scrollbar value changed.
 EVENT(E_SCROLLBARCHANGED, ScrollBarChanged)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_VALUE, Value);                // float
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_VALUE, Value);                  // float
 }
 
 /// UI scrollview position changed.
 EVENT(E_VIEWCHANGED, ViewChanged)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_X, X);                        // int
-    PARAM(P_Y, Y);                        // int
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_X, X);                          // int
+    PARAM(P_Y, Y);                          // int
 }
 
 /// Editable text changed
 EVENT(E_TEXTCHANGED, TextChanged)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_TEXT, Text);                  // string
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_TEXT, Text);                    // String
 }
 
 /// Text editing finished (enter pressed on a LineEdit)
 EVENT(E_TEXTFINISHED, TextFinished)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_TEXT, Text);                  // string
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_TEXT, Text);                    // String
 }
 
 /// Menu selected.
 EVENT(E_MENUSELECTED, MenuSelected)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
 }
 
 /// Listview or DropDownList item selected.
 EVENT(E_ITEMSELECTED, ItemSelected)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_SELECTION, Selection);        // int
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_SELECTION, Selection);          // int
 }
 
 /// Listview item deselected
 EVENT(E_ITEMDESELECTED, ItemDeselected)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_SELECTION, Selection);        // int
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_SELECTION, Selection);          // int
 }
 
 /// Listview item doubleclicked.
 EVENT(E_ITEMDOUBLECLICKED, ItemDoubleClicked)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_SELECTION, Selection);        // int
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_SELECTION, Selection);          // int
 }
 
 /// LineEdit or ListView unhandled key pressed.
 EVENT(E_UNHANDLEDKEY, UnhandledKey)
 {
-    PARAM(P_ELEMENT, Element);            // UIElement pointer
-    PARAM(P_KEY, Key);                    // int
-    PARAM(P_BUTTONS, Buttons);            // int
-    PARAM(P_QUALIFIERS, Qualifiers);      // int
+    PARAM(P_ELEMENT, Element);              // UIElement pointer
+    PARAM(P_KEY, Key);                      // int
+    PARAM(P_BUTTONS, Buttons);              // int
+    PARAM(P_QUALIFIERS, Qualifiers);        // int
 }
 
 /// Fileselector choice.
 EVENT(E_FILESELECTED, FileSelected)
 {
-    PARAM(P_FILENAME, FileName);          // string
-    PARAM(P_OK, Ok);                      // bool
+    PARAM(P_FILENAME, FileName);            // String
+    PARAM(P_OK, Ok);                        // bool
 }