BsEditorPrerequisites.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsPrerequisites.h"
  5. /** @addtogroup Layers
  6. * @{
  7. */
  8. /** @defgroup Editor Editor
  9. * Functionality specific to the Banshee Editor.
  10. * @{
  11. */
  12. /** @defgroup EditorWindow EditorWindow
  13. * Creating, managing and interacting with editor windows.
  14. */
  15. /** @defgroup Utility-Editor Utility
  16. * Various utility methods and types used by the editor layer.
  17. */
  18. /** @defgroup GUI-Editor GUI
  19. * Editor specific GUI elements.
  20. */
  21. /** @defgroup Build Build
  22. * Building (publishing) the game from within the editor.
  23. */
  24. /** @defgroup CodeEditor CodeEditor
  25. * Integration of the Banshee Editor with external code editors.
  26. */
  27. /** @defgroup Handles Handles
  28. * Creating and interacting with handles (scene tools).
  29. */
  30. /** @defgroup Library Library
  31. * Management of all resources (assets) within a project.
  32. */
  33. /** @cond RTTI */
  34. /** @defgroup RTTI-Impl-Editor RTTI types
  35. * Types containing RTTI for specific classes.
  36. */
  37. /** @endcond */
  38. /** @defgroup Scene-Editor Scene
  39. * Rendering/interacting with the scene view in editor.
  40. */
  41. /** @defgroup Settings Settings
  42. * Persistent settings for editor and project.
  43. */
  44. /** @defgroup Testing-Editor Testing
  45. * Contains editor unit tests.
  46. */
  47. /** @defgroup UndoRedo UndoRedo
  48. * Undoing and redoing actions within the editor.
  49. */
  50. /** @defgroup Application-Editor Application
  51. * Entry point into the editor application.
  52. */
  53. /** @defgroup Internal-Editor [INTERNAL]
  54. * Low-level classes and methods not meant for normal use, useful for those that are modifying the engine.
  55. * @{
  56. */
  57. /** @defgroup CodeEditor-Internal CodeEditor
  58. * Integration of the Banshee Editor with external code editors.
  59. */
  60. /** @defgroup EditorWindow-Internal EditorWindow
  61. * Creating, managing and interacting with editor windows.
  62. */
  63. /** @defgroup GUI-Editor-Internal GUI
  64. * Editor specific GUI elements.
  65. */
  66. /** @defgroup Handles-Internal Handles
  67. * Creating and interacting with handles (scene tools).
  68. */
  69. /** @defgroup Library-Internal Library
  70. * Management of all resources (assets) within a project.
  71. */
  72. /** @defgroup Scene-Editor-Internal Scene
  73. * Rendering/interacting with the scene view in editor.
  74. */
  75. /** @} */
  76. /** @} */
  77. /** @} */
  78. #if (BS_PLATFORM == BS_PLATFORM_WIN32) && !defined(__MINGW32__)
  79. # ifdef BS_ED_EXPORTS
  80. # define BS_ED_EXPORT __declspec(dllexport)
  81. # else
  82. # if defined( __MINGW32__ )
  83. # define BS_ED_EXPORT
  84. # else
  85. # define BS_ED_EXPORT __declspec(dllimport)
  86. # endif
  87. # endif
  88. #elif defined ( BS_GCC_VISIBILITY )
  89. # define BS_ED_EXPORT __attribute__ ((visibility("default")))
  90. #else
  91. # define BS_ED_EXPORT
  92. #endif
  93. namespace BansheeEngine
  94. {
  95. class EditorWindowBase;
  96. class EditorWindow;
  97. class EditorWidgetBase;
  98. class EditorWidgetContainer;
  99. class EditorWidgetManager;
  100. class EditorWidgetLayout;
  101. class ModalWindow;
  102. class GUITabbedTitleBar;
  103. class GUITabButton;
  104. class GUIWindowFrame;
  105. class GUIIntField;
  106. class GUIFloatField;
  107. class GUITextField;
  108. class GUIToggleField;
  109. class GUIVector2Field;
  110. class GUIVector3Field;
  111. class GUIVector4Field;
  112. class GUIColorField;
  113. class GUIListBoxField;
  114. class GUISliderField;
  115. class GUIColor;
  116. class GUIStatusBar;
  117. class GUIDropButton;
  118. class GUIHoverHitBox;
  119. class EditorWindowManager;
  120. class DockManager;
  121. class DockManagerLayout;
  122. class MainEditorWindow;
  123. class WindowFrameWidget;
  124. class GUIMenuBar;
  125. class GUIDockSlider;
  126. class GUISceneTreeView;
  127. class GUIResourceTreeView;
  128. class GUITreeViewEditBox;
  129. class EditorCommand;
  130. class ProjectFileMeta;
  131. class ProjectResourceMeta;
  132. class SceneGrid;
  133. class HandleSlider;
  134. class HandleSliderLine;
  135. class HandleSliderPlane;
  136. class HandleSliderDisc;
  137. class HandleSliderManager;
  138. class HandleDrawManager;
  139. class SceneCameraController;
  140. class EditorSettings;
  141. class SceneViewHandler;
  142. class SelectionRenderer;
  143. class DropDownWindow;
  144. class ProjectSettings;
  145. static const char* EDITOR_ASSEMBLY = "MBansheeEditor";
  146. static const char* SCRIPT_EDITOR_ASSEMBLY = "MScriptEditor";
  147. static const Path PROJECT_INTERNAL_DIR = L"Internal\\";
  148. static const Path INTERNAL_ASSEMBLY_PATH = PROJECT_INTERNAL_DIR + "Assemblies\\";
  149. /** Types of drag and drop operations. Different types specify different types of dragged data. */
  150. enum class DragAndDropType
  151. {
  152. EditorWidget = 10000,
  153. SceneObject = 10001,
  154. Resources = 10002
  155. };
  156. /**
  157. * Recognized types of external code editors.
  158. *
  159. * @see CodeEditorManager
  160. */
  161. enum class CodeEditorType
  162. {
  163. VS2008,
  164. VS2010,
  165. VS2012,
  166. VS2013,
  167. VS2015,
  168. None
  169. };
  170. /** Type IDs used by the RTTI system for the editor library. */
  171. enum TypeID_BansheeEditor
  172. {
  173. TID_ProjectFileMeta = 40000,
  174. TID_ProjectLibraryEntries = 40001,
  175. TID_ProjectLibraryResEntry = 40002,
  176. TID_ProjectLibraryDirEntry = 40003,
  177. TID_DockManagerLayout = 40004,
  178. TID_DockManagerLayoutEntry = 40005,
  179. TID_EditorWidgetLayout = 40006,
  180. TID_EditorWidgetLayoutEntry = 40007,
  181. TID_TestComponentA = 40008,
  182. TID_TestComponentB = 40009,
  183. TID_PlatformInfo = 40010,
  184. TID_WinPlatformInfo = 40011,
  185. TID_BuildData = 40012,
  186. TID_TestObjectA = 40013,
  187. TID_TestObjectB = 40014,
  188. TID_TestComponentC = 40015,
  189. TID_TestComponentD = 40016,
  190. TID_EditorSettings = 40017,
  191. TID_RecentProject = 40018,
  192. TID_Settings = 40019,
  193. TID_ProjectSettings = 40020,
  194. TID_WindowFrameWidget = 40021,
  195. TID_ProjectResourceMeta = 40022
  196. };
  197. }