BsEditorPrerequisites.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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 Application-Editor Application
  13. * Entry point into the editor application.
  14. */
  15. /** @defgroup Build Build
  16. * Building (publishing) the game from within the editor.
  17. */
  18. /** @defgroup CodeEditor CodeEditor
  19. * Integration of the Banshee Editor with external code editors.
  20. */
  21. /** @defgroup EditorWindow EditorWindow
  22. * Creating, managing and interacting with editor windows.
  23. */
  24. /** @defgroup GUI-Editor GUI
  25. * Editor specific GUI elements.
  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 Utility-Editor Utility
  51. * Various utility methods and types used by the editor layer.
  52. */
  53. /** @} */
  54. /** @} */
  55. /** @addtogroup Internals
  56. * @{
  57. */
  58. /** @defgroup Internal-Editor Editor
  59. * Functionality specific to the Banshee Editor.
  60. * @{
  61. */
  62. /** @defgroup CodeEditor-Internal CodeEditor
  63. * Integration of the Banshee Editor with external code editors.
  64. */
  65. /** @defgroup EditorWindow-Internal EditorWindow
  66. * Creating, managing and interacting with editor windows.
  67. */
  68. /** @defgroup GUI-Editor-Internal GUI
  69. * Editor specific GUI elements.
  70. */
  71. /** @defgroup Handles-Internal Handles
  72. * Creating and interacting with handles (scene tools).
  73. */
  74. /** @defgroup Library-Internal Library
  75. * Management of all resources (assets) within a project.
  76. */
  77. /** @defgroup Scene-Editor-Internal Scene
  78. * Rendering/interacting with the scene view in editor.
  79. */
  80. /** @} */
  81. /** @} */
  82. #if (BS_PLATFORM == BS_PLATFORM_WIN32) && !defined(__MINGW32__)
  83. # ifdef BS_ED_EXPORTS
  84. # define BS_ED_EXPORT __declspec(dllexport)
  85. # else
  86. # if defined( __MINGW32__ )
  87. # define BS_ED_EXPORT
  88. # else
  89. # define BS_ED_EXPORT __declspec(dllimport)
  90. # endif
  91. # endif
  92. #elif defined ( BS_GCC_VISIBILITY )
  93. # define BS_ED_EXPORT __attribute__ ((visibility("default")))
  94. #else
  95. # define BS_ED_EXPORT
  96. #endif
  97. namespace bs
  98. {
  99. class EditorWindowBase;
  100. class EditorWindow;
  101. class EditorWidgetBase;
  102. class EditorWidgetContainer;
  103. class EditorWidgetManager;
  104. class EditorWidgetLayout;
  105. class ModalWindow;
  106. class GUITabbedTitleBar;
  107. class GUITabButton;
  108. class GUIWindowFrame;
  109. class GUIIntField;
  110. class GUIFloatField;
  111. class GUITextField;
  112. class GUIToggleField;
  113. class GUIVector2Field;
  114. class GUIVector3Field;
  115. class GUIVector4Field;
  116. class GUIColorField;
  117. class GUIListBoxField;
  118. class GUISliderField;
  119. class GUIColor;
  120. class GUIStatusBar;
  121. class GUIDropButton;
  122. class GUIHoverHitBox;
  123. class EditorWindowManager;
  124. class DockManager;
  125. class DockManagerLayout;
  126. class MainEditorWindow;
  127. class WindowFrameWidget;
  128. class GUIMenuBar;
  129. class GUIDockSlider;
  130. class GUISceneTreeView;
  131. class GUIResourceTreeView;
  132. class GUITreeViewEditBox;
  133. class EditorCommand;
  134. class ProjectFileMeta;
  135. class ProjectResourceMeta;
  136. class SceneGrid;
  137. class HandleSlider;
  138. class HandleSliderLine;
  139. class HandleSliderPlane;
  140. class HandleSliderDisc;
  141. class HandleSliderManager;
  142. class HandleDrawManager;
  143. class SceneCameraController;
  144. class EditorSettings;
  145. class SceneViewHandler;
  146. class SelectionRenderer;
  147. class DropDownWindow;
  148. class ProjectSettings;
  149. static const char* EDITOR_ASSEMBLY = "MBansheeEditor";
  150. static const char* SCRIPT_EDITOR_ASSEMBLY = "MScriptEditor";
  151. static const Path PROJECT_INTERNAL_DIR = L"Internal\\";
  152. static const Path INTERNAL_ASSEMBLY_PATH = PROJECT_INTERNAL_DIR + "Assemblies\\";
  153. /** Types of drag and drop operations. Different types specify different types of dragged data. */
  154. enum class DragAndDropType
  155. {
  156. EditorWidget = 10000,
  157. SceneObject = 10001,
  158. Resources = 10002
  159. };
  160. /**
  161. * Recognized types of external code editors.
  162. *
  163. * @see CodeEditorManager
  164. */
  165. enum class CodeEditorType
  166. {
  167. VS2008,
  168. VS2010,
  169. VS2012,
  170. VS2013,
  171. VS2015,
  172. None
  173. };
  174. /** Type IDs used by the RTTI system for the editor library. */
  175. enum TypeID_BansheeEditor
  176. {
  177. TID_ProjectFileMeta = 40000,
  178. TID_ProjectLibraryEntries = 40001,
  179. TID_ProjectLibraryResEntry = 40002,
  180. TID_ProjectLibraryDirEntry = 40003,
  181. TID_DockManagerLayout = 40004,
  182. TID_DockManagerLayoutEntry = 40005,
  183. TID_EditorWidgetLayout = 40006,
  184. TID_EditorWidgetLayoutEntry = 40007,
  185. TID_TestComponentA = 40008,
  186. TID_TestComponentB = 40009,
  187. TID_PlatformInfo = 40010,
  188. TID_WinPlatformInfo = 40011,
  189. TID_BuildData = 40012,
  190. TID_TestObjectA = 40013,
  191. TID_TestObjectB = 40014,
  192. TID_TestComponentC = 40015,
  193. TID_TestComponentD = 40016,
  194. TID_EditorSettings = 40017,
  195. TID_RecentProject = 40018,
  196. TID_Settings = 40019,
  197. TID_ProjectSettings = 40020,
  198. TID_WindowFrameWidget = 40021,
  199. TID_ProjectResourceMeta = 40022
  200. };
  201. }