Editor API
UnigineEditor public API
Constants.h
1 // Copyright (C), UNIGINE. All rights reserved.
2 #pragma once
3 
4 
5 #include <editor/EditorGlobal.h>
6 
7 #include <UnigineBase.h>
8 
9 
10 namespace Constants
11 {
12 
13 
14 extern EDITOR_API const char *PLUGIN_IID;
15 
17 // The main QMenuBar menu's keys.
20 extern EDITOR_API const char *MM_FILE;
22 extern EDITOR_API const char *MM_EDIT;
24 extern EDITOR_API const char *MM_CREATE;
26 extern EDITOR_API const char *MM_TOOLS;
28 extern EDITOR_API const char *MM_WINDOWS;
30 extern EDITOR_API const char *MM_RENDERING;
32 extern EDITOR_API const char *MM_HELP;
33 
34 
36 // The main QToolBar toolbar's keys.
39 extern EDITOR_API const char *MT_TOOLS;
40 
41 
43 enum class SubObjectType
44 {
46  SURFACE,
48  SHAPE,
50  JOINT,
52  BILLBOARD,
54  FORCE,
56  NOISE,
58  DEFLECTOR,
65 };
66 
67 } // namespace Constants
68 
69 namespace Unigine
70 {
71 
72 template<typename Type>
73 struct Hasher;
74 
75 template<>
77 {
78  using HashType = unsigned int;
79  UNIGINE_INLINE static HashType create(::Constants::SubObjectType v)
80  {
81  return static_cast<HashType>(v);
82  }
83 };
84 
85 } // namespace Unigine
86 
Object's surface (Object).
EDITOR_API const char * MM_EDIT
Edit menu category of the main menu bar.
EDITOR_API const char * MM_HELP
Help menu category of the main menu bar.
Spline tangent (WorldSplineGraph).
Spline segment (WorldSplineGraph).
EDITOR_API const char * MT_TOOLS
Tools toolbar.
EDITOR_API const char * PLUGIN_IID
EDITOR_API const char * MM_TOOLS
Tools menu category of the main menu bar.
Definition: Constants.h:69
Spline point (WorldSplineGraph).
Collision shape (Body attached to an Object).
SubObjectType
Type of selectable subobjects for various types of nodes.
Definition: Constants.h:43
Definition: Constants.h:10
EDITOR_API const char * MM_CREATE
Create menu category of the main menu bar.
Physical noise affecting particles (ObjectParticles).
Billboard (ObjectBillboards).
Physical force affecting particles (ObjectParticles).
static UNIGINE_INLINE HashType create(::Constants::SubObjectType v)
Definition: Constants.h:79
EDITOR_API const char * MM_FILE
File menu category of the main menu bar.
unsigned int HashType
Definition: Constants.h:78
EDITOR_API const char * MM_RENDERING
Rendering menu category of the main menu bar.
Physical deflector affecting particles (ObjectParticles).
Physical joint (Body attached to an Object).
Definition: Constants.h:73
EDITOR_API const char * MM_WINDOWS
Windows menu category of the main menu bar.