BsEditorPrerequisites.h 3.5 KB

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