|
@@ -40,7 +40,7 @@
|
|
#include "scene/gui/color_picker.h"
|
|
#include "scene/gui/color_picker.h"
|
|
|
|
|
|
class EditorPropertyNil : public EditorProperty {
|
|
class EditorPropertyNil : public EditorProperty {
|
|
- GDCLASS(EditorPropertyNil, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyNil, EditorProperty);
|
|
LineEdit *text;
|
|
LineEdit *text;
|
|
|
|
|
|
public:
|
|
public:
|
|
@@ -49,7 +49,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyText : public EditorProperty {
|
|
class EditorPropertyText : public EditorProperty {
|
|
- GDCLASS(EditorPropertyText, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyText, EditorProperty);
|
|
LineEdit *text;
|
|
LineEdit *text;
|
|
|
|
|
|
bool updating;
|
|
bool updating;
|
|
@@ -66,7 +66,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyMultilineText : public EditorProperty {
|
|
class EditorPropertyMultilineText : public EditorProperty {
|
|
- GDCLASS(EditorPropertyMultilineText, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyMultilineText, EditorProperty);
|
|
TextEdit *text;
|
|
TextEdit *text;
|
|
|
|
|
|
AcceptDialog *big_text_dialog;
|
|
AcceptDialog *big_text_dialog;
|
|
@@ -87,7 +87,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyTextEnum : public EditorProperty {
|
|
class EditorPropertyTextEnum : public EditorProperty {
|
|
- GDCLASS(EditorPropertyTextEnum, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyTextEnum, EditorProperty);
|
|
OptionButton *options;
|
|
OptionButton *options;
|
|
|
|
|
|
void _option_selected(int p_which);
|
|
void _option_selected(int p_which);
|
|
@@ -102,7 +102,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyPath : public EditorProperty {
|
|
class EditorPropertyPath : public EditorProperty {
|
|
- GDCLASS(EditorPropertyPath, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyPath, EditorProperty);
|
|
Vector<String> extensions;
|
|
Vector<String> extensions;
|
|
bool folder;
|
|
bool folder;
|
|
bool global;
|
|
bool global;
|
|
@@ -127,7 +127,8 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyClassName : public EditorProperty {
|
|
class EditorPropertyClassName : public EditorProperty {
|
|
- GDCLASS(EditorPropertyClassName, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyClassName, EditorProperty);
|
|
|
|
+
|
|
private:
|
|
private:
|
|
CreateDialog *dialog;
|
|
CreateDialog *dialog;
|
|
Button *property;
|
|
Button *property;
|
|
@@ -146,7 +147,8 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyMember : public EditorProperty {
|
|
class EditorPropertyMember : public EditorProperty {
|
|
- GDCLASS(EditorPropertyMember, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyMember, EditorProperty);
|
|
|
|
+
|
|
public:
|
|
public:
|
|
enum Type {
|
|
enum Type {
|
|
MEMBER_METHOD_OF_VARIANT_TYPE, ///< a method of a type
|
|
MEMBER_METHOD_OF_VARIANT_TYPE, ///< a method of a type
|
|
@@ -179,7 +181,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyCheck : public EditorProperty {
|
|
class EditorPropertyCheck : public EditorProperty {
|
|
- GDCLASS(EditorPropertyCheck, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyCheck, EditorProperty);
|
|
CheckBox *checkbox;
|
|
CheckBox *checkbox;
|
|
|
|
|
|
void _checkbox_pressed();
|
|
void _checkbox_pressed();
|
|
@@ -193,7 +195,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyEnum : public EditorProperty {
|
|
class EditorPropertyEnum : public EditorProperty {
|
|
- GDCLASS(EditorPropertyEnum, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyEnum, EditorProperty);
|
|
OptionButton *options;
|
|
OptionButton *options;
|
|
|
|
|
|
void _option_selected(int p_which);
|
|
void _option_selected(int p_which);
|
|
@@ -209,7 +211,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyFlags : public EditorProperty {
|
|
class EditorPropertyFlags : public EditorProperty {
|
|
- GDCLASS(EditorPropertyFlags, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyFlags, EditorProperty);
|
|
VBoxContainer *vbox;
|
|
VBoxContainer *vbox;
|
|
Vector<CheckBox *> flags;
|
|
Vector<CheckBox *> flags;
|
|
Vector<int> flag_indices;
|
|
Vector<int> flag_indices;
|
|
@@ -228,7 +230,8 @@ public:
|
|
class EditorPropertyLayersGrid;
|
|
class EditorPropertyLayersGrid;
|
|
|
|
|
|
class EditorPropertyLayers : public EditorProperty {
|
|
class EditorPropertyLayers : public EditorProperty {
|
|
- GDCLASS(EditorPropertyLayers, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyLayers, EditorProperty);
|
|
|
|
+
|
|
public:
|
|
public:
|
|
enum LayerType {
|
|
enum LayerType {
|
|
LAYER_PHYSICS_2D,
|
|
LAYER_PHYSICS_2D,
|
|
@@ -257,7 +260,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyInteger : public EditorProperty {
|
|
class EditorPropertyInteger : public EditorProperty {
|
|
- GDCLASS(EditorPropertyInteger, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyInteger, EditorProperty);
|
|
EditorSpinSlider *spin;
|
|
EditorSpinSlider *spin;
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val);
|
|
void _value_changed(double p_val);
|
|
@@ -272,7 +275,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyObjectID : public EditorProperty {
|
|
class EditorPropertyObjectID : public EditorProperty {
|
|
- GDCLASS(EditorPropertyObjectID, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyObjectID, EditorProperty);
|
|
Button *edit;
|
|
Button *edit;
|
|
String base_type;
|
|
String base_type;
|
|
void _edit_pressed();
|
|
void _edit_pressed();
|
|
@@ -287,7 +290,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyFloat : public EditorProperty {
|
|
class EditorPropertyFloat : public EditorProperty {
|
|
- GDCLASS(EditorPropertyFloat, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyFloat, EditorProperty);
|
|
EditorSpinSlider *spin;
|
|
EditorSpinSlider *spin;
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val);
|
|
void _value_changed(double p_val);
|
|
@@ -302,7 +305,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyEasing : public EditorProperty {
|
|
class EditorPropertyEasing : public EditorProperty {
|
|
- GDCLASS(EditorPropertyEasing, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyEasing, EditorProperty);
|
|
Control *easing_draw;
|
|
Control *easing_draw;
|
|
PopupMenu *preset;
|
|
PopupMenu *preset;
|
|
bool full;
|
|
bool full;
|
|
@@ -335,7 +338,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyVector2 : public EditorProperty {
|
|
class EditorPropertyVector2 : public EditorProperty {
|
|
- GDCLASS(EditorPropertyVector2, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyVector2, EditorProperty);
|
|
EditorSpinSlider *spin[2];
|
|
EditorSpinSlider *spin[2];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -351,7 +354,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyRect2 : public EditorProperty {
|
|
class EditorPropertyRect2 : public EditorProperty {
|
|
- GDCLASS(EditorPropertyRect2, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyRect2, EditorProperty);
|
|
EditorSpinSlider *spin[4];
|
|
EditorSpinSlider *spin[4];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -367,7 +370,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyVector3 : public EditorProperty {
|
|
class EditorPropertyVector3 : public EditorProperty {
|
|
- GDCLASS(EditorPropertyVector3, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyVector3, EditorProperty);
|
|
EditorSpinSlider *spin[3];
|
|
EditorSpinSlider *spin[3];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -383,7 +386,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyPlane : public EditorProperty {
|
|
class EditorPropertyPlane : public EditorProperty {
|
|
- GDCLASS(EditorPropertyPlane, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyPlane, EditorProperty);
|
|
EditorSpinSlider *spin[4];
|
|
EditorSpinSlider *spin[4];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -399,7 +402,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyQuat : public EditorProperty {
|
|
class EditorPropertyQuat : public EditorProperty {
|
|
- GDCLASS(EditorPropertyQuat, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyQuat, EditorProperty);
|
|
EditorSpinSlider *spin[4];
|
|
EditorSpinSlider *spin[4];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -415,7 +418,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyAABB : public EditorProperty {
|
|
class EditorPropertyAABB : public EditorProperty {
|
|
- GDCLASS(EditorPropertyAABB, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyAABB, EditorProperty);
|
|
EditorSpinSlider *spin[6];
|
|
EditorSpinSlider *spin[6];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -431,7 +434,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyTransform2D : public EditorProperty {
|
|
class EditorPropertyTransform2D : public EditorProperty {
|
|
- GDCLASS(EditorPropertyTransform2D, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyTransform2D, EditorProperty);
|
|
EditorSpinSlider *spin[6];
|
|
EditorSpinSlider *spin[6];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -447,7 +450,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyBasis : public EditorProperty {
|
|
class EditorPropertyBasis : public EditorProperty {
|
|
- GDCLASS(EditorPropertyBasis, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyBasis, EditorProperty);
|
|
EditorSpinSlider *spin[9];
|
|
EditorSpinSlider *spin[9];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -463,7 +466,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyTransform : public EditorProperty {
|
|
class EditorPropertyTransform : public EditorProperty {
|
|
- GDCLASS(EditorPropertyTransform, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyTransform, EditorProperty);
|
|
EditorSpinSlider *spin[12];
|
|
EditorSpinSlider *spin[12];
|
|
bool setting;
|
|
bool setting;
|
|
void _value_changed(double p_val, const String &p_name);
|
|
void _value_changed(double p_val, const String &p_name);
|
|
@@ -479,7 +482,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyColor : public EditorProperty {
|
|
class EditorPropertyColor : public EditorProperty {
|
|
- GDCLASS(EditorPropertyColor, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyColor, EditorProperty);
|
|
ColorPickerButton *picker;
|
|
ColorPickerButton *picker;
|
|
void _color_changed(const Color &p_color);
|
|
void _color_changed(const Color &p_color);
|
|
void _popup_closed();
|
|
void _popup_closed();
|
|
@@ -494,7 +497,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyNodePath : public EditorProperty {
|
|
class EditorPropertyNodePath : public EditorProperty {
|
|
- GDCLASS(EditorPropertyNodePath, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyNodePath, EditorProperty);
|
|
Button *assign;
|
|
Button *assign;
|
|
Button *clear;
|
|
Button *clear;
|
|
SceneTreeDialog *scene_tree;
|
|
SceneTreeDialog *scene_tree;
|
|
@@ -517,7 +520,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyRID : public EditorProperty {
|
|
class EditorPropertyRID : public EditorProperty {
|
|
- GDCLASS(EditorPropertyRID, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyRID, EditorProperty);
|
|
Label *label;
|
|
Label *label;
|
|
|
|
|
|
public:
|
|
public:
|
|
@@ -526,7 +529,7 @@ public:
|
|
};
|
|
};
|
|
|
|
|
|
class EditorPropertyResource : public EditorProperty {
|
|
class EditorPropertyResource : public EditorProperty {
|
|
- GDCLASS(EditorPropertyResource, EditorProperty)
|
|
|
|
|
|
+ GDCLASS(EditorPropertyResource, EditorProperty);
|
|
|
|
|
|
enum MenuOption {
|
|
enum MenuOption {
|
|
|
|
|
|
@@ -605,7 +608,7 @@ public:
|
|
/// \brief The EditorInspectorDefaultPlugin class
|
|
/// \brief The EditorInspectorDefaultPlugin class
|
|
///
|
|
///
|
|
class EditorInspectorDefaultPlugin : public EditorInspectorPlugin {
|
|
class EditorInspectorDefaultPlugin : public EditorInspectorPlugin {
|
|
- GDCLASS(EditorInspectorDefaultPlugin, EditorInspectorPlugin)
|
|
|
|
|
|
+ GDCLASS(EditorInspectorDefaultPlugin, EditorInspectorPlugin);
|
|
|
|
|
|
public:
|
|
public:
|
|
virtual bool can_handle(Object *p_object);
|
|
virtual bool can_handle(Object *p_object);
|