BsEditorPrerequisites.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. #if (BS_PLATFORM == BS_PLATFORM_WIN32) && !defined(__MINGW32__)
  6. # ifdef BS_ED_EXPORTS
  7. # define BS_ED_EXPORT __declspec(dllexport)
  8. # else
  9. # if defined( __MINGW32__ )
  10. # define BS_ED_EXPORT
  11. # else
  12. # define BS_ED_EXPORT __declspec(dllimport)
  13. # endif
  14. # endif
  15. #elif defined ( BS_GCC_VISIBILITY )
  16. # define BS_ED_EXPORT __attribute__ ((visibility("default")))
  17. #else
  18. # define BS_ED_EXPORT
  19. #endif
  20. namespace BansheeEngine
  21. {
  22. class EditorWindowBase;
  23. class EditorWindow;
  24. class EditorWidgetBase;
  25. class EditorWidgetContainer;
  26. class EditorWidgetManager;
  27. class EditorWidgetLayout;
  28. class ModalWindow;
  29. class GUITabbedTitleBar;
  30. class GUITabButton;
  31. class GUIWindowFrame;
  32. class GUIIntField;
  33. class GUIFloatField;
  34. class GUITextField;
  35. class GUIToggleField;
  36. class GUIVector2Field;
  37. class GUIVector3Field;
  38. class GUIVector4Field;
  39. class GUIColorField;
  40. class GUIListBoxField;
  41. class GUISliderField;
  42. class GUIColor;
  43. class GUIStatusBar;
  44. class GUIDropButton;
  45. class GUIHoverHitBox;
  46. class EditorWindowManager;
  47. class DockManager;
  48. class DockManagerLayout;
  49. class MainEditorWindow;
  50. class WindowFrameWidget;
  51. class GUIMenuBar;
  52. class GUIDockSlider;
  53. class GUISceneTreeView;
  54. class GUIResourceTreeView;
  55. class GUITreeViewEditBox;
  56. class EditorCommand;
  57. class ProjectResourceMeta;
  58. class SceneGrid;
  59. class HandleSlider;
  60. class HandleSliderLine;
  61. class HandleSliderPlane;
  62. class HandleSliderDisc;
  63. class HandleSliderManager;
  64. class HandleDrawManager;
  65. class SceneCameraController;
  66. class EditorSettings;
  67. class SceneViewHandler;
  68. class SelectionRenderer;
  69. class DropDownWindow;
  70. class ProjectSettings;
  71. typedef std::shared_ptr<ProjectResourceMeta> ProjectResourceMetaPtr;
  72. typedef std::shared_ptr<DockManagerLayout> DockManagerLayoutPtr;
  73. typedef std::shared_ptr<EditorWidgetLayout> EditorWidgetLayoutPtr;
  74. typedef std::shared_ptr<EditorSettings> EditorSettingsPtr;
  75. typedef std::shared_ptr<ProjectSettings> ProjectSettingsPtr;
  76. static const char* EDITOR_ASSEMBLY = "MBansheeEditor";
  77. static const char* SCRIPT_EDITOR_ASSEMBLY = "MScriptEditor";
  78. static const Path PROJECT_INTERNAL_DIR = L"Internal\\";
  79. static const Path INTERNAL_ASSEMBLY_PATH = PROJECT_INTERNAL_DIR + "Assemblies\\";
  80. /**
  81. * @brief Types of drag and drop operations. Different types specify
  82. * different types of dragged data.
  83. */
  84. enum class DragAndDropType
  85. {
  86. EditorWidget = 10000,
  87. SceneObject = 10001,
  88. Resources = 10002
  89. };
  90. /**
  91. * @brief Recognized types of external code editors.
  92. *
  93. * @see CodeEditorManager
  94. */
  95. enum class CodeEditorType
  96. {
  97. VS2008,
  98. VS2010,
  99. VS2012,
  100. VS2013,
  101. VS2015,
  102. None
  103. };
  104. /**
  105. * @brief Type IDs used by the RTTI system for the editor library.
  106. */
  107. enum TypeID_BansheeEditor
  108. {
  109. TID_ProjectResourceMeta = 40000,
  110. TID_ProjectLibraryEntries = 40001,
  111. TID_ProjectLibraryResEntry = 40002,
  112. TID_ProjectLibraryDirEntry = 40003,
  113. TID_DockManagerLayout = 40004,
  114. TID_DockManagerLayoutEntry = 40005,
  115. TID_EditorWidgetLayout = 40006,
  116. TID_EditorWidgetLayoutEntry = 40007,
  117. TID_TestComponentA = 40008,
  118. TID_TestComponentB = 40009,
  119. TID_PlatformInfo = 40010,
  120. TID_WinPlatformInfo = 40011,
  121. TID_BuildData = 40012,
  122. TID_TestObjectA = 40013,
  123. TID_TestObjectB = 40014,
  124. TID_TestComponentC = 40015,
  125. TID_TestComponentD = 40016,
  126. TID_EditorSettings = 40017,
  127. TID_RecentProject = 40018,
  128. TID_Settings = 40019,
  129. TID_ProjectSettings = 40020,
  130. TID_WindowFrameWidget = 40021
  131. };
  132. }