Merge pull request #59867 from akien-mga/refactor-zero-initialize-all-pointers

This commit is contained in:
Rémi Verschelde 2022-04-04 21:24:27 +02:00 committed by GitHub
commit 1abb5ebf65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
258 changed files with 2398 additions and 2421 deletions

View File

@ -40,7 +40,7 @@ class Engine {
public: public:
struct Singleton { struct Singleton {
StringName name; StringName name;
Object *ptr; Object *ptr = nullptr;
StringName class_name; //used for binding generation hinting StringName class_name; //used for binding generation hinting
bool user_created = false; bool user_created = false;
Singleton(const StringName &p_name = StringName(), Object *p_ptr = nullptr, const StringName &p_class_name = StringName()); Singleton(const StringName &p_name = StringName(), Object *p_ptr = nullptr, const StringName &p_class_name = StringName());

View File

@ -447,7 +447,7 @@ public:
class Directory : public RefCounted { class Directory : public RefCounted {
GDCLASS(Directory, RefCounted); GDCLASS(Directory, RefCounted);
DirAccess *d; DirAccess *d = nullptr;
bool dir_open = false; bool dir_open = false;
bool include_navigational = false; bool include_navigational = false;

View File

@ -183,7 +183,7 @@ struct FileAccessRef {
operator bool() const { return f != nullptr; } operator bool() const { return f != nullptr; }
FileAccess *f; FileAccess *f = nullptr;
operator FileAccess *() { return f; } operator FileAccess *() { return f; }

View File

@ -64,7 +64,7 @@ public:
uint64_t offset; //if offset is ZERO, the file was ERASED uint64_t offset; //if offset is ZERO, the file was ERASED
uint64_t size; uint64_t size;
uint8_t md5[16]; uint8_t md5[16];
PackSource *src; PackSource *src = nullptr;
bool encrypted; bool encrypted;
}; };
@ -103,7 +103,7 @@ private:
Vector<PackSource *> sources; Vector<PackSource *> sources;
PackedDir *root; PackedDir *root = nullptr;
static PackedData *singleton; static PackedData *singleton;
bool disabled = false; bool disabled = false;
@ -150,7 +150,7 @@ class FileAccessPack : public FileAccess {
mutable bool eof; mutable bool eof;
uint64_t off; uint64_t off;
FileAccess *f; FileAccess *f = nullptr;
virtual Error _open(const String &p_path, int p_mode_flags); virtual Error _open(const String &p_path, int p_mode_flags);
virtual uint64_t _get_modified_time(const String &p_file) { return 0; } virtual uint64_t _get_modified_time(const String &p_file) { return 0; }
virtual uint32_t _get_unix_permissions(const String &p_file) { return 0; } virtual uint32_t _get_unix_permissions(const String &p_file) { return 0; }

View File

@ -62,7 +62,7 @@ public:
typedef int ResolverID; typedef int ResolverID;
private: private:
_IP_ResolverPrivate *resolver; _IP_ResolverPrivate *resolver = nullptr;
protected: protected:
static IP *singleton; static IP *singleton;

View File

@ -127,7 +127,7 @@ class ResourceFormatSaverBinaryInstance {
bool skip_editor; bool skip_editor;
bool big_endian; bool big_endian;
bool takeover_paths; bool takeover_paths;
FileAccess *f; FileAccess *f = nullptr;
String magic; String magic;
Set<RES> resource_set; Set<RES> resource_set;

View File

@ -46,7 +46,7 @@ public:
static String get_cache_file(); static String get_cache_file();
private: private:
void *crypto; // CryptoCore::RandomGenerator (avoid including crypto_core.h) void *crypto = nullptr; // CryptoCore::RandomGenerator (avoid including crypto_core.h)
Mutex mutex; Mutex mutex;
struct Cache { struct Cache {
CharString cs; CharString cs;

View File

@ -43,7 +43,7 @@ protected:
}; };
struct Peer { struct Peer {
PacketPeerUDP *peer; PacketPeerUDP *peer = nullptr;
IPAddress ip; IPAddress ip;
uint16_t port = 0; uint16_t port = 0;

View File

@ -763,19 +763,19 @@ private:
tree._extra[p_handle.id()].last_updated_tick = 0; tree._extra[p_handle.id()].last_updated_tick = 0;
} }
PairCallback pair_callback; PairCallback pair_callback = nullptr;
UnpairCallback unpair_callback; UnpairCallback unpair_callback = nullptr;
CheckPairCallback check_pair_callback; CheckPairCallback check_pair_callback = nullptr;
void *pair_callback_userdata; void *pair_callback_userdata = nullptr;
void *unpair_callback_userdata; void *unpair_callback_userdata = nullptr;
void *check_pair_callback_userdata; void *check_pair_callback_userdata = nullptr;
BVHTREE_CLASS tree; BVHTREE_CLASS tree;
// for collision pairing, // for collision pairing,
// maintain a list of all items moved etc on each frame / tick // maintain a list of all items moved etc on each frame / tick
LocalVector<BVHHandle, uint32_t, true> changed_items; LocalVector<BVHHandle, uint32_t, true> changed_items;
uint32_t _tick; uint32_t _tick = 1; // Start from 1 so items with 0 indicate never updated.
class BVHLockedFunction { class BVHLockedFunction {
public: public:
@ -801,23 +801,16 @@ private:
} }
private: private:
Mutex *_mutex; Mutex *_mutex = nullptr;
}; };
Mutex _mutex; Mutex _mutex;
// local toggle for turning on and off thread safety in project settings // local toggle for turning on and off thread safety in project settings
bool _thread_safe; bool _thread_safe = BVH_THREAD_SAFE;
public: public:
BVH_Manager() { BVH_Manager() {}
_tick = 1; // start from 1 so items with 0 indicate never updated
pair_callback = nullptr;
unpair_callback = nullptr;
pair_callback_userdata = nullptr;
unpair_callback_userdata = nullptr;
_thread_safe = BVH_THREAD_SAFE;
}
}; };
#undef BVHTREE_CLASS #undef BVHTREE_CLASS

View File

@ -183,7 +183,7 @@ private:
Node *parent = nullptr; Node *parent = nullptr;
union { union {
Node *childs[2]; Node *childs[2];
void *data; void *data = nullptr;
}; };
_FORCE_INLINE_ bool is_leaf() const { return childs[1] == nullptr; } _FORCE_INLINE_ bool is_leaf() const { return childs[1] == nullptr; }
@ -215,10 +215,7 @@ private:
return axis.dot(volume.get_center() - org) <= 0; return axis.dot(volume.get_center() - org) <= 0;
} }
Node() { Node() {}
childs[0] = nullptr;
childs[1] = nullptr;
}
}; };
PagedAllocator<Node> node_allocator; PagedAllocator<Node> node_allocator;

View File

@ -147,7 +147,7 @@ private:
bool is_op = false; bool is_op = false;
union { union {
Variant::Operator op; Variant::Operator op;
ENode *node; ENode *node = nullptr;
}; };
}; };

View File

@ -134,7 +134,7 @@ private:
List<PairData *, AL> pair_list; List<PairData *, AL> pair_list;
struct OctantOwner { struct OctantOwner {
Octant *octant; Octant *octant = nullptr;
typename List<Element *, AL>::Element *E; typename List<Element *, AL>::Element *E;
}; // an element can be in max 8 octants }; // an element can be in max 8 octants
@ -147,7 +147,7 @@ private:
int refcount; int refcount;
bool intersect; bool intersect;
Element *A, *B; Element *A, *B;
void *ud; void *ud = nullptr;
typename List<PairData *, AL>::Element *eA, *eB; typename List<PairData *, AL>::Element *eA, *eB;
}; };
@ -156,18 +156,18 @@ private:
ElementMap element_map; ElementMap element_map;
PairMap pair_map; PairMap pair_map;
PairCallback pair_callback; PairCallback pair_callback = nullptr;
UnpairCallback unpair_callback; UnpairCallback unpair_callback = nullptr;
void *pair_callback_userdata; void *pair_callback_userdata = nullptr;
void *unpair_callback_userdata; void *unpair_callback_userdata = nullptr;
OctreeElementID last_element_id; OctreeElementID last_element_id = 1;
uint64_t pass; uint64_t pass = 1;
real_t unit_size; real_t unit_size = 1.0;
Octant *root; Octant *root = nullptr;
int octant_count; int octant_count = 0;
int pair_count; int pair_count = 0;
_FORCE_INLINE_ void _pair_check(PairData *p_pair) { _FORCE_INLINE_ void _pair_check(PairData *p_pair) {
bool intersect = p_pair->A->aabb.intersects_inclusive(p_pair->B->aabb); bool intersect = p_pair->A->aabb.intersects_inclusive(p_pair->B->aabb);
@ -294,7 +294,7 @@ private:
const Vector3 *points; const Vector3 *points;
int point_count; int point_count;
T **result_array; T **result_array;
int *result_idx; int *result_idx = nullptr;
int result_max; int result_max;
uint32_t mask; uint32_t mask;
}; };
@ -1265,18 +1265,7 @@ void Octree<T, use_pairs, AL>::set_unpair_callback(UnpairCallback p_callback, vo
template <class T, bool use_pairs, class AL> template <class T, bool use_pairs, class AL>
Octree<T, use_pairs, AL>::Octree(real_t p_unit_size) { Octree<T, use_pairs, AL>::Octree(real_t p_unit_size) {
last_element_id = 1;
pass = 1;
unit_size = p_unit_size; unit_size = p_unit_size;
root = nullptr;
octant_count = 0;
pair_count = 0;
pair_callback = nullptr;
unpair_callback = nullptr;
pair_callback_userdata = nullptr;
unpair_callback_userdata = nullptr;
} }
#endif // OCTREE_H #endif // OCTREE_H

View File

@ -38,7 +38,7 @@
#include "core/variant/callable.h" #include "core/variant/callable.h"
class CallableCustomMethodPointerBase : public CallableCustom { class CallableCustomMethodPointerBase : public CallableCustom {
uint32_t *comp_ptr; uint32_t *comp_ptr = nullptr;
uint32_t comp_size; uint32_t comp_size;
uint32_t h; uint32_t h;
#ifdef DEBUG_METHODS_ENABLED #ifdef DEBUG_METHODS_ENABLED

View File

@ -85,8 +85,8 @@ public:
int index; int index;
StringName setter; StringName setter;
StringName getter; StringName getter;
MethodBind *_setptr; MethodBind *_setptr = nullptr;
MethodBind *_getptr; MethodBind *_getptr = nullptr;
Variant::Type type; Variant::Type type;
}; };

View File

@ -62,10 +62,10 @@ class MessageQueue {
}; };
}; };
uint8_t *buffer; uint8_t *buffer = nullptr;
uint32_t buffer_end = 0; uint32_t buffer_end = 0;
uint32_t buffer_max_used = 0; uint32_t buffer_max_used = 0;
uint32_t buffer_size; uint32_t buffer_size = 0;
void _call_function(const Callable &p_callable, const Variant *p_args, int p_argcount, bool p_show_error); void _call_function(const Callable &p_callable, const Variant *p_args, int p_argcount, bool p_show_error);

View File

@ -538,8 +538,8 @@ private:
std::mutex _instance_binding_mutex; std::mutex _instance_binding_mutex;
struct InstanceBinding { struct InstanceBinding {
void *binding; void *binding = nullptr;
void *token; void *token = nullptr;
GDNativeInstanceBindingFreeCallback free_callback = nullptr; GDNativeInstanceBindingFreeCallback free_callback = nullptr;
GDNativeInstanceBindingReferenceCallback reference_callback = nullptr; GDNativeInstanceBindingReferenceCallback reference_callback = nullptr;
}; };
@ -849,7 +849,7 @@ class ObjectDB {
uint64_t validator : OBJECTDB_VALIDATOR_BITS; uint64_t validator : OBJECTDB_VALIDATOR_BITS;
uint64_t next_free : OBJECTDB_SLOT_MAX_COUNT_BITS; uint64_t next_free : OBJECTDB_SLOT_MAX_COUNT_BITS;
uint64_t is_ref_counted : 1; uint64_t is_ref_counted : 1;
Object *object; Object *object = nullptr;
}; };
static SpinLock spin_lock; static SpinLock spin_lock;

View File

@ -430,11 +430,11 @@ public:
extern uint8_t script_encryption_key[32]; extern uint8_t script_encryption_key[32];
class PlaceHolderScriptInstance : public ScriptInstance { class PlaceHolderScriptInstance : public ScriptInstance {
Object *owner; Object *owner = nullptr;
List<PropertyInfo> properties; List<PropertyInfo> properties;
Map<StringName, Variant> values; Map<StringName, Variant> values;
Map<StringName, Variant> constants; Map<StringName, Variant> constants;
ScriptLanguage *language; ScriptLanguage *language = nullptr;
Ref<Script> script; Ref<Script> script;
public: public:

View File

@ -186,9 +186,9 @@ void memdelete_arr(T *p_class) {
struct _GlobalNil { struct _GlobalNil {
int color = 1; int color = 1;
_GlobalNil *right; _GlobalNil *right = nullptr;
_GlobalNil *left; _GlobalNil *left = nullptr;
_GlobalNil *parent; _GlobalNil *parent = nullptr;
_GlobalNil(); _GlobalNil();
}; };

View File

@ -60,8 +60,6 @@ class OS {
bool _stdout_enabled = true; bool _stdout_enabled = true;
bool _stderr_enabled = true; bool _stderr_enabled = true;
char *last_error;
CompositeLogger *_logger = nullptr; CompositeLogger *_logger = nullptr;
bool restart_on_exit = false; bool restart_on_exit = false;

View File

@ -75,13 +75,13 @@ private:
typedef int EntryArrayPos; typedef int EntryArrayPos;
typedef int EntryIndicesPos; typedef int EntryIndicesPos;
Entry *entry_array; Entry *entry_array = nullptr;
int *entry_indices; int *entry_indices = nullptr;
int entry_max; int entry_max;
int entry_count; int entry_count;
uint8_t *pool; uint8_t *pool = nullptr;
void *mem_ptr; void *mem_ptr = nullptr;
int pool_size; int pool_size;
int free_mem; int free_mem;

View File

@ -70,7 +70,7 @@ class StringName {
_Data *_data = nullptr; _Data *_data = nullptr;
union _HashUnion { union _HashUnion {
_Data *ptr; _Data *ptr = nullptr;
uint32_t hash; uint32_t hash;
}; };

View File

@ -311,7 +311,7 @@ class CommandQueueMT {
}; };
struct SyncCommand : public CommandBase { struct SyncCommand : public CommandBase {
SyncSemaphore *sync_sem; SyncSemaphore *sync_sem = nullptr;
virtual void post() { virtual void post() {
sync_sem->sem.post(); sync_sem->sem.post();

View File

@ -178,7 +178,7 @@ public:
private: private:
struct _Data { struct _Data {
Element *_root = nullptr; Element *_root = nullptr;
Element *_nil; Element *_nil = nullptr;
int size_cache = 0; int size_cache = 0;
_FORCE_INLINE_ _Data() { _FORCE_INLINE_ _Data() {
@ -344,7 +344,7 @@ private:
void _insert_rb_fix(Element *p_new_node) { void _insert_rb_fix(Element *p_new_node) {
Element *node = p_new_node; Element *node = p_new_node;
Element *nparent = node->parent; Element *nparent = node->parent;
Element *ngrand_parent; Element *ngrand_parent = nullptr;
while (nparent->color == RED) { while (nparent->color == RED) {
ngrand_parent = nparent->parent; ngrand_parent = nparent->parent;
@ -500,7 +500,7 @@ private:
Element *rp = ((p_node->left == _data._nil) || (p_node->right == _data._nil)) ? p_node : p_node->_next; Element *rp = ((p_node->left == _data._nil) || (p_node->right == _data._nil)) ? p_node : p_node->_next;
Element *node = (rp->left == _data._nil) ? rp->right : rp->left; Element *node = (rp->left == _data._nil) ? rp->right : rp->left;
Element *sibling; Element *sibling = nullptr;
if (rp == rp->parent->left) { if (rp == rp->parent->left) {
rp->parent->left = node; rp->parent->left = node;
sibling = rp->parent->right; sibling = rp->parent->right;

View File

@ -306,7 +306,7 @@ public:
bool valid; bool valid;
const TKey *key; const TKey *key;
TValue *value; TValue *value = nullptr;
private: private:
uint32_t pos; uint32_t pos;

View File

@ -75,8 +75,8 @@ public:
class Iterator { class Iterator {
friend class SafeList; friend class SafeList;
SafeListNode *cursor; SafeListNode *cursor = nullptr;
SafeList *list; SafeList *list = nullptr;
Iterator(SafeListNode *p_cursor, SafeList *p_list) : Iterator(SafeListNode *p_cursor, SafeList *p_list) :
cursor(p_cursor), list(p_list) { cursor(p_cursor), list(p_list) {
@ -253,8 +253,8 @@ public:
class Iterator { class Iterator {
friend class SafeList; friend class SafeList;
SafeListNode *cursor; SafeListNode *cursor = nullptr;
SafeList *list; SafeList *list = nullptr;
public: public:
Iterator(SafeListNode *p_cursor, SafeList *p_list) : Iterator(SafeListNode *p_cursor, SafeList *p_list) :

View File

@ -108,7 +108,7 @@ public:
private: private:
List *_root = nullptr; List *_root = nullptr;
T *_self; T *_self = nullptr;
SelfList<T> *_next = nullptr; SelfList<T> *_next = nullptr;
SelfList<T> *_prev = nullptr; SelfList<T> *_prev = nullptr;

View File

@ -328,7 +328,7 @@ private:
void _insert_rb_fix(Element *p_new_node) { void _insert_rb_fix(Element *p_new_node) {
Element *node = p_new_node; Element *node = p_new_node;
Element *nparent = node->parent; Element *nparent = node->parent;
Element *ngrand_parent; Element *ngrand_parent = nullptr;
while (nparent->color == RED) { while (nparent->color == RED) {
ngrand_parent = nparent->parent; ngrand_parent = nparent->parent;
@ -482,7 +482,7 @@ private:
Element *rp = ((p_node->left == _data._nil) || (p_node->right == _data._nil)) ? p_node : p_node->_next; Element *rp = ((p_node->left == _data._nil) || (p_node->right == _data._nil)) ? p_node : p_node->_next;
Element *node = (rp->left == _data._nil) ? rp->right : rp->left; Element *node = (rp->left == _data._nil) ? rp->right : rp->left;
Element *sibling; Element *sibling = nullptr;
if (rp == rp->parent->left) { if (rp == rp->parent->left) {
rp->parent->left = node; rp->parent->left = node;
sibling = rp->parent->right; sibling = rp->parent->right;

View File

@ -68,7 +68,7 @@ class ThreadWorkPool {
Semaphore start; Semaphore start;
Semaphore completed; Semaphore completed;
std::atomic<bool> exit; std::atomic<bool> exit;
BaseWork *work; BaseWork *work = nullptr;
}; };
ThreadData *threads = nullptr; ThreadData *threads = nullptr;

View File

@ -169,7 +169,7 @@ public:
LocalVector<GLsync> fences; LocalVector<GLsync> fences;
uint32_t current_buffer = 0; uint32_t current_buffer = 0;
InstanceData *instance_data_array; InstanceData *instance_data_array = nullptr;
bool canvas_texscreen_used; bool canvas_texscreen_used;
CanvasShaderGLES3 canvas_shader; CanvasShaderGLES3 canvas_shader;
RID canvas_shader_current_version; RID canvas_shader_current_version;
@ -198,7 +198,7 @@ public:
bool end_batch = false; bool end_batch = false;
Transform3D vp; Transform3D vp;
Light *using_light; Light *using_light = nullptr;
bool using_shadow; bool using_shadow;
bool using_transparent_rt; bool using_transparent_rt;
@ -220,9 +220,9 @@ public:
typedef void Texture; typedef void Texture;
RasterizerSceneGLES3 *scene_render; RasterizerSceneGLES3 *scene_render = nullptr;
RasterizerStorageGLES3 *storage; RasterizerStorageGLES3 *storage = nullptr;
void _set_uniforms(); void _set_uniforms();

View File

@ -66,7 +66,7 @@ struct Shader {
RID self; RID self;
RS::ShaderMode mode; RS::ShaderMode mode;
ShaderGLES3 *shader; ShaderGLES3 *shader = nullptr;
String code; String code;
SelfList<Material>::List materials; SelfList<Material>::List materials;
@ -185,7 +185,7 @@ struct Shader {
struct Material { struct Material {
RID self; RID self;
Shader *shader; Shader *shader = nullptr;
Map<StringName, Variant> params; Map<StringName, Variant> params;
SelfList<Material> list; SelfList<Material> list;
SelfList<Material> dirty_list; SelfList<Material> dirty_list;

View File

@ -93,7 +93,7 @@ enum OpenGLTextureFlags {
struct Texture { struct Texture {
RID self; RID self;
Texture *proxy; Texture *proxy = nullptr;
Set<Texture *> proxy_owners; Set<Texture *> proxy_owners;
String path; String path;
@ -125,20 +125,20 @@ struct Texture {
uint16_t stored_cube_sides; uint16_t stored_cube_sides;
RenderTarget *render_target; RenderTarget *render_target = nullptr;
Vector<Ref<Image>> images; Vector<Ref<Image>> images;
bool redraw_if_visible; bool redraw_if_visible;
RS::TextureDetectCallback detect_3d; RS::TextureDetectCallback detect_3d;
void *detect_3d_ud; void *detect_3d_ud = nullptr;
RS::TextureDetectCallback detect_srgb; RS::TextureDetectCallback detect_srgb;
void *detect_srgb_ud; void *detect_srgb_ud = nullptr;
RS::TextureDetectCallback detect_normal; RS::TextureDetectCallback detect_normal;
void *detect_normal_ud; void *detect_normal_ud = nullptr;
CanvasTexture *canvas_texture = nullptr; CanvasTexture *canvas_texture = nullptr;

View File

@ -41,7 +41,7 @@
#include <unistd.h> #include <unistd.h>
class DirAccessUnix : public DirAccess { class DirAccessUnix : public DirAccess {
DIR *dir_stream; DIR *dir_stream = nullptr;
static DirAccess *create_fs(); static DirAccess *create_fs();

View File

@ -63,24 +63,24 @@ private:
Ref<InputEvent> event = Ref<InputEvent>(); Ref<InputEvent> event = Ref<InputEvent>();
TabContainer *tab_container; TabContainer *tab_container = nullptr;
// Listening for input // Listening for input
Label *event_as_text; Label *event_as_text = nullptr;
ColorRect *mouse_detection_rect; ColorRect *mouse_detection_rect = nullptr;
// List of All Key/Mouse/Joypad input options. // List of All Key/Mouse/Joypad input options.
int allowed_input_types; int allowed_input_types;
Tree *input_list_tree; Tree *input_list_tree = nullptr;
LineEdit *input_list_search; LineEdit *input_list_search = nullptr;
// Additional Options, shown depending on event selected // Additional Options, shown depending on event selected
VBoxContainer *additional_options_container; VBoxContainer *additional_options_container = nullptr;
HBoxContainer *device_container; HBoxContainer *device_container = nullptr;
OptionButton *device_id_option; OptionButton *device_id_option = nullptr;
HBoxContainer *mod_container; // Contains the subcontainer and the store command checkbox. HBoxContainer *mod_container = nullptr; // Contains the subcontainer and the store command checkbox.
enum ModCheckbox { enum ModCheckbox {
MOD_ALT, MOD_ALT,
@ -93,9 +93,9 @@ private:
String mods[MOD_MAX] = { "Alt", "Shift", "Command", "Ctrl", "Metakey" }; String mods[MOD_MAX] = { "Alt", "Shift", "Command", "Ctrl", "Metakey" };
CheckBox *mod_checkboxes[MOD_MAX]; CheckBox *mod_checkboxes[MOD_MAX];
CheckBox *store_command_checkbox; CheckBox *store_command_checkbox = nullptr;
CheckBox *physical_key_checkbox; CheckBox *physical_key_checkbox = nullptr;
void _set_event(const Ref<InputEvent> &p_event); void _set_event(const Ref<InputEvent> &p_event);
@ -149,7 +149,7 @@ private:
}; };
Vector<ActionInfo> actions_cache; Vector<ActionInfo> actions_cache;
Tree *action_tree; Tree *action_tree = nullptr;
// Storing which action/event is currently being edited in the InputEventConfigurationDialog. // Storing which action/event is currently being edited in the InputEventConfigurationDialog.
@ -159,17 +159,17 @@ private:
// Popups // Popups
InputEventConfigurationDialog *event_config_dialog; InputEventConfigurationDialog *event_config_dialog = nullptr;
AcceptDialog *message; AcceptDialog *message = nullptr;
// Filtering and Adding actions // Filtering and Adding actions
bool show_builtin_actions = false; bool show_builtin_actions = false;
CheckButton *show_builtin_actions_checkbutton; CheckButton *show_builtin_actions_checkbutton = nullptr;
LineEdit *action_list_search; LineEdit *action_list_search = nullptr;
HBoxContainer *add_hbox; HBoxContainer *add_hbox = nullptr;
LineEdit *add_edit; LineEdit *add_edit = nullptr;
void _event_config_confirmed(); void _event_config_confirmed();

View File

@ -49,7 +49,7 @@ class AnimationBezierTrackEdit : public Control {
AnimationTimelineEdit *timeline = nullptr; AnimationTimelineEdit *timeline = nullptr;
UndoRedo *undo_redo = nullptr; UndoRedo *undo_redo = nullptr;
Node *root = nullptr; Node *root = nullptr;
Control *play_position; //separate control used to draw so updates for only position changed are much faster Control *play_position = nullptr; //separate control used to draw so updates for only position changed are much faster
float play_position_pos = 0; float play_position_pos = 0;
Ref<Animation> animation; Ref<Animation> animation;
@ -130,7 +130,7 @@ class AnimationBezierTrackEdit : public Control {
float transition = 0; float transition = 0;
}; };
AnimationTrackEditor *editor; AnimationTrackEditor *editor = nullptr;
struct EditPoint { struct EditPoint {
Rect2 point_rect; Rect2 point_rect;

View File

@ -54,27 +54,27 @@ class AnimationTimelineEdit : public Range {
GDCLASS(AnimationTimelineEdit, Range); GDCLASS(AnimationTimelineEdit, Range);
Ref<Animation> animation; Ref<Animation> animation;
AnimationTrackEdit *track_edit; AnimationTrackEdit *track_edit = nullptr;
int name_limit; int name_limit;
Range *zoom; Range *zoom = nullptr;
Range *h_scroll; Range *h_scroll = nullptr;
float play_position_pos; float play_position_pos;
HBoxContainer *len_hb; HBoxContainer *len_hb = nullptr;
EditorSpinSlider *length; EditorSpinSlider *length = nullptr;
Button *loop; Button *loop = nullptr;
TextureRect *time_icon; TextureRect *time_icon = nullptr;
MenuButton *add_track; MenuButton *add_track = nullptr;
Control *play_position; //separate control used to draw so updates for only position changed are much faster Control *play_position = nullptr; //separate control used to draw so updates for only position changed are much faster
HScrollBar *hscroll; HScrollBar *hscroll = nullptr;
void _zoom_changed(double); void _zoom_changed(double);
void _anim_length_changed(double p_new_len); void _anim_length_changed(double p_new_len);
void _anim_loop_pressed(); void _anim_loop_pressed();
void _play_position_draw(); void _play_position_draw();
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
Rect2 hsize_rect; Rect2 hsize_rect;
bool editing = false; bool editing = false;
@ -146,12 +146,12 @@ class AnimationTrackEdit : public Control {
MENU_KEY_ADD_RESET, MENU_KEY_ADD_RESET,
MENU_KEY_DELETE MENU_KEY_DELETE
}; };
AnimationTimelineEdit *timeline; AnimationTimelineEdit *timeline = nullptr;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
Popup *path_popup; Popup *path_popup = nullptr;
LineEdit *path; LineEdit *path = nullptr;
Node *root; Node *root = nullptr;
Control *play_position; //separate control used to draw so updates for only position changed are much faster Control *play_position = nullptr; //separate control used to draw so updates for only position changed are much faster
float play_position_pos; float play_position_pos;
NodePath node_path; NodePath node_path;
@ -169,7 +169,7 @@ class AnimationTrackEdit : public Control {
Ref<Texture2D> type_icon; Ref<Texture2D> type_icon;
Ref<Texture2D> selected_icon; Ref<Texture2D> selected_icon;
PopupMenu *menu; PopupMenu *menu = nullptr;
bool clicking_on_name = false; bool clicking_on_name = false;
@ -194,7 +194,7 @@ class AnimationTrackEdit : public Control {
float moving_selection_from_ofs; float moving_selection_from_ofs;
bool in_group = false; bool in_group = false;
AnimationTrackEditor *editor; AnimationTrackEditor *editor = nullptr;
protected: protected:
static void _bind_methods(); static void _bind_methods();
@ -285,27 +285,27 @@ class AnimationTrackEditor : public VBoxContainer {
GDCLASS(AnimationTrackEditor, VBoxContainer); GDCLASS(AnimationTrackEditor, VBoxContainer);
Ref<Animation> animation; Ref<Animation> animation;
Node *root; Node *root = nullptr;
MenuButton *edit; MenuButton *edit = nullptr;
PanelContainer *main_panel; PanelContainer *main_panel = nullptr;
HScrollBar *hscroll; HScrollBar *hscroll = nullptr;
ScrollContainer *scroll; ScrollContainer *scroll = nullptr;
VBoxContainer *track_vbox; VBoxContainer *track_vbox = nullptr;
AnimationBezierTrackEdit *bezier_edit; AnimationBezierTrackEdit *bezier_edit = nullptr;
Label *info_message; Label *info_message = nullptr;
AnimationTimelineEdit *timeline; AnimationTimelineEdit *timeline = nullptr;
HSlider *zoom; HSlider *zoom = nullptr;
EditorSpinSlider *step; EditorSpinSlider *step = nullptr;
TextureRect *zoom_icon; TextureRect *zoom_icon = nullptr;
Button *snap; Button *snap = nullptr;
Button *bezier_edit_icon; Button *bezier_edit_icon = nullptr;
OptionButton *snap_mode; OptionButton *snap_mode = nullptr;
Button *imported_anim_warning; Button *imported_anim_warning = nullptr;
void _show_imported_anim_warning(); void _show_imported_anim_warning();
void _snap_mode_changed(int p_mode); void _snap_mode_changed(int p_mode);
@ -323,7 +323,7 @@ class AnimationTrackEditor : public VBoxContainer {
void _track_remove_request(int p_track); void _track_remove_request(int p_track);
void _track_grab_focus(int p_track); void _track_grab_focus(int p_track);
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
void _update_scroll(double); void _update_scroll(double);
void _update_step(double p_new_step); void _update_step(double p_new_step);
@ -336,9 +336,9 @@ class AnimationTrackEditor : public VBoxContainer {
void _update_step_spinbox(); void _update_step_spinbox();
PropertySelector *prop_selector; PropertySelector *prop_selector = nullptr;
PropertySelector *method_selector; PropertySelector *method_selector = nullptr;
SceneTreeDialog *pick_track; SceneTreeDialog *pick_track = nullptr;
int adding_track_type; int adding_track_type;
NodePath adding_track_path; NodePath adding_track_path;
@ -353,10 +353,10 @@ class AnimationTrackEditor : public VBoxContainer {
bool advance = false; bool advance = false;
}; /* insert_data;*/ }; /* insert_data;*/
Label *insert_confirm_text; Label *insert_confirm_text = nullptr;
CheckBox *insert_confirm_bezier; CheckBox *insert_confirm_bezier = nullptr;
CheckBox *insert_confirm_reset; CheckBox *insert_confirm_reset = nullptr;
ConfirmationDialog *insert_confirm; ConfirmationDialog *insert_confirm = nullptr;
bool insert_queue = false; bool insert_queue = false;
List<InsertData> insert_data; List<InsertData> insert_data;
@ -419,13 +419,13 @@ class AnimationTrackEditor : public VBoxContainer {
void _move_selection_commit(); void _move_selection_commit();
void _move_selection_cancel(); void _move_selection_cancel();
AnimationTrackKeyEdit *key_edit; AnimationTrackKeyEdit *key_edit = nullptr;
AnimationMultiTrackKeyEdit *multi_key_edit; AnimationMultiTrackKeyEdit *multi_key_edit = nullptr;
void _update_key_edit(); void _update_key_edit();
void _clear_key_edit(); void _clear_key_edit();
Control *box_selection; Control *box_selection = nullptr;
void _box_selection_draw(); void _box_selection_draw();
bool box_selecting = false; bool box_selecting = false;
Vector2 box_selecting_from; Vector2 box_selecting_from;
@ -440,18 +440,18 @@ class AnimationTrackEditor : public VBoxContainer {
////////////// edit menu stuff ////////////// edit menu stuff
ConfirmationDialog *optimize_dialog; ConfirmationDialog *optimize_dialog = nullptr;
SpinBox *optimize_linear_error; SpinBox *optimize_linear_error = nullptr;
SpinBox *optimize_angular_error; SpinBox *optimize_angular_error = nullptr;
SpinBox *optimize_max_angle; SpinBox *optimize_max_angle = nullptr;
ConfirmationDialog *cleanup_dialog; ConfirmationDialog *cleanup_dialog = nullptr;
CheckBox *cleanup_keys; CheckBox *cleanup_keys = nullptr;
CheckBox *cleanup_tracks; CheckBox *cleanup_tracks = nullptr;
CheckBox *cleanup_all; CheckBox *cleanup_all = nullptr;
ConfirmationDialog *scale_dialog; ConfirmationDialog *scale_dialog = nullptr;
SpinBox *scale; SpinBox *scale = nullptr;
void _select_all_tracks_for_copy(); void _select_all_tracks_for_copy();
@ -464,13 +464,13 @@ class AnimationTrackEditor : public VBoxContainer {
void _anim_duplicate_keys(bool transpose); void _anim_duplicate_keys(bool transpose);
void _view_group_toggle(); void _view_group_toggle();
Button *view_group; Button *view_group = nullptr;
Button *selected_filter; Button *selected_filter = nullptr;
void _selection_changed(); void _selection_changed();
ConfirmationDialog *track_copy_dialog; ConfirmationDialog *track_copy_dialog = nullptr;
Tree *track_copy_select; Tree *track_copy_select = nullptr;
struct TrackClipboard { struct TrackClipboard {
NodePath full_path; NodePath full_path;

View File

@ -43,10 +43,10 @@
class GotoLineDialog : public ConfirmationDialog { class GotoLineDialog : public ConfirmationDialog {
GDCLASS(GotoLineDialog, ConfirmationDialog); GDCLASS(GotoLineDialog, ConfirmationDialog);
Label *line_label; Label *line_label = nullptr;
LineEdit *line; LineEdit *line = nullptr;
CodeEdit *text_editor; CodeEdit *text_editor = nullptr;
virtual void ok_pressed() override; virtual void ok_pressed() override;
@ -62,25 +62,25 @@ class CodeTextEditor;
class FindReplaceBar : public HBoxContainer { class FindReplaceBar : public HBoxContainer {
GDCLASS(FindReplaceBar, HBoxContainer); GDCLASS(FindReplaceBar, HBoxContainer);
LineEdit *search_text; LineEdit *search_text = nullptr;
Label *matches_label; Label *matches_label = nullptr;
Button *find_prev; Button *find_prev = nullptr;
Button *find_next; Button *find_next = nullptr;
CheckBox *case_sensitive; CheckBox *case_sensitive = nullptr;
CheckBox *whole_words; CheckBox *whole_words = nullptr;
TextureButton *hide_button; TextureButton *hide_button = nullptr;
LineEdit *replace_text; LineEdit *replace_text = nullptr;
Button *replace; Button *replace = nullptr;
Button *replace_all; Button *replace_all = nullptr;
CheckBox *selection_only; CheckBox *selection_only = nullptr;
VBoxContainer *vbc_lineedit; VBoxContainer *vbc_lineedit = nullptr;
HBoxContainer *hbc_button_replace; HBoxContainer *hbc_button_replace = nullptr;
HBoxContainer *hbc_option_replace; HBoxContainer *hbc_option_replace = nullptr;
CodeTextEditor *base_text_editor = nullptr; CodeTextEditor *base_text_editor = nullptr;
CodeEdit *text_editor; CodeEdit *text_editor = nullptr;
int result_line; int result_line;
int result_col; int result_col;
@ -139,25 +139,25 @@ typedef void (*CodeTextEditorCodeCompleteFunc)(void *p_ud, const String &p_code,
class CodeTextEditor : public VBoxContainer { class CodeTextEditor : public VBoxContainer {
GDCLASS(CodeTextEditor, VBoxContainer); GDCLASS(CodeTextEditor, VBoxContainer);
CodeEdit *text_editor; CodeEdit *text_editor = nullptr;
FindReplaceBar *find_replace_bar = nullptr; FindReplaceBar *find_replace_bar = nullptr;
HBoxContainer *status_bar; HBoxContainer *status_bar = nullptr;
Button *toggle_scripts_button; Button *toggle_scripts_button = nullptr;
Button *error_button; Button *error_button = nullptr;
Button *warning_button; Button *warning_button = nullptr;
Label *line_and_col_txt; Label *line_and_col_txt = nullptr;
Label *info; Label *info = nullptr;
Timer *idle; Timer *idle = nullptr;
Timer *code_complete_timer; Timer *code_complete_timer = nullptr;
Timer *font_resize_timer; Timer *font_resize_timer = nullptr;
int font_resize_val; int font_resize_val;
real_t font_size; real_t font_size;
Label *error; Label *error = nullptr;
int error_line; int error_line;
int error_column; int error_column;
@ -181,7 +181,7 @@ class CodeTextEditor : public VBoxContainer {
Color completion_string_color; Color completion_string_color;
Color completion_comment_color; Color completion_comment_color;
CodeTextEditorCodeCompleteFunc code_complete_func; CodeTextEditorCodeCompleteFunc code_complete_func;
void *code_complete_ud; void *code_complete_ud = nullptr;
void _error_button_pressed(); void _error_button_pressed();
void _warning_button_pressed(); void _warning_button_pressed();

View File

@ -105,27 +105,27 @@ public:
}; };
private: private:
Label *connect_to_label; Label *connect_to_label = nullptr;
LineEdit *from_signal; LineEdit *from_signal = nullptr;
Node *source; Node *source = nullptr;
StringName signal; StringName signal;
LineEdit *dst_method; LineEdit *dst_method = nullptr;
ConnectDialogBinds *cdbinds; ConnectDialogBinds *cdbinds = nullptr;
bool edit_mode; bool edit_mode;
NodePath dst_path; NodePath dst_path;
VBoxContainer *vbc_right; VBoxContainer *vbc_right = nullptr;
SceneTreeEditor *tree; SceneTreeEditor *tree = nullptr;
AcceptDialog *error; AcceptDialog *error = nullptr;
SpinBox *unbind_count; SpinBox *unbind_count = nullptr;
EditorInspector *bind_editor; EditorInspector *bind_editor = nullptr;
OptionButton *type_list; OptionButton *type_list = nullptr;
CheckBox *deferred; CheckBox *deferred = nullptr;
CheckBox *oneshot; CheckBox *oneshot = nullptr;
CheckButton *advanced; CheckButton *advanced = nullptr;
Vector<Control *> bind_controls; Vector<Control *> bind_controls;
Label *error_label; Label *error_label = nullptr;
void ok_pressed() override; void ok_pressed() override;
void _cancel_pressed(); void _cancel_pressed();
@ -186,16 +186,16 @@ class ConnectionsDock : public VBoxContainer {
DISCONNECT DISCONNECT
}; };
Node *selected_node; Node *selected_node = nullptr;
ConnectionsDockTree *tree; ConnectionsDockTree *tree = nullptr;
ConfirmationDialog *disconnect_all_dialog; ConfirmationDialog *disconnect_all_dialog = nullptr;
ConnectDialog *connect_dialog; ConnectDialog *connect_dialog = nullptr;
Button *connect_button; Button *connect_button = nullptr;
PopupMenu *signal_menu; PopupMenu *signal_menu = nullptr;
PopupMenu *slot_menu; PopupMenu *slot_menu = nullptr;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
LineEdit *search_box; LineEdit *search_box = nullptr;
Map<StringName, Map<StringName, String>> descr_cache; Map<StringName, Map<StringName, String>> descr_cache;

View File

@ -47,18 +47,18 @@ class CreateDialog : public ConfirmationDialog {
OTHER_TYPE OTHER_TYPE
}; };
LineEdit *search_box; LineEdit *search_box = nullptr;
Tree *search_options; Tree *search_options = nullptr;
String base_type; String base_type;
String icon_fallback; String icon_fallback;
String preferred_search_result_type; String preferred_search_result_type;
Button *favorite; Button *favorite = nullptr;
Vector<String> favorite_list; Vector<String> favorite_list;
Tree *favorites; Tree *favorites = nullptr;
ItemList *recent; ItemList *recent = nullptr;
EditorHelpBit *help_bit; EditorHelpBit *help_bit = nullptr;
HashMap<String, TreeItem *> search_options_types; HashMap<String, TreeItem *> search_options_types;
HashMap<String, String> custom_type_parents; HashMap<String, String> custom_type_parents;

View File

@ -76,7 +76,7 @@ class DebugAdapterProtocol : public Object {
private: private:
static DebugAdapterProtocol *singleton; static DebugAdapterProtocol *singleton;
DebugAdapterParser *parser; DebugAdapterParser *parser = nullptr;
List<Ref<DAPeer>> clients; List<Ref<DAPeer>> clients;
Ref<TCPServer> server; Ref<TCPServer> server;

View File

@ -70,7 +70,7 @@ private:
ObjectID inspected_object_id; ObjectID inspected_object_id;
Map<ObjectID, EditorDebuggerRemoteObject *> remote_objects; Map<ObjectID, EditorDebuggerRemoteObject *> remote_objects;
Set<RES> remote_dependencies; Set<RES> remote_dependencies;
EditorDebuggerRemoteObject *variables; EditorDebuggerRemoteObject *variables = nullptr;
void _object_selected(ObjectID p_object); void _object_selected(ObjectID p_object);
void _object_edited(ObjectID p_id, const String &p_prop, const Variant &p_value); void _object_edited(ObjectID p_id, const String &p_prop, const Variant &p_value);

View File

@ -42,13 +42,13 @@ class EditorNetworkProfiler : public VBoxContainer {
GDCLASS(EditorNetworkProfiler, VBoxContainer) GDCLASS(EditorNetworkProfiler, VBoxContainer)
private: private:
Button *activate; Button *activate = nullptr;
Button *clear_button; Button *clear_button = nullptr;
Tree *counters_display; Tree *counters_display = nullptr;
LineEdit *incoming_bandwidth_text; LineEdit *incoming_bandwidth_text = nullptr;
LineEdit *outgoing_bandwidth_text; LineEdit *outgoing_bandwidth_text = nullptr;
Timer *frame_delay; Timer *frame_delay = nullptr;
Map<ObjectID, SceneDebugger::RPCNodeInfo> nodes_data; Map<ObjectID, SceneDebugger::RPCNodeInfo> nodes_data;

View File

@ -62,9 +62,9 @@ private:
OrderedHashMap<StringName, Monitor> monitors; OrderedHashMap<StringName, Monitor> monitors;
Map<StringName, TreeItem *> base_map; Map<StringName, TreeItem *> base_map;
Tree *monitor_tree; Tree *monitor_tree = nullptr;
Control *monitor_draw; Control *monitor_draw = nullptr;
Label *info_message; Label *info_message = nullptr;
StringName marker_key; StringName marker_key;
int marker_frame; int marker_frame;
const int MARGIN = 4; const int MARGIN = 4;

View File

@ -90,20 +90,20 @@ public:
}; };
private: private:
Button *activate; Button *activate = nullptr;
Button *clear_button; Button *clear_button = nullptr;
TextureRect *graph; TextureRect *graph = nullptr;
Ref<ImageTexture> graph_texture; Ref<ImageTexture> graph_texture;
Vector<uint8_t> graph_image; Vector<uint8_t> graph_image;
Tree *variables; Tree *variables = nullptr;
HSplitContainer *h_split; HSplitContainer *h_split = nullptr;
Set<StringName> plot_sigs; Set<StringName> plot_sigs;
OptionButton *display_mode; OptionButton *display_mode = nullptr;
OptionButton *display_time; OptionButton *display_time = nullptr;
SpinBox *cursor_metric_edit; SpinBox *cursor_metric_edit = nullptr;
Vector<Metric> frame_metrics; Vector<Metric> frame_metrics;
int total_metrics; int total_metrics;
@ -119,8 +119,8 @@ private:
bool seeking; bool seeking;
Timer *frame_delay; Timer *frame_delay = nullptr;
Timer *plot_delay; Timer *plot_delay = nullptr;
void _update_frame(); void _update_frame();

View File

@ -67,20 +67,20 @@ public:
}; };
private: private:
Button *activate; Button *activate = nullptr;
Button *clear_button; Button *clear_button = nullptr;
TextureRect *graph; TextureRect *graph = nullptr;
Ref<ImageTexture> graph_texture; Ref<ImageTexture> graph_texture;
Vector<uint8_t> graph_image; Vector<uint8_t> graph_image;
Tree *variables; Tree *variables = nullptr;
HSplitContainer *h_split; HSplitContainer *h_split = nullptr;
CheckBox *frame_relative; CheckBox *frame_relative = nullptr;
CheckBox *linked; CheckBox *linked = nullptr;
OptionButton *display_mode; OptionButton *display_mode = nullptr;
SpinBox *cursor_metric_edit; SpinBox *cursor_metric_edit = nullptr;
Vector<Metric> frame_metrics; Vector<Metric> frame_metrics;
int last_metric; int last_metric;
@ -99,8 +99,8 @@ private:
bool seeking; bool seeking;
Timer *frame_delay; Timer *frame_delay = nullptr;
Timer *plot_delay; Timer *plot_delay = nullptr;
void _update_frame(bool p_focus_selected = false); void _update_frame(bool p_focus_selected = false);

View File

@ -85,26 +85,26 @@ private:
ACTION_DELETE_ALL_BREAKPOINTS, ACTION_DELETE_ALL_BREAKPOINTS,
}; };
AcceptDialog *msgdialog; AcceptDialog *msgdialog = nullptr;
LineEdit *clicked_ctrl; LineEdit *clicked_ctrl = nullptr;
LineEdit *clicked_ctrl_type; LineEdit *clicked_ctrl_type = nullptr;
LineEdit *live_edit_root; LineEdit *live_edit_root = nullptr;
Button *le_set; Button *le_set = nullptr;
Button *le_clear; Button *le_clear = nullptr;
Button *export_csv; Button *export_csv = nullptr;
VBoxContainer *errors_tab; VBoxContainer *errors_tab = nullptr;
Tree *error_tree; Tree *error_tree = nullptr;
Button *expand_all_button; Button *expand_all_button = nullptr;
Button *collapse_all_button; Button *collapse_all_button = nullptr;
Button *clear_button; Button *clear_button = nullptr;
PopupMenu *item_menu; PopupMenu *item_menu = nullptr;
Tree *breakpoints_tree; Tree *breakpoints_tree = nullptr;
PopupMenu *breakpoints_menu; PopupMenu *breakpoints_menu = nullptr;
EditorFileDialog *file_dialog; EditorFileDialog *file_dialog = nullptr;
enum FileDialogPurpose { enum FileDialogPurpose {
SAVE_MONITORS_CSV, SAVE_MONITORS_CSV,
SAVE_VRAM_CSV, SAVE_VRAM_CSV,
@ -117,31 +117,31 @@ private:
bool skip_breakpoints_value = false; bool skip_breakpoints_value = false;
Ref<Script> stack_script; Ref<Script> stack_script;
TabContainer *tabs; TabContainer *tabs = nullptr;
Label *reason; Label *reason = nullptr;
Button *skip_breakpoints; Button *skip_breakpoints = nullptr;
Button *copy; Button *copy = nullptr;
Button *step; Button *step = nullptr;
Button *next; Button *next = nullptr;
Button *dobreak; Button *dobreak = nullptr;
Button *docontinue; Button *docontinue = nullptr;
// Reference to "Remote" tab in scene tree. Needed by _live_edit_set and buttons state. // Reference to "Remote" tab in scene tree. Needed by _live_edit_set and buttons state.
// Each debugger should have it's tree in the future I guess. // Each debugger should have it's tree in the future I guess.
const Tree *editor_remote_tree = nullptr; const Tree *editor_remote_tree = nullptr;
Map<int, String> profiler_signature; Map<int, String> profiler_signature;
Tree *vmem_tree; Tree *vmem_tree = nullptr;
Button *vmem_refresh; Button *vmem_refresh = nullptr;
Button *vmem_export; Button *vmem_export = nullptr;
LineEdit *vmem_total; LineEdit *vmem_total = nullptr;
Tree *stack_dump; Tree *stack_dump = nullptr;
LineEdit *search = nullptr; LineEdit *search = nullptr;
EditorDebuggerInspector *inspector; EditorDebuggerInspector *inspector = nullptr;
SceneDebuggerTree *scene_tree; SceneDebuggerTree *scene_tree = nullptr;
Ref<RemoteDebuggerPeer> peer; Ref<RemoteDebuggerPeer> peer;
@ -149,10 +149,10 @@ private:
int last_path_id; int last_path_id;
Map<String, int> res_path_cache; Map<String, int> res_path_cache;
EditorProfiler *profiler; EditorProfiler *profiler = nullptr;
EditorVisualProfiler *visual_profiler; EditorVisualProfiler *visual_profiler = nullptr;
EditorNetworkProfiler *network_profiler; EditorNetworkProfiler *network_profiler = nullptr;
EditorPerformanceProfiler *performance_profiler; EditorPerformanceProfiler *performance_profiler = nullptr;
OS::ProcessID remote_pid = 0; OS::ProcessID remote_pid = 0;
bool breaked = false; bool breaked = false;

View File

@ -42,10 +42,10 @@ class EditorFileSystemDirectory;
class DependencyEditor : public AcceptDialog { class DependencyEditor : public AcceptDialog {
GDCLASS(DependencyEditor, AcceptDialog); GDCLASS(DependencyEditor, AcceptDialog);
Tree *tree; Tree *tree = nullptr;
Button *fixdeps; Button *fixdeps = nullptr;
EditorFileDialog *search; EditorFileDialog *search = nullptr;
String replacing; String replacing;
String editing; String editing;
@ -71,8 +71,8 @@ public:
class DependencyEditorOwners : public AcceptDialog { class DependencyEditorOwners : public AcceptDialog {
GDCLASS(DependencyEditorOwners, AcceptDialog); GDCLASS(DependencyEditorOwners, AcceptDialog);
ItemList *owners; ItemList *owners = nullptr;
PopupMenu *file_options; PopupMenu *file_options = nullptr;
String editing; String editing;
void _fill_owners(EditorFileSystemDirectory *efsd); void _fill_owners(EditorFileSystemDirectory *efsd);
@ -95,8 +95,8 @@ public:
class DependencyRemoveDialog : public ConfirmationDialog { class DependencyRemoveDialog : public ConfirmationDialog {
GDCLASS(DependencyRemoveDialog, ConfirmationDialog); GDCLASS(DependencyRemoveDialog, ConfirmationDialog);
Label *text; Label *text = nullptr;
Tree *owners; Tree *owners = nullptr;
Map<String, String> all_remove_files; Map<String, String> all_remove_files;
Vector<String> dirs_to_delete; Vector<String> dirs_to_delete;
@ -142,9 +142,9 @@ public:
private: private:
String for_file; String for_file;
Mode mode; Mode mode;
Button *fdep; Button *fdep = nullptr;
Label *text; Label *text = nullptr;
Tree *files; Tree *files = nullptr;
void ok_pressed() override; void ok_pressed() override;
void custom_action(const String &) override; void custom_action(const String &) override;
@ -156,9 +156,9 @@ public:
class OrphanResourcesDialog : public ConfirmationDialog { class OrphanResourcesDialog : public ConfirmationDialog {
GDCLASS(OrphanResourcesDialog, ConfirmationDialog); GDCLASS(OrphanResourcesDialog, ConfirmationDialog);
DependencyEditor *dep_edit; DependencyEditor *dep_edit = nullptr;
Tree *files; Tree *files = nullptr;
ConfirmationDialog *delete_confirm; ConfirmationDialog *delete_confirm = nullptr;
void ok_pressed() override; void ok_pressed() override;
bool _fill_owners(EditorFileSystemDirectory *efsd, HashMap<String, int> &refs, TreeItem *p_parent); bool _fill_owners(EditorFileSystemDirectory *efsd, HashMap<String, int> &refs, TreeItem *p_parent);

View File

@ -56,11 +56,11 @@ private:
void _version_button_pressed(); void _version_button_pressed();
ScrollContainer *_populate_list(const String &p_name, const List<String> &p_sections, const char *const *const p_src[], const int p_flag_single_column = 0); ScrollContainer *_populate_list(const String &p_name, const List<String> &p_sections, const char *const *const p_src[], const int p_flag_single_column = 0);
LinkButton *version_btn; LinkButton *version_btn = nullptr;
Tree *_tpl_tree; Tree *_tpl_tree = nullptr;
RichTextLabel *_license_text; RichTextLabel *_license_text = nullptr;
RichTextLabel *_tpl_text; RichTextLabel *_tpl_text = nullptr;
TextureRect *_logo; TextureRect *_logo = nullptr;
void _theme_changed(); void _theme_changed();

View File

@ -36,11 +36,11 @@
class EditorAssetInstaller : public ConfirmationDialog { class EditorAssetInstaller : public ConfirmationDialog {
GDCLASS(EditorAssetInstaller, ConfirmationDialog); GDCLASS(EditorAssetInstaller, ConfirmationDialog);
Tree *tree; Tree *tree = nullptr;
Label *asset_contents; Label *asset_contents = nullptr;
String package_path; String package_path;
String asset_name; String asset_name;
AcceptDialog *error; AcceptDialog *error = nullptr;
Map<String, TreeItem *> status_map; Map<String, TreeItem *> status_map;
bool updating = false; bool updating = false;
void _item_edited(); void _item_edited();

View File

@ -52,9 +52,9 @@ class EditorAudioBus : public PanelContainer {
GDCLASS(EditorAudioBus, PanelContainer); GDCLASS(EditorAudioBus, PanelContainer);
Ref<Texture2D> disabled_vu; Ref<Texture2D> disabled_vu;
LineEdit *track_name; LineEdit *track_name = nullptr;
MenuButton *bus_options; MenuButton *bus_options = nullptr;
VSlider *slider; VSlider *slider = nullptr;
int cc; int cc;
static const int CHANNELS_MAX = 4; static const int CHANNELS_MAX = 4;
@ -69,21 +69,21 @@ class EditorAudioBus : public PanelContainer {
TextureProgressBar *vu_r = nullptr; TextureProgressBar *vu_r = nullptr;
} channel[CHANNELS_MAX]; } channel[CHANNELS_MAX];
OptionButton *send; OptionButton *send = nullptr;
PopupMenu *effect_options; PopupMenu *effect_options = nullptr;
PopupMenu *bus_popup; PopupMenu *bus_popup = nullptr;
PopupMenu *delete_effect_popup; PopupMenu *delete_effect_popup = nullptr;
Panel *audio_value_preview_box; Panel *audio_value_preview_box = nullptr;
Label *audio_value_preview_label; Label *audio_value_preview_label = nullptr;
Timer *preview_timer; Timer *preview_timer = nullptr;
Button *solo; Button *solo = nullptr;
Button *mute; Button *mute = nullptr;
Button *bypass; Button *bypass = nullptr;
Tree *effects; Tree *effects = nullptr;
bool updating_bus = false; bool updating_bus = false;
bool is_master; bool is_master;
@ -121,7 +121,7 @@ class EditorAudioBus : public PanelContainer {
friend class EditorAudioBuses; friend class EditorAudioBuses;
EditorAudioBuses *buses; EditorAudioBuses *buses = nullptr;
protected: protected:
static void _bind_methods(); static void _bind_methods();
@ -153,22 +153,22 @@ public:
class EditorAudioBuses : public VBoxContainer { class EditorAudioBuses : public VBoxContainer {
GDCLASS(EditorAudioBuses, VBoxContainer); GDCLASS(EditorAudioBuses, VBoxContainer);
HBoxContainer *top_hb; HBoxContainer *top_hb = nullptr;
ScrollContainer *bus_scroll; ScrollContainer *bus_scroll = nullptr;
HBoxContainer *bus_hb; HBoxContainer *bus_hb = nullptr;
EditorAudioBusDrop *drop_end; EditorAudioBusDrop *drop_end = nullptr;
Label *file; Label *file = nullptr;
Button *add; Button *add = nullptr;
Button *load; Button *load = nullptr;
Button *save_as; Button *save_as = nullptr;
Button *_default; Button *_default = nullptr;
Button *_new; Button *_new = nullptr;
Timer *save_timer; Timer *save_timer = nullptr;
String edited_path; String edited_path;
void _add_bus(); void _add_bus();
@ -191,7 +191,7 @@ class EditorAudioBuses : public VBoxContainer {
void _load_default_layout(); void _load_default_layout();
void _new_layout(); void _new_layout();
EditorFileDialog *file_dialog; EditorFileDialog *file_dialog = nullptr;
bool new_layout; bool new_layout;
void _file_dialog_callback(const String &p_string); void _file_dialog_callback(const String &p_string);
@ -262,7 +262,7 @@ public:
class AudioBusesEditorPlugin : public EditorPlugin { class AudioBusesEditorPlugin : public EditorPlugin {
GDCLASS(AudioBusesEditorPlugin, EditorPlugin); GDCLASS(AudioBusesEditorPlugin, EditorPlugin);
EditorAudioBuses *audio_bus_editor; EditorAudioBuses *audio_bus_editor = nullptr;
public: public:
virtual String get_name() const override { return "SampleLibrary"; } virtual String get_name() const override { return "SampleLibrary"; }

View File

@ -40,8 +40,8 @@ class EditorCommandPalette : public ConfirmationDialog {
GDCLASS(EditorCommandPalette, ConfirmationDialog); GDCLASS(EditorCommandPalette, ConfirmationDialog);
static EditorCommandPalette *singleton; static EditorCommandPalette *singleton;
LineEdit *command_search_box; LineEdit *command_search_box = nullptr;
Tree *search_options; Tree *search_options = nullptr;
struct Command { struct Command {
Callable callable; Callable callable;

View File

@ -39,14 +39,14 @@
class EditorDirDialog : public ConfirmationDialog { class EditorDirDialog : public ConfirmationDialog {
GDCLASS(EditorDirDialog, ConfirmationDialog); GDCLASS(EditorDirDialog, ConfirmationDialog);
ConfirmationDialog *makedialog; ConfirmationDialog *makedialog = nullptr;
LineEdit *makedirname; LineEdit *makedirname = nullptr;
AcceptDialog *mkdirerr; AcceptDialog *mkdirerr = nullptr;
Button *makedir; Button *makedir = nullptr;
Set<String> opened_paths; Set<String> opened_paths;
Tree *tree; Tree *tree = nullptr;
bool updating = false; bool updating = false;
void _item_collapsed(Object *p_item); void _item_collapsed(Object *p_item);

View File

@ -380,7 +380,7 @@ class EditorExport : public Node {
StringName _export_presets_updated; StringName _export_presets_updated;
Timer *save_timer; Timer *save_timer = nullptr;
bool block_save = false; bool block_save = false;
static EditorExport *singleton; static EditorExport *singleton;

View File

@ -117,25 +117,25 @@ class EditorFeatureProfileManager : public AcceptDialog {
CLASS_OPTION_DISABLE_EDITOR CLASS_OPTION_DISABLE_EDITOR
}; };
ConfirmationDialog *erase_profile_dialog; ConfirmationDialog *erase_profile_dialog = nullptr;
ConfirmationDialog *new_profile_dialog; ConfirmationDialog *new_profile_dialog = nullptr;
LineEdit *new_profile_name; LineEdit *new_profile_name = nullptr;
LineEdit *current_profile_name; LineEdit *current_profile_name = nullptr;
OptionButton *profile_list; OptionButton *profile_list = nullptr;
Button *profile_actions[PROFILE_MAX]; Button *profile_actions[PROFILE_MAX];
HSplitContainer *h_split; HSplitContainer *h_split = nullptr;
VBoxContainer *class_list_vbc; VBoxContainer *class_list_vbc = nullptr;
Tree *class_list; Tree *class_list = nullptr;
VBoxContainer *property_list_vbc; VBoxContainer *property_list_vbc = nullptr;
Tree *property_list; Tree *property_list = nullptr;
EditorHelpBit *description_bit; EditorHelpBit *description_bit = nullptr;
Label *no_profile_selected_help; Label *no_profile_selected_help = nullptr;
EditorFileDialog *import_profiles; EditorFileDialog *import_profiles = nullptr;
EditorFileDialog *export_profile; EditorFileDialog *export_profile = nullptr;
void _profile_action(int p_action); void _profile_action(int p_action);
void _profile_selected(int p_what); void _profile_selected(int p_what);
@ -163,7 +163,7 @@ class EditorFeatureProfileManager : public AcceptDialog {
void _property_item_edited(); void _property_item_edited();
void _save_and_update(); void _save_and_update();
Timer *update_timer; Timer *update_timer = nullptr;
void _emit_current_profile_changed(); void _emit_current_profile_changed();
static EditorFeatureProfileManager *singleton; static EditorFeatureProfileManager *singleton;

View File

@ -84,50 +84,50 @@ private:
ITEM_MENU_SHOW_IN_EXPLORER ITEM_MENU_SHOW_IN_EXPLORER
}; };
ConfirmationDialog *makedialog; ConfirmationDialog *makedialog = nullptr;
LineEdit *makedirname; LineEdit *makedirname = nullptr;
Button *makedir; Button *makedir = nullptr;
Access access; Access access;
VBoxContainer *vbox; VBoxContainer *vbox = nullptr;
FileMode mode; FileMode mode;
bool can_create_dir; bool can_create_dir;
LineEdit *dir; LineEdit *dir = nullptr;
Button *dir_prev; Button *dir_prev = nullptr;
Button *dir_next; Button *dir_next = nullptr;
Button *dir_up; Button *dir_up = nullptr;
HBoxContainer *drives_container; HBoxContainer *drives_container = nullptr;
HBoxContainer *shortcuts_container; HBoxContainer *shortcuts_container = nullptr;
OptionButton *drives; OptionButton *drives = nullptr;
ItemList *item_list; ItemList *item_list = nullptr;
PopupMenu *item_menu; PopupMenu *item_menu = nullptr;
TextureRect *preview; TextureRect *preview = nullptr;
VBoxContainer *preview_vb; VBoxContainer *preview_vb = nullptr;
HSplitContainer *list_hb; HSplitContainer *list_hb = nullptr;
HBoxContainer *file_box; HBoxContainer *file_box = nullptr;
LineEdit *file; LineEdit *file = nullptr;
OptionButton *filter; OptionButton *filter = nullptr;
AcceptDialog *error_dialog; AcceptDialog *error_dialog = nullptr;
DirAccess *dir_access; DirAccess *dir_access = nullptr;
ConfirmationDialog *confirm_save; ConfirmationDialog *confirm_save = nullptr;
DependencyRemoveDialog *dep_remove_dialog; DependencyRemoveDialog *dep_remove_dialog = nullptr;
ConfirmationDialog *global_remove_dialog; ConfirmationDialog *global_remove_dialog = nullptr;
Button *mode_thumbnails; Button *mode_thumbnails = nullptr;
Button *mode_list; Button *mode_list = nullptr;
Button *refresh; Button *refresh = nullptr;
Button *favorite; Button *favorite = nullptr;
Button *show_hidden; Button *show_hidden = nullptr;
Button *fav_up; Button *fav_up = nullptr;
Button *fav_down; Button *fav_down = nullptr;
ItemList *favorites; ItemList *favorites = nullptr;
ItemList *recent; ItemList *recent = nullptr;
Vector<String> local_history; Vector<String> local_history;
int local_history_pos; int local_history_pos;

View File

@ -49,7 +49,7 @@ class EditorFileSystemDirectory : public Object {
uint64_t modified_time; uint64_t modified_time;
bool verified = false; //used for checking changes bool verified = false; //used for checking changes
EditorFileSystemDirectory *parent; EditorFileSystemDirectory *parent = nullptr;
Vector<EditorFileSystemDirectory *> subdirs; Vector<EditorFileSystemDirectory *> subdirs;
struct FileInfo { struct FileInfo {
@ -167,7 +167,7 @@ class EditorFileSystem : public Node {
Thread thread; Thread thread;
static void _thread_func(void *_userdata); static void _thread_func(void *_userdata);
EditorFileSystemDirectory *new_filesystem; EditorFileSystemDirectory *new_filesystem = nullptr;
bool abort_scan = false; bool abort_scan = false;
bool scanning = false; bool scanning = false;
@ -184,7 +184,7 @@ class EditorFileSystem : public Node {
void _save_late_updated_files(); void _save_late_updated_files();
EditorFileSystemDirectory *filesystem; EditorFileSystemDirectory *filesystem = nullptr;
static EditorFileSystem *singleton; static EditorFileSystem *singleton;

View File

@ -47,14 +47,14 @@
class FindBar : public HBoxContainer { class FindBar : public HBoxContainer {
GDCLASS(FindBar, HBoxContainer); GDCLASS(FindBar, HBoxContainer);
LineEdit *search_text; LineEdit *search_text = nullptr;
Button *find_prev; Button *find_prev = nullptr;
Button *find_next; Button *find_next = nullptr;
Label *matches_label; Label *matches_label = nullptr;
TextureButton *hide_button; TextureButton *hide_button = nullptr;
String prev_search; String prev_search;
RichTextLabel *rich_text_label; RichTextLabel *rich_text_label = nullptr;
int results_count; int results_count;
@ -114,15 +114,15 @@ class EditorHelp : public VBoxContainer {
Map<String, Map<String, int>> enum_values_line; Map<String, Map<String, int>> enum_values_line;
int description_line; int description_line;
RichTextLabel *class_desc; RichTextLabel *class_desc = nullptr;
HSplitContainer *h_split; HSplitContainer *h_split = nullptr;
static DocTools *doc; static DocTools *doc;
ConfirmationDialog *search_dialog; ConfirmationDialog *search_dialog = nullptr;
LineEdit *search; LineEdit *search = nullptr;
FindBar *find_bar; FindBar *find_bar = nullptr;
HBoxContainer *status_bar; HBoxContainer *status_bar = nullptr;
Button *toggle_scripts_button; Button *toggle_scripts_button = nullptr;
String base_path; String base_path;
@ -210,7 +210,7 @@ public:
class EditorHelpBit : public MarginContainer { class EditorHelpBit : public MarginContainer {
GDCLASS(EditorHelpBit, MarginContainer); GDCLASS(EditorHelpBit, MarginContainer);
RichTextLabel *rich_text; RichTextLabel *rich_text = nullptr;
void _go_to_help(String p_what); void _go_to_help(String p_what);
void _meta_clicked(String p_select); void _meta_clicked(String p_select);

View File

@ -55,11 +55,11 @@ class EditorHelpSearch : public ConfirmationDialog {
SEARCH_SHOW_HIERARCHY = 1 << 30 SEARCH_SHOW_HIERARCHY = 1 << 30
}; };
LineEdit *search_box; LineEdit *search_box = nullptr;
Button *case_sensitive_button; Button *case_sensitive_button = nullptr;
Button *hierarchy_button; Button *hierarchy_button = nullptr;
OptionButton *filter_combo; OptionButton *filter_combo = nullptr;
Tree *results_tree; Tree *results_tree = nullptr;
bool old_search = false; bool old_search = false;
String old_term; String old_term;
@ -114,8 +114,8 @@ class EditorHelpSearch::Runner : public RefCounted {
} }
}; };
Control *ui_service; Control *ui_service = nullptr;
Tree *results_tree; Tree *results_tree = nullptr;
String term; String term;
int search_flags; int search_flags;

View File

@ -68,7 +68,7 @@ private:
String label; String label;
int text_size; int text_size;
friend class EditorInspector; friend class EditorInspector;
Object *object; Object *object = nullptr;
StringName property; StringName property;
String property_path; String property_path;
@ -111,9 +111,9 @@ private:
float split_ratio; float split_ratio;
Vector<Control *> focusables; Vector<Control *> focusables;
Control *label_reference; Control *label_reference = nullptr;
Control *bottom_editor; Control *bottom_editor = nullptr;
PopupMenu *menu; PopupMenu *menu = nullptr;
mutable String tooltip_text; mutable String tooltip_text;
@ -269,14 +269,14 @@ class EditorInspectorSection : public Container {
bool foldable = false; bool foldable = false;
int indent_depth = 0; int indent_depth = 0;
Timer *dropping_unfold_timer; Timer *dropping_unfold_timer = nullptr;
bool dropping = false; bool dropping = false;
void _test_unfold(); void _test_unfold();
protected: protected:
Object *object = nullptr; Object *object = nullptr;
VBoxContainer *vbox; VBoxContainer *vbox = nullptr;
void _notification(int p_what); void _notification(int p_what);
static void _bind_methods(); static void _bind_methods();
@ -297,7 +297,7 @@ public:
class EditorInspectorArray : public EditorInspectorSection { class EditorInspectorArray : public EditorInspectorSection {
GDCLASS(EditorInspectorArray, EditorInspectorSection); GDCLASS(EditorInspectorArray, EditorInspectorSection);
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
enum Mode { enum Mode {
MODE_NONE, MODE_NONE,
@ -309,16 +309,16 @@ class EditorInspectorArray : public EditorInspectorSection {
int count = 0; int count = 0;
VBoxContainer *elements_vbox; VBoxContainer *elements_vbox = nullptr;
Control *control_dropping; Control *control_dropping = nullptr;
bool dropping = false; bool dropping = false;
Button *add_button; Button *add_button = nullptr;
AcceptDialog *resize_dialog; AcceptDialog *resize_dialog = nullptr;
int new_size = 0; int new_size = 0;
LineEdit *new_size_line_edit; LineEdit *new_size_line_edit = nullptr;
// Pagination // Pagination
int page_length = 5; int page_length = 5;
@ -337,14 +337,14 @@ class EditorInspectorArray : public EditorInspectorSection {
OPTION_RESIZE_ARRAY, OPTION_RESIZE_ARRAY,
}; };
int popup_array_index_pressed = -1; int popup_array_index_pressed = -1;
PopupMenu *rmb_popup; PopupMenu *rmb_popup = nullptr;
struct ArrayElement { struct ArrayElement {
PanelContainer *panel; PanelContainer *panel = nullptr;
MarginContainer *margin; MarginContainer *margin = nullptr;
HBoxContainer *hbox; HBoxContainer *hbox = nullptr;
TextureRect *move_texture_rect; TextureRect *move_texture_rect = nullptr;
VBoxContainer *vbox; VBoxContainer *vbox = nullptr;
}; };
LocalVector<ArrayElement> array_elements; LocalVector<ArrayElement> array_elements;
@ -399,12 +399,12 @@ class EditorPaginator : public HBoxContainer {
int page = 0; int page = 0;
int max_page = 0; int max_page = 0;
Button *first_page_button; Button *first_page_button = nullptr;
Button *prev_page_button; Button *prev_page_button = nullptr;
LineEdit *page_line_edit; LineEdit *page_line_edit = nullptr;
Label *page_count_label; Label *page_count_label = nullptr;
Button *next_page_button; Button *next_page_button = nullptr;
Button *last_page_button; Button *last_page_button = nullptr;
void _first_page_button_pressed(); void _first_page_button_pressed();
void _prev_page_button_pressed(); void _prev_page_button_pressed();
@ -425,14 +425,14 @@ public:
class EditorInspector : public ScrollContainer { class EditorInspector : public ScrollContainer {
GDCLASS(EditorInspector, ScrollContainer); GDCLASS(EditorInspector, ScrollContainer);
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
enum { enum {
MAX_PLUGINS = 1024 MAX_PLUGINS = 1024
}; };
static Ref<EditorInspectorPlugin> inspector_plugins[MAX_PLUGINS]; static Ref<EditorInspectorPlugin> inspector_plugins[MAX_PLUGINS];
static int inspector_plugin_count; static int inspector_plugin_count;
VBoxContainer *main_vbox; VBoxContainer *main_vbox = nullptr;
//map use to cache the instantiated editors //map use to cache the instantiated editors
Map<StringName, List<EditorProperty *>> editor_property_map; Map<StringName, List<EditorProperty *>> editor_property_map;
@ -440,11 +440,11 @@ class EditorInspector : public ScrollContainer {
Set<StringName> pending; Set<StringName> pending;
void _clear(); void _clear();
Object *object; Object *object = nullptr;
// //
LineEdit *search_box; LineEdit *search_box = nullptr;
bool show_categories = false; bool show_categories = false;
bool hide_script = true; bool hide_script = true;
bool hide_metadata = true; bool hide_metadata = true;

View File

@ -39,9 +39,9 @@ class ItemList;
class EditorLayoutsDialog : public ConfirmationDialog { class EditorLayoutsDialog : public ConfirmationDialog {
GDCLASS(EditorLayoutsDialog, ConfirmationDialog); GDCLASS(EditorLayoutsDialog, ConfirmationDialog);
LineEdit *name; LineEdit *name = nullptr;
ItemList *layout_names; ItemList *layout_names = nullptr;
VBoxContainer *makevb; VBoxContainer *makevb = nullptr;
void _line_gui_input(const Ref<InputEvent> &p_event); void _line_gui_input(const Ref<InputEvent> &p_event);

View File

@ -117,23 +117,23 @@ private:
// Maps MessageTypes to LogFilters for convenient access and storage (don't need 1 member per filter). // Maps MessageTypes to LogFilters for convenient access and storage (don't need 1 member per filter).
Map<MessageType, LogFilter *> type_filter_map; Map<MessageType, LogFilter *> type_filter_map;
RichTextLabel *log; RichTextLabel *log = nullptr;
Button *clear_button; Button *clear_button = nullptr;
Button *copy_button; Button *copy_button = nullptr;
Button *collapse_button; Button *collapse_button = nullptr;
bool collapse = false; bool collapse = false;
Button *show_search_button; Button *show_search_button = nullptr;
LineEdit *search_box; LineEdit *search_box = nullptr;
// Reference to the "Output" button on the toolbar so we can update it's icon when // Reference to the "Output" button on the toolbar so we can update it's icon when
// Warnings or Errors are encounetered. // Warnings or Errors are encounetered.
Button *tool_button; Button *tool_button = nullptr;
bool is_loading_state = false; // Used to disable saving requests while loading (some signals from buttons will try trigger a save, which happens during loading). bool is_loading_state = false; // Used to disable saving requests while loading (some signals from buttons will try trigger a save, which happens during loading).
Timer *save_state_timer; Timer *save_state_timer = nullptr;
static void _error_handler(void *p_self, const char *p_func, const char *p_file, int p_line, const char *p_error, const char *p_errorexp, bool p_editor_notify, ErrorHandlerType p_type); static void _error_handler(void *p_self, const char *p_func, const char *p_file, int p_line, const char *p_error, const char *p_errorexp, bool p_editor_notify, ErrorHandlerType p_type);

View File

@ -275,161 +275,161 @@ private:
bool _initializing_plugins = false; bool _initializing_plugins = false;
Map<String, EditorPlugin *> addon_name_to_plugin; Map<String, EditorPlugin *> addon_name_to_plugin;
PanelContainer *scene_root_parent; PanelContainer *scene_root_parent = nullptr;
Control *theme_base; Control *theme_base = nullptr;
Control *gui_base; Control *gui_base = nullptr;
VBoxContainer *main_vbox; VBoxContainer *main_vbox = nullptr;
OptionButton *rendering_driver; OptionButton *rendering_driver = nullptr;
ConfirmationDialog *video_restart_dialog; ConfirmationDialog *video_restart_dialog = nullptr;
int rendering_driver_current; int rendering_driver_current;
String rendering_driver_request; String rendering_driver_request;
// Split containers. // Split containers.
HSplitContainer *left_l_hsplit; HSplitContainer *left_l_hsplit = nullptr;
VSplitContainer *left_l_vsplit; VSplitContainer *left_l_vsplit = nullptr;
HSplitContainer *left_r_hsplit; HSplitContainer *left_r_hsplit = nullptr;
VSplitContainer *left_r_vsplit; VSplitContainer *left_r_vsplit = nullptr;
HSplitContainer *main_hsplit; HSplitContainer *main_hsplit = nullptr;
HSplitContainer *right_hsplit; HSplitContainer *right_hsplit = nullptr;
VSplitContainer *right_l_vsplit; VSplitContainer *right_l_vsplit = nullptr;
VSplitContainer *right_r_vsplit; VSplitContainer *right_r_vsplit = nullptr;
VSplitContainer *center_split; VSplitContainer *center_split = nullptr;
// To access those easily by index. // To access those easily by index.
Vector<VSplitContainer *> vsplits; Vector<VSplitContainer *> vsplits;
Vector<HSplitContainer *> hsplits; Vector<HSplitContainer *> hsplits;
// Main tabs. // Main tabs.
TabBar *scene_tabs; TabBar *scene_tabs = nullptr;
PopupMenu *scene_tabs_context_menu; PopupMenu *scene_tabs_context_menu = nullptr;
Panel *tab_preview_panel; Panel *tab_preview_panel = nullptr;
TextureRect *tab_preview; TextureRect *tab_preview = nullptr;
int tab_closing_idx; int tab_closing_idx;
bool exiting = false; bool exiting = false;
bool dimmed = false; bool dimmed = false;
int old_split_ofs; int old_split_ofs;
VSplitContainer *top_split; VSplitContainer *top_split = nullptr;
HBoxContainer *bottom_hb; HBoxContainer *bottom_hb = nullptr;
Control *vp_base; Control *vp_base = nullptr;
HBoxContainer *menu_hb; HBoxContainer *menu_hb = nullptr;
Control *main_control; Control *main_control = nullptr;
MenuButton *file_menu; MenuButton *file_menu = nullptr;
MenuButton *project_menu; MenuButton *project_menu = nullptr;
MenuButton *debug_menu; MenuButton *debug_menu = nullptr;
MenuButton *settings_menu; MenuButton *settings_menu = nullptr;
MenuButton *help_menu; MenuButton *help_menu = nullptr;
PopupMenu *tool_menu; PopupMenu *tool_menu = nullptr;
Button *export_button; Button *export_button = nullptr;
Button *prev_scene; Button *prev_scene = nullptr;
Button *play_button; Button *play_button = nullptr;
Button *pause_button; Button *pause_button = nullptr;
Button *stop_button; Button *stop_button = nullptr;
Button *run_settings_button; Button *run_settings_button = nullptr;
Button *play_scene_button; Button *play_scene_button = nullptr;
Button *play_custom_scene_button; Button *play_custom_scene_button = nullptr;
Button *search_button; Button *search_button = nullptr;
TextureProgressBar *audio_vu; TextureProgressBar *audio_vu = nullptr;
Timer *screenshot_timer; Timer *screenshot_timer = nullptr;
PluginConfigDialog *plugin_config_dialog; PluginConfigDialog *plugin_config_dialog = nullptr;
RichTextLabel *load_errors; RichTextLabel *load_errors = nullptr;
AcceptDialog *load_error_dialog; AcceptDialog *load_error_dialog = nullptr;
RichTextLabel *execute_outputs; RichTextLabel *execute_outputs = nullptr;
AcceptDialog *execute_output_dialog; AcceptDialog *execute_output_dialog = nullptr;
Ref<Theme> theme; Ref<Theme> theme;
PopupMenu *recent_scenes; PopupMenu *recent_scenes = nullptr;
String _recent_scene; String _recent_scene;
List<String> previous_scenes; List<String> previous_scenes;
String defer_load_scene; String defer_load_scene;
Node *_last_instantiated_scene; Node *_last_instantiated_scene = nullptr;
ConfirmationDialog *confirmation; ConfirmationDialog *confirmation = nullptr;
ConfirmationDialog *save_confirmation; ConfirmationDialog *save_confirmation = nullptr;
ConfirmationDialog *import_confirmation; ConfirmationDialog *import_confirmation = nullptr;
ConfirmationDialog *pick_main_scene; ConfirmationDialog *pick_main_scene = nullptr;
Button *select_current_scene_button; Button *select_current_scene_button = nullptr;
AcceptDialog *accept; AcceptDialog *accept = nullptr;
AcceptDialog *save_accept; AcceptDialog *save_accept = nullptr;
EditorAbout *about; EditorAbout *about = nullptr;
AcceptDialog *warning; AcceptDialog *warning = nullptr;
int overridden_default_layout; int overridden_default_layout;
Ref<ConfigFile> default_layout; Ref<ConfigFile> default_layout;
PopupMenu *editor_layouts; PopupMenu *editor_layouts = nullptr;
EditorLayoutsDialog *layout_dialog; EditorLayoutsDialog *layout_dialog = nullptr;
ConfirmationDialog *custom_build_manage_templates; ConfirmationDialog *custom_build_manage_templates = nullptr;
ConfirmationDialog *install_android_build_template; ConfirmationDialog *install_android_build_template = nullptr;
ConfirmationDialog *remove_android_build_template; ConfirmationDialog *remove_android_build_template = nullptr;
PopupMenu *vcs_actions_menu; PopupMenu *vcs_actions_menu = nullptr;
EditorFileDialog *file; EditorFileDialog *file = nullptr;
ExportTemplateManager *export_template_manager; ExportTemplateManager *export_template_manager = nullptr;
EditorFeatureProfileManager *feature_profile_manager; EditorFeatureProfileManager *feature_profile_manager = nullptr;
EditorFileDialog *file_templates; EditorFileDialog *file_templates = nullptr;
EditorFileDialog *file_export_lib; EditorFileDialog *file_export_lib = nullptr;
EditorFileDialog *file_script; EditorFileDialog *file_script = nullptr;
EditorFileDialog *file_android_build_source; EditorFileDialog *file_android_build_source = nullptr;
CheckBox *file_export_lib_merge; CheckBox *file_export_lib_merge = nullptr;
CheckBox *file_export_lib_apply_xforms; CheckBox *file_export_lib_apply_xforms = nullptr;
String current_path; String current_path;
MenuButton *update_spinner; MenuButton *update_spinner = nullptr;
HBoxContainer *main_editor_button_vb; HBoxContainer *main_editor_button_vb = nullptr;
Vector<Button *> main_editor_buttons; Vector<Button *> main_editor_buttons;
Vector<EditorPlugin *> editor_table; Vector<EditorPlugin *> editor_table;
AudioStreamPreviewGenerator *audio_preview_gen; AudioStreamPreviewGenerator *audio_preview_gen = nullptr;
ProgressDialog *progress_dialog; ProgressDialog *progress_dialog = nullptr;
BackgroundProgress *progress_hb; BackgroundProgress *progress_hb = nullptr;
DependencyErrorDialog *dependency_error; DependencyErrorDialog *dependency_error = nullptr;
Map<String, Set<String>> dependency_errors; Map<String, Set<String>> dependency_errors;
DependencyEditor *dependency_fixer; DependencyEditor *dependency_fixer = nullptr;
OrphanResourcesDialog *orphan_resources; OrphanResourcesDialog *orphan_resources = nullptr;
ConfirmationDialog *open_imported; ConfirmationDialog *open_imported = nullptr;
Button *new_inherited_button; Button *new_inherited_button = nullptr;
String open_import_request; String open_import_request;
Vector<Control *> floating_docks; Vector<Control *> floating_docks;
Button *dock_float; Button *dock_float = nullptr;
Button *dock_tab_move_left; Button *dock_tab_move_left = nullptr;
Button *dock_tab_move_right; Button *dock_tab_move_right = nullptr;
Control *dock_select; Control *dock_select = nullptr;
PopupPanel *dock_select_popup; PopupPanel *dock_select_popup = nullptr;
Rect2 dock_select_rect[DOCK_SLOT_MAX]; Rect2 dock_select_rect[DOCK_SLOT_MAX];
TabContainer *dock_slot[DOCK_SLOT_MAX]; TabContainer *dock_slot[DOCK_SLOT_MAX];
Timer *dock_drag_timer; Timer *dock_drag_timer = nullptr;
bool docks_visible = true; bool docks_visible = true;
int dock_popup_selected_idx; int dock_popup_selected_idx;
int dock_select_rect_over_idx; int dock_select_rect_over_idx;
HBoxContainer *tabbar_container; HBoxContainer *tabbar_container = nullptr;
Button *distraction_free; Button *distraction_free = nullptr;
Button *scene_tab_add; Button *scene_tab_add = nullptr;
Control *scene_tab_add_ph; Control *scene_tab_add_ph = nullptr;
Vector<BottomPanelItem> bottom_panel_items; Vector<BottomPanelItem> bottom_panel_items;
PanelContainer *bottom_panel; PanelContainer *bottom_panel = nullptr;
HBoxContainer *bottom_panel_hb; HBoxContainer *bottom_panel_hb = nullptr;
HBoxContainer *bottom_panel_hb_editors; HBoxContainer *bottom_panel_hb_editors = nullptr;
VBoxContainer *bottom_panel_vb; VBoxContainer *bottom_panel_vb = nullptr;
EditorToaster *editor_toaster; EditorToaster *editor_toaster = nullptr;
LinkButton *version_btn; LinkButton *version_btn = nullptr;
Button *bottom_panel_raise; Button *bottom_panel_raise = nullptr;
Tree *disk_changed_list; Tree *disk_changed_list = nullptr;
ConfirmationDialog *disk_changed; ConfirmationDialog *disk_changed = nullptr;
bool scene_distraction_free = false; bool scene_distraction_free = false;
bool script_distraction_free = false; bool script_distraction_free = false;
@ -447,8 +447,8 @@ private:
int current_menu_option; int current_menu_option;
SubViewport *scene_root; // Root of the scene being edited. SubViewport *scene_root = nullptr; // Root of the scene being edited.
Object *current; Object *current = nullptr;
Ref<Resource> saving_resource; Ref<Resource> saving_resource;
@ -464,8 +464,8 @@ private:
uint64_t saved_version; uint64_t saved_version;
uint64_t last_checked_version; uint64_t last_checked_version;
DynamicFontImportSettings *fontdata_import_settings; DynamicFontImportSettings *fontdata_import_settings = nullptr;
SceneImportSettings *scene_import_settings; SceneImportSettings *scene_import_settings = nullptr;
String import_reload_fn; String import_reload_fn;

View File

@ -42,12 +42,12 @@ class EditorSelectionHistory;
class EditorPath : public Button { class EditorPath : public Button {
GDCLASS(EditorPath, Button); GDCLASS(EditorPath, Button);
EditorSelectionHistory *history; EditorSelectionHistory *history = nullptr;
TextureRect *current_object_icon; TextureRect *current_object_icon = nullptr;
Label *current_object_label; Label *current_object_label = nullptr;
TextureRect *sub_objects_icon; TextureRect *sub_objects_icon = nullptr;
PopupMenu *sub_objects_menu; PopupMenu *sub_objects_menu = nullptr;
Vector<ObjectID> objects; Vector<ObjectID> objects;

View File

@ -44,10 +44,10 @@ class EditorPluginSettings : public VBoxContainer {
BUTTON_PLUGIN_EDIT BUTTON_PLUGIN_EDIT
}; };
PluginConfigDialog *plugin_config_dialog; PluginConfigDialog *plugin_config_dialog = nullptr;
Button *create_plugin; Button *create_plugin = nullptr;
Button *update_list; Button *update_list = nullptr;
Tree *plugin_list; Tree *plugin_list = nullptr;
bool updating = false; bool updating = false;
void _plugin_activity_changed(); void _plugin_activity_changed();

View File

@ -52,7 +52,7 @@ public:
class EditorPropertyText : public EditorProperty { class EditorPropertyText : public EditorProperty {
GDCLASS(EditorPropertyText, EditorProperty); GDCLASS(EditorPropertyText, EditorProperty);
LineEdit *text; LineEdit *text = nullptr;
bool updating = false; bool updating = false;
bool string_name = false; bool string_name = false;
@ -72,11 +72,11 @@ public:
class EditorPropertyMultilineText : public EditorProperty { class EditorPropertyMultilineText : public EditorProperty {
GDCLASS(EditorPropertyMultilineText, EditorProperty); GDCLASS(EditorPropertyMultilineText, EditorProperty);
TextEdit *text; TextEdit *text = nullptr;
AcceptDialog *big_text_dialog; AcceptDialog *big_text_dialog = nullptr;
TextEdit *big_text; TextEdit *big_text = nullptr;
Button *open_big_text; Button *open_big_text = nullptr;
void _big_text_changed(); void _big_text_changed();
void _text_changed(); void _text_changed();
@ -95,15 +95,15 @@ public:
class EditorPropertyTextEnum : public EditorProperty { class EditorPropertyTextEnum : public EditorProperty {
GDCLASS(EditorPropertyTextEnum, EditorProperty); GDCLASS(EditorPropertyTextEnum, EditorProperty);
HBoxContainer *default_layout; HBoxContainer *default_layout = nullptr;
HBoxContainer *edit_custom_layout; HBoxContainer *edit_custom_layout = nullptr;
OptionButton *option_button; OptionButton *option_button = nullptr;
Button *edit_button; Button *edit_button = nullptr;
LineEdit *custom_value_edit; LineEdit *custom_value_edit = nullptr;
Button *accept_button; Button *accept_button = nullptr;
Button *cancel_button; Button *cancel_button = nullptr;
Vector<String> options; Vector<String> options;
bool string_name = false; bool string_name = false;
@ -134,9 +134,9 @@ class EditorPropertyPath : public EditorProperty {
bool folder = false; bool folder = false;
bool global = false; bool global = false;
bool save_mode = false; bool save_mode = false;
EditorFileDialog *dialog; EditorFileDialog *dialog = nullptr;
LineEdit *path; LineEdit *path = nullptr;
Button *path_edit; Button *path_edit = nullptr;
void _path_selected(const String &p_path); void _path_selected(const String &p_path);
void _path_pressed(); void _path_pressed();
@ -156,9 +156,9 @@ public:
class EditorPropertyLocale : public EditorProperty { class EditorPropertyLocale : public EditorProperty {
GDCLASS(EditorPropertyLocale, EditorProperty); GDCLASS(EditorPropertyLocale, EditorProperty);
EditorLocaleDialog *dialog; EditorLocaleDialog *dialog = nullptr;
LineEdit *locale; LineEdit *locale = nullptr;
Button *locale_edit; Button *locale_edit = nullptr;
void _locale_selected(const String &p_locale); void _locale_selected(const String &p_locale);
void _locale_pressed(); void _locale_pressed();
@ -178,8 +178,8 @@ class EditorPropertyClassName : public EditorProperty {
GDCLASS(EditorPropertyClassName, EditorProperty); GDCLASS(EditorPropertyClassName, EditorProperty);
private: private:
CreateDialog *dialog; CreateDialog *dialog = nullptr;
Button *property; Button *property = nullptr;
String selected_type; String selected_type;
String base_type; String base_type;
void _property_selected(); void _property_selected();
@ -212,8 +212,8 @@ public:
private: private:
Type hint; Type hint;
PropertySelector *selector; PropertySelector *selector = nullptr;
Button *property; Button *property = nullptr;
String hint_text; String hint_text;
void _property_selected(const String &p_selected); void _property_selected(const String &p_selected);
@ -231,7 +231,7 @@ public:
class EditorPropertyCheck : public EditorProperty { class EditorPropertyCheck : public EditorProperty {
GDCLASS(EditorPropertyCheck, EditorProperty); GDCLASS(EditorPropertyCheck, EditorProperty);
CheckBox *checkbox; CheckBox *checkbox = nullptr;
void _checkbox_pressed(); void _checkbox_pressed();
@ -246,7 +246,7 @@ public:
class EditorPropertyEnum : public EditorProperty { class EditorPropertyEnum : public EditorProperty {
GDCLASS(EditorPropertyEnum, EditorProperty); GDCLASS(EditorPropertyEnum, EditorProperty);
OptionButton *options; OptionButton *options = nullptr;
void _option_selected(int p_which); void _option_selected(int p_which);
@ -263,7 +263,7 @@ public:
class EditorPropertyFlags : public EditorProperty { class EditorPropertyFlags : public EditorProperty {
GDCLASS(EditorPropertyFlags, EditorProperty); GDCLASS(EditorPropertyFlags, EditorProperty);
VBoxContainer *vbox; VBoxContainer *vbox = nullptr;
Vector<CheckBox *> flags; Vector<CheckBox *> flags;
Vector<int> flag_indices; Vector<int> flag_indices;
@ -293,9 +293,9 @@ private:
int hovered_index = -1; int hovered_index = -1;
bool read_only = false; bool read_only = false;
int renamed_layer_index = -1; int renamed_layer_index = -1;
PopupMenu *layer_rename; PopupMenu *layer_rename = nullptr;
ConfirmationDialog *rename_dialog; ConfirmationDialog *rename_dialog = nullptr;
LineEdit *rename_dialog_text; LineEdit *rename_dialog_text = nullptr;
void _rename_pressed(int p_menu); void _rename_pressed(int p_menu);
void _rename_operation_confirm(); void _rename_operation_confirm();
@ -334,12 +334,12 @@ public:
}; };
private: private:
EditorPropertyLayersGrid *grid; EditorPropertyLayersGrid *grid = nullptr;
void _grid_changed(uint32_t p_grid); void _grid_changed(uint32_t p_grid);
String basename; String basename;
LayerType layer_type; LayerType layer_type;
PopupMenu *layers; PopupMenu *layers = nullptr;
Button *button; Button *button = nullptr;
void _button_pressed(); void _button_pressed();
void _menu_pressed(int p_menu); void _menu_pressed(int p_menu);
@ -358,7 +358,7 @@ public:
class EditorPropertyInteger : public EditorProperty { class EditorPropertyInteger : public EditorProperty {
GDCLASS(EditorPropertyInteger, EditorProperty); GDCLASS(EditorPropertyInteger, EditorProperty);
EditorSpinSlider *spin; EditorSpinSlider *spin = nullptr;
bool setting = false; bool setting = false;
void _value_changed(int64_t p_val); void _value_changed(int64_t p_val);
@ -374,7 +374,7 @@ public:
class EditorPropertyObjectID : public EditorProperty { class EditorPropertyObjectID : public EditorProperty {
GDCLASS(EditorPropertyObjectID, EditorProperty); GDCLASS(EditorPropertyObjectID, EditorProperty);
Button *edit; Button *edit = nullptr;
String base_type; String base_type;
void _edit_pressed(); void _edit_pressed();
@ -390,7 +390,7 @@ public:
class EditorPropertyFloat : public EditorProperty { class EditorPropertyFloat : public EditorProperty {
GDCLASS(EditorPropertyFloat, EditorProperty); GDCLASS(EditorPropertyFloat, EditorProperty);
EditorSpinSlider *spin; EditorSpinSlider *spin = nullptr;
bool setting = false; bool setting = false;
bool angle_in_radians = false; bool angle_in_radians = false;
void _value_changed(double p_val); void _value_changed(double p_val);
@ -407,9 +407,9 @@ public:
class EditorPropertyEasing : public EditorProperty { class EditorPropertyEasing : public EditorProperty {
GDCLASS(EditorPropertyEasing, EditorProperty); GDCLASS(EditorPropertyEasing, EditorProperty);
Control *easing_draw; Control *easing_draw = nullptr;
PopupMenu *preset; PopupMenu *preset = nullptr;
EditorSpinSlider *spin; EditorSpinSlider *spin = nullptr;
bool setting = false; bool setting = false;
bool dragging = false; bool dragging = false;
@ -657,7 +657,7 @@ public:
class EditorPropertyColor : public EditorProperty { class EditorPropertyColor : public EditorProperty {
GDCLASS(EditorPropertyColor, EditorProperty); GDCLASS(EditorPropertyColor, EditorProperty);
ColorPickerButton *picker; ColorPickerButton *picker = nullptr;
void _color_changed(const Color &p_color); void _color_changed(const Color &p_color);
void _popup_closed(); void _popup_closed();
void _picker_created(); void _picker_created();
@ -677,9 +677,9 @@ public:
class EditorPropertyNodePath : public EditorProperty { class EditorPropertyNodePath : public EditorProperty {
GDCLASS(EditorPropertyNodePath, EditorProperty); GDCLASS(EditorPropertyNodePath, EditorProperty);
Button *assign; Button *assign = nullptr;
Button *clear; Button *clear = nullptr;
SceneTreeDialog *scene_tree; SceneTreeDialog *scene_tree = nullptr;
NodePath base_hint; NodePath base_hint;
bool use_path_from_scene_root = false; bool use_path_from_scene_root = false;
@ -705,7 +705,7 @@ public:
class EditorPropertyRID : public EditorProperty { class EditorPropertyRID : public EditorProperty {
GDCLASS(EditorPropertyRID, EditorProperty); GDCLASS(EditorPropertyRID, EditorProperty);
Label *label; Label *label = nullptr;
public: public:
virtual void update_property() override; virtual void update_property() override;

View File

@ -80,7 +80,7 @@ public:
class EditorPropertyArray : public EditorProperty { class EditorPropertyArray : public EditorProperty {
GDCLASS(EditorPropertyArray, EditorProperty); GDCLASS(EditorPropertyArray, EditorProperty);
PopupMenu *change_type; PopupMenu *change_type = nullptr;
bool updating = false; bool updating = false;
bool dropping = false; bool dropping = false;
@ -88,12 +88,12 @@ class EditorPropertyArray : public EditorProperty {
int page_length = 20; int page_length = 20;
int page_index = 0; int page_index = 0;
int changing_type_index; int changing_type_index;
Button *edit; Button *edit = nullptr;
VBoxContainer *vbox; VBoxContainer *vbox = nullptr;
VBoxContainer *property_vbox; VBoxContainer *property_vbox = nullptr;
EditorSpinSlider *size_slider; EditorSpinSlider *size_slider = nullptr;
Button *button_add_item; Button *button_add_item = nullptr;
EditorPaginator *paginator; EditorPaginator *paginator = nullptr;
Variant::Type array_type; Variant::Type array_type;
Variant::Type subtype; Variant::Type subtype;
PropertyHint subtype_hint; PropertyHint subtype_hint;
@ -138,19 +138,19 @@ public:
class EditorPropertyDictionary : public EditorProperty { class EditorPropertyDictionary : public EditorProperty {
GDCLASS(EditorPropertyDictionary, EditorProperty); GDCLASS(EditorPropertyDictionary, EditorProperty);
PopupMenu *change_type; PopupMenu *change_type = nullptr;
bool updating = false; bool updating = false;
Ref<EditorPropertyDictionaryObject> object; Ref<EditorPropertyDictionaryObject> object;
int page_length = 20; int page_length = 20;
int page_index = 0; int page_index = 0;
int changing_type_index; int changing_type_index;
Button *edit; Button *edit = nullptr;
VBoxContainer *vbox; VBoxContainer *vbox = nullptr;
VBoxContainer *property_vbox; VBoxContainer *property_vbox = nullptr;
EditorSpinSlider *size_slider; EditorSpinSlider *size_slider = nullptr;
Button *button_add_item; Button *button_add_item = nullptr;
EditorPaginator *paginator; EditorPaginator *paginator = nullptr;
void _page_changed(int p_page); void _page_changed(int p_page);
void _edit_pressed(); void _edit_pressed();
@ -173,19 +173,19 @@ public:
class EditorPropertyLocalizableString : public EditorProperty { class EditorPropertyLocalizableString : public EditorProperty {
GDCLASS(EditorPropertyLocalizableString, EditorProperty); GDCLASS(EditorPropertyLocalizableString, EditorProperty);
EditorLocaleDialog *locale_select; EditorLocaleDialog *locale_select = nullptr;
bool updating; bool updating;
Ref<EditorPropertyDictionaryObject> object; Ref<EditorPropertyDictionaryObject> object;
int page_length = 20; int page_length = 20;
int page_index = 0; int page_index = 0;
Button *edit; Button *edit = nullptr;
VBoxContainer *vbox; VBoxContainer *vbox = nullptr;
VBoxContainer *property_vbox; VBoxContainer *property_vbox = nullptr;
EditorSpinSlider *size_slider; EditorSpinSlider *size_slider = nullptr;
Button *button_add_item; Button *button_add_item = nullptr;
EditorPaginator *paginator; EditorPaginator *paginator = nullptr;
void _page_changed(int p_page); void _page_changed(int p_page);
void _edit_pressed(); void _edit_pressed();

View File

@ -52,9 +52,9 @@ class EditorResourcePicker : public HBoxContainer {
Vector<String> inheritors_array; Vector<String> inheritors_array;
Button *assign_button; Button *assign_button = nullptr;
TextureRect *preview_rect; TextureRect *preview_rect = nullptr;
Button *edit_button; Button *edit_button = nullptr;
EditorFileDialog *file_dialog = nullptr; EditorFileDialog *file_dialog = nullptr;
EditorQuickOpen *quick_open = nullptr; EditorQuickOpen *quick_open = nullptr;

View File

@ -39,7 +39,7 @@ class EditorNode;
class EditorScript : public RefCounted { class EditorScript : public RefCounted {
GDCLASS(EditorScript, RefCounted); GDCLASS(EditorScript, RefCounted);
EditorNode *editor; EditorNode *editor = nullptr;
protected: protected:
static void _bind_methods(); static void _bind_methods();

View File

@ -42,11 +42,11 @@ class SectionedInspector : public HSplitContainer {
ObjectID obj; ObjectID obj;
Tree *sections; Tree *sections = nullptr;
SectionedInspectorFilter *filter; SectionedInspectorFilter *filter = nullptr;
Map<String, TreeItem *> section_map; Map<String, TreeItem *> section_map;
EditorInspector *inspector; EditorInspector *inspector = nullptr;
LineEdit *search_box = nullptr; LineEdit *search_box = nullptr;
String selected_category; String selected_category;

View File

@ -45,13 +45,13 @@ class EditorSettingsDialog : public AcceptDialog {
bool updating = false; bool updating = false;
TabContainer *tabs; TabContainer *tabs = nullptr;
Control *tab_general; Control *tab_general = nullptr;
Control *tab_shortcuts; Control *tab_shortcuts = nullptr;
LineEdit *search_box; LineEdit *search_box = nullptr;
LineEdit *shortcut_search_box; LineEdit *shortcut_search_box = nullptr;
SectionedInspector *inspector; SectionedInspector *inspector = nullptr;
// Shortcuts // Shortcuts
enum ShortcutButton { enum ShortcutButton {
@ -61,19 +61,19 @@ class EditorSettingsDialog : public AcceptDialog {
SHORTCUT_REVERT SHORTCUT_REVERT
}; };
Tree *shortcuts; Tree *shortcuts = nullptr;
String shortcut_filter; String shortcut_filter;
InputEventConfigurationDialog *shortcut_editor; InputEventConfigurationDialog *shortcut_editor = nullptr;
bool is_editing_action = false; bool is_editing_action = false;
String current_edited_identifier; String current_edited_identifier;
Array current_events; Array current_events;
int current_event_index = -1; int current_event_index = -1;
Timer *timer; Timer *timer = nullptr;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
virtual void cancel_pressed() override; virtual void cancel_pressed() override;
virtual void ok_pressed() override; virtual void ok_pressed() override;
@ -110,10 +110,10 @@ class EditorSettingsDialog : public AcceptDialog {
static void _undo_redo_callback(void *p_self, const String &p_name); static void _undo_redo_callback(void *p_self, const String &p_name);
Label *restart_label; Label *restart_label = nullptr;
TextureRect *restart_icon; TextureRect *restart_icon = nullptr;
PanelContainer *restart_container; PanelContainer *restart_container = nullptr;
Button *restart_close_button; Button *restart_close_button = nullptr;
void _editor_restart_request(); void _editor_restart_request();
void _editor_restart(); void _editor_restart();

View File

@ -44,7 +44,7 @@ class EditorSpinSlider : public Range {
bool hover_updown = false; bool hover_updown = false;
bool mouse_hover = false; bool mouse_hover = false;
TextureRect *grabber; TextureRect *grabber = nullptr;
int grabber_range; int grabber_range;
bool mouse_over_spin = false; bool mouse_over_spin = false;

View File

@ -61,11 +61,11 @@ private:
Ref<StyleBoxFlat> warning_panel_style_progress; Ref<StyleBoxFlat> warning_panel_style_progress;
Ref<StyleBoxFlat> error_panel_style_progress; Ref<StyleBoxFlat> error_panel_style_progress;
Button *main_button; Button *main_button = nullptr;
PanelContainer *disable_notifications_panel; PanelContainer *disable_notifications_panel = nullptr;
Button *disable_notifications_button; Button *disable_notifications_button = nullptr;
VBoxContainer *vbox_container; VBoxContainer *vbox_container = nullptr;
const int max_temporary_count = 5; const int max_temporary_count = 5;
struct Toast { struct Toast {
Severity severity = SEVERITY_INFO; Severity severity = SEVERITY_INFO;

View File

@ -37,9 +37,9 @@
class EditorZoomWidget : public HBoxContainer { class EditorZoomWidget : public HBoxContainer {
GDCLASS(EditorZoomWidget, HBoxContainer); GDCLASS(EditorZoomWidget, HBoxContainer);
Button *zoom_minus; Button *zoom_minus = nullptr;
Button *zoom_reset; Button *zoom_reset = nullptr;
Button *zoom_plus; Button *zoom_plus = nullptr;
float zoom = 1.0; float zoom = 1.0;
void _update_zoom_label(); void _update_zoom_label();

View File

@ -51,42 +51,42 @@ class ExportTemplateManager : public AcceptDialog {
bool is_downloading_templates = false; bool is_downloading_templates = false;
float update_countdown = 0; float update_countdown = 0;
Label *current_value; Label *current_value = nullptr;
Label *current_missing_label; Label *current_missing_label = nullptr;
Label *current_installed_label; Label *current_installed_label = nullptr;
HBoxContainer *current_installed_hb; HBoxContainer *current_installed_hb = nullptr;
LineEdit *current_installed_path; LineEdit *current_installed_path = nullptr;
Button *current_open_button; Button *current_open_button = nullptr;
Button *current_uninstall_button; Button *current_uninstall_button = nullptr;
VBoxContainer *install_options_vb; VBoxContainer *install_options_vb = nullptr;
OptionButton *mirrors_list; OptionButton *mirrors_list = nullptr;
enum MirrorAction { enum MirrorAction {
VISIT_WEB_MIRROR, VISIT_WEB_MIRROR,
COPY_MIRROR_URL, COPY_MIRROR_URL,
}; };
MenuButton *mirror_options_button; MenuButton *mirror_options_button = nullptr;
HBoxContainer *download_progress_hb; HBoxContainer *download_progress_hb = nullptr;
ProgressBar *download_progress_bar; ProgressBar *download_progress_bar = nullptr;
Label *download_progress_label; Label *download_progress_label = nullptr;
HTTPRequest *download_templates; HTTPRequest *download_templates = nullptr;
Button *install_file_button; Button *install_file_button = nullptr;
HTTPRequest *request_mirrors; HTTPRequest *request_mirrors = nullptr;
enum TemplatesAction { enum TemplatesAction {
OPEN_TEMPLATE_FOLDER, OPEN_TEMPLATE_FOLDER,
UNINSTALL_TEMPLATE, UNINSTALL_TEMPLATE,
}; };
Tree *installed_table; Tree *installed_table = nullptr;
ConfirmationDialog *uninstall_confirm; ConfirmationDialog *uninstall_confirm = nullptr;
String uninstall_version; String uninstall_version;
FileDialog *install_file_dialog; FileDialog *install_file_dialog = nullptr;
AcceptDialog *hide_dialog_accept; AcceptDialog *hide_dialog_accept = nullptr;
void _update_template_status(); void _update_template_status();

View File

@ -47,7 +47,7 @@ class EditorFileServer : public Object {
}; };
struct ClientData { struct ClientData {
Thread *thread; Thread *thread = nullptr;
Ref<StreamPeerTCP> connection; Ref<StreamPeerTCP> connection;
Map<int, FileAccess *> files; Map<int, FileAccess *> files;
EditorFileServer *efs = nullptr; EditorFileServer *efs = nullptr;

View File

@ -102,57 +102,57 @@ private:
FileSortOption file_sort = FILE_SORT_NAME; FileSortOption file_sort = FILE_SORT_NAME;
VBoxContainer *scanning_vb; VBoxContainer *scanning_vb = nullptr;
ProgressBar *scanning_progress; ProgressBar *scanning_progress = nullptr;
VSplitContainer *split_box; VSplitContainer *split_box = nullptr;
VBoxContainer *file_list_vb; VBoxContainer *file_list_vb = nullptr;
Set<String> favorites; Set<String> favorites;
Button *button_toggle_display_mode; Button *button_toggle_display_mode = nullptr;
Button *button_reload; Button *button_reload = nullptr;
Button *button_file_list_display_mode; Button *button_file_list_display_mode = nullptr;
Button *button_hist_next; Button *button_hist_next = nullptr;
Button *button_hist_prev; Button *button_hist_prev = nullptr;
LineEdit *current_path; LineEdit *current_path = nullptr;
HBoxContainer *toolbar2_hbc; HBoxContainer *toolbar2_hbc = nullptr;
LineEdit *tree_search_box; LineEdit *tree_search_box = nullptr;
MenuButton *tree_button_sort; MenuButton *tree_button_sort = nullptr;
LineEdit *file_list_search_box; LineEdit *file_list_search_box = nullptr;
MenuButton *file_list_button_sort; MenuButton *file_list_button_sort = nullptr;
String searched_string; String searched_string;
Vector<String> uncollapsed_paths_before_search; Vector<String> uncollapsed_paths_before_search;
TextureRect *search_icon; TextureRect *search_icon = nullptr;
HBoxContainer *path_hb; HBoxContainer *path_hb = nullptr;
FileListDisplayMode file_list_display_mode; FileListDisplayMode file_list_display_mode;
DisplayMode display_mode; DisplayMode display_mode;
DisplayMode old_display_mode; DisplayMode old_display_mode;
PopupMenu *file_list_popup; PopupMenu *file_list_popup = nullptr;
PopupMenu *tree_popup; PopupMenu *tree_popup = nullptr;
DependencyEditor *deps_editor; DependencyEditor *deps_editor = nullptr;
DependencyEditorOwners *owners_editor; DependencyEditorOwners *owners_editor = nullptr;
DependencyRemoveDialog *remove_dialog; DependencyRemoveDialog *remove_dialog = nullptr;
EditorDirDialog *move_dialog; EditorDirDialog *move_dialog = nullptr;
ConfirmationDialog *rename_dialog; ConfirmationDialog *rename_dialog = nullptr;
LineEdit *rename_dialog_text; LineEdit *rename_dialog_text = nullptr;
ConfirmationDialog *duplicate_dialog; ConfirmationDialog *duplicate_dialog = nullptr;
LineEdit *duplicate_dialog_text; LineEdit *duplicate_dialog_text = nullptr;
ConfirmationDialog *make_dir_dialog; ConfirmationDialog *make_dir_dialog = nullptr;
LineEdit *make_dir_dialog_text; LineEdit *make_dir_dialog_text = nullptr;
ConfirmationDialog *make_scene_dialog; ConfirmationDialog *make_scene_dialog = nullptr;
LineEdit *make_scene_dialog_text; LineEdit *make_scene_dialog_text = nullptr;
ConfirmationDialog *overwrite_dialog; ConfirmationDialog *overwrite_dialog = nullptr;
ScriptCreateDialog *make_script_dialog; ScriptCreateDialog *make_script_dialog = nullptr;
ShaderCreateDialog *make_shader_dialog; ShaderCreateDialog *make_shader_dialog = nullptr;
CreateDialog *new_resource_dialog; CreateDialog *new_resource_dialog = nullptr;
bool always_show_folders = false; bool always_show_folders = false;
@ -181,8 +181,8 @@ private:
bool updating_tree = false; bool updating_tree = false;
int tree_update_id; int tree_update_id;
Tree *tree; Tree *tree = nullptr;
ItemList *files; ItemList *files = nullptr;
bool import_dock_needs_update = false; bool import_dock_needs_update = false;
bool holding_branch = false; bool holding_branch = false;

View File

@ -132,18 +132,18 @@ private:
void _on_replace_text_submitted(String text); void _on_replace_text_submitted(String text);
FindInFilesMode _mode; FindInFilesMode _mode;
LineEdit *_search_text_line_edit; LineEdit *_search_text_line_edit = nullptr;
Label *_replace_label; Label *_replace_label = nullptr;
LineEdit *_replace_text_line_edit; LineEdit *_replace_text_line_edit = nullptr;
LineEdit *_folder_line_edit; LineEdit *_folder_line_edit = nullptr;
CheckBox *_match_case_checkbox; CheckBox *_match_case_checkbox = nullptr;
CheckBox *_whole_words_checkbox; CheckBox *_whole_words_checkbox = nullptr;
Button *_find_button; Button *_find_button = nullptr;
Button *_replace_button; Button *_replace_button = nullptr;
FileDialog *_folder_dialog; FileDialog *_folder_dialog = nullptr;
HBoxContainer *_filters_container; HBoxContainer *_filters_container = nullptr;
HashMap<String, bool> _filters_preferences; HashMap<String, bool> _filters_preferences;
}; };
@ -201,20 +201,20 @@ private:
void set_progress_visible(bool visible); void set_progress_visible(bool visible);
void clear(); void clear();
FindInFiles *_finder; FindInFiles *_finder = nullptr;
Label *_search_text_label; Label *_search_text_label = nullptr;
Tree *_results_display; Tree *_results_display = nullptr;
Label *_status_label; Label *_status_label = nullptr;
Button *_refresh_button; Button *_refresh_button = nullptr;
Button *_cancel_button; Button *_cancel_button = nullptr;
ProgressBar *_progress_bar; ProgressBar *_progress_bar = nullptr;
Map<String, TreeItem *> _file_items; Map<String, TreeItem *> _file_items;
Map<TreeItem *, Result> _result_items; Map<TreeItem *, Result> _result_items;
bool _with_replace = false; bool _with_replace = false;
HBoxContainer *_replace_container; HBoxContainer *_replace_container = nullptr;
LineEdit *_replace_line_edit; LineEdit *_replace_line_edit = nullptr;
Button *_replace_all_button; Button *_replace_all_button = nullptr;
}; };
#endif // FIND_IN_FILES_H #endif // FIND_IN_FILES_H

View File

@ -43,32 +43,32 @@
class GroupDialog : public AcceptDialog { class GroupDialog : public AcceptDialog {
GDCLASS(GroupDialog, AcceptDialog); GDCLASS(GroupDialog, AcceptDialog);
ConfirmationDialog *error; ConfirmationDialog *error = nullptr;
SceneTree *scene_tree; SceneTree *scene_tree = nullptr;
TreeItem *groups_root; TreeItem *groups_root = nullptr;
LineEdit *add_group_text; LineEdit *add_group_text = nullptr;
Button *add_group_button; Button *add_group_button = nullptr;
Tree *groups; Tree *groups = nullptr;
Tree *nodes_to_add; Tree *nodes_to_add = nullptr;
TreeItem *add_node_root; TreeItem *add_node_root = nullptr;
LineEdit *add_filter; LineEdit *add_filter = nullptr;
Tree *nodes_to_remove; Tree *nodes_to_remove = nullptr;
TreeItem *remove_node_root; TreeItem *remove_node_root = nullptr;
LineEdit *remove_filter; LineEdit *remove_filter = nullptr;
Label *group_empty; Label *group_empty = nullptr;
Button *add_button; Button *add_button = nullptr;
Button *remove_button; Button *remove_button = nullptr;
String selected_group; String selected_group;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
void _group_selected(); void _group_selected();
@ -111,15 +111,15 @@ public:
class GroupsEditor : public VBoxContainer { class GroupsEditor : public VBoxContainer {
GDCLASS(GroupsEditor, VBoxContainer); GDCLASS(GroupsEditor, VBoxContainer);
Node *node; Node *node = nullptr;
GroupDialog *group_dialog; GroupDialog *group_dialog = nullptr;
LineEdit *group_name; LineEdit *group_name = nullptr;
Button *add; Button *add = nullptr;
Tree *tree; Tree *tree = nullptr;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
void update_tree(); void update_tree();
void _add_group(const String &p_group = ""); void _add_group(const String &p_group = "");

View File

@ -66,7 +66,7 @@ class DynamicFontImportSettings : public ConfirmationDialog {
List<ResourceImporter::ImportOption> options_variations; List<ResourceImporter::ImportOption> options_variations;
List<ResourceImporter::ImportOption> options_general; List<ResourceImporter::ImportOption> options_general;
EditorLocaleDialog *locale_select; EditorLocaleDialog *locale_select = nullptr;
Vector<String> script_codes; Vector<String> script_codes;
// Root layout // Root layout

View File

@ -62,26 +62,26 @@ class SceneImportSettings : public ConfirmationDialog {
Node *scene = nullptr; Node *scene = nullptr;
HSplitContainer *tree_split; HSplitContainer *tree_split = nullptr;
HSplitContainer *property_split; HSplitContainer *property_split = nullptr;
TabContainer *data_mode; TabContainer *data_mode = nullptr;
Tree *scene_tree; Tree *scene_tree = nullptr;
Tree *mesh_tree; Tree *mesh_tree = nullptr;
Tree *material_tree; Tree *material_tree = nullptr;
EditorInspector *inspector; EditorInspector *inspector = nullptr;
SubViewport *base_viewport; SubViewport *base_viewport = nullptr;
Camera3D *camera; Camera3D *camera = nullptr;
bool first_aabb = false; bool first_aabb = false;
AABB contents_aabb; AABB contents_aabb;
DirectionalLight3D *light; DirectionalLight3D *light = nullptr;
Ref<ArrayMesh> selection_mesh; Ref<ArrayMesh> selection_mesh;
MeshInstance3D *node_selected; MeshInstance3D *node_selected = nullptr;
MeshInstance3D *mesh_preview; MeshInstance3D *mesh_preview = nullptr;
Ref<SphereMesh> material_preview; Ref<SphereMesh> material_preview;
Ref<StandardMaterial3D> collider_mat; Ref<StandardMaterial3D> collider_mat;
@ -95,9 +95,9 @@ class SceneImportSettings : public ConfirmationDialog {
struct MaterialData { struct MaterialData {
bool has_import_id; bool has_import_id;
Ref<Material> material; Ref<Material> material;
TreeItem *scene_node; TreeItem *scene_node = nullptr;
TreeItem *mesh_node; TreeItem *mesh_node = nullptr;
TreeItem *material_node; TreeItem *material_node = nullptr;
float cam_rot_x = -Math_PI / 4; float cam_rot_x = -Math_PI / 4;
float cam_rot_y = -Math_PI / 4; float cam_rot_y = -Math_PI / 4;
@ -110,8 +110,8 @@ class SceneImportSettings : public ConfirmationDialog {
struct MeshData { struct MeshData {
bool has_import_id; bool has_import_id;
Ref<Mesh> mesh; Ref<Mesh> mesh;
TreeItem *scene_node; TreeItem *scene_node = nullptr;
TreeItem *mesh_node; TreeItem *mesh_node = nullptr;
float cam_rot_x = -Math_PI / 4; float cam_rot_x = -Math_PI / 4;
float cam_rot_y = -Math_PI / 4; float cam_rot_y = -Math_PI / 4;
@ -122,14 +122,14 @@ class SceneImportSettings : public ConfirmationDialog {
struct AnimationData { struct AnimationData {
Ref<Animation> animation; Ref<Animation> animation;
TreeItem *scene_node; TreeItem *scene_node = nullptr;
Map<StringName, Variant> settings; Map<StringName, Variant> settings;
}; };
Map<String, AnimationData> animation_map; Map<String, AnimationData> animation_map;
struct NodeData { struct NodeData {
Node *node; Node *node = nullptr;
TreeItem *scene_node; TreeItem *scene_node = nullptr;
Map<StringName, Variant> settings; Map<StringName, Variant> settings;
}; };
Map<String, NodeData> node_map; Map<String, NodeData> node_map;
@ -158,20 +158,20 @@ class SceneImportSettings : public ConfirmationDialog {
Map<StringName, Variant> defaults; Map<StringName, Variant> defaults;
SceneImportSettingsData *scene_import_settings_data; SceneImportSettingsData *scene_import_settings_data = nullptr;
void _re_import(); void _re_import();
String base_path; String base_path;
MenuButton *action_menu; MenuButton *action_menu = nullptr;
ConfirmationDialog *external_paths; ConfirmationDialog *external_paths = nullptr;
Tree *external_path_tree; Tree *external_path_tree = nullptr;
EditorFileDialog *save_path; EditorFileDialog *save_path = nullptr;
OptionButton *external_extension_type; OptionButton *external_extension_type = nullptr;
EditorFileDialog *item_save_path; EditorFileDialog *item_save_path = nullptr;
void _menu_callback(int p_id); void _menu_callback(int p_id);
void _save_dir_callback(const String &p_path); void _save_dir_callback(const String &p_path);

View File

@ -41,13 +41,13 @@ class EditorInspector;
class ImportDefaultsEditor : public VBoxContainer { class ImportDefaultsEditor : public VBoxContainer {
GDCLASS(ImportDefaultsEditor, VBoxContainer) GDCLASS(ImportDefaultsEditor, VBoxContainer)
OptionButton *importers; OptionButton *importers = nullptr;
Button *save_defaults; Button *save_defaults = nullptr;
Button *reset_defaults; Button *reset_defaults = nullptr;
EditorInspector *inspector; EditorInspector *inspector = nullptr;
ImportDefaultsEditorSettings *settings; ImportDefaultsEditorSettings *settings = nullptr;
void _update_importer(); void _update_importer();
void _importer_selected(int p_index); void _importer_selected(int p_index);

View File

@ -45,25 +45,25 @@ class ImportDockParameters;
class ImportDock : public VBoxContainer { class ImportDock : public VBoxContainer {
GDCLASS(ImportDock, VBoxContainer); GDCLASS(ImportDock, VBoxContainer);
Label *imported; Label *imported = nullptr;
OptionButton *import_as; OptionButton *import_as = nullptr;
MenuButton *preset; MenuButton *preset = nullptr;
EditorInspector *import_opts; EditorInspector *import_opts = nullptr;
List<PropertyInfo> properties; List<PropertyInfo> properties;
Map<StringName, Variant> property_values; Map<StringName, Variant> property_values;
ConfirmationDialog *reimport_confirm; ConfirmationDialog *reimport_confirm = nullptr;
Label *label_warning; Label *label_warning = nullptr;
Button *import; Button *import = nullptr;
Control *advanced_spacer; Control *advanced_spacer = nullptr;
Button *advanced; Button *advanced = nullptr;
ImportDockParameters *params; ImportDockParameters *params = nullptr;
VBoxContainer *content; VBoxContainer *content = nullptr;
Label *select_a_resource; Label *select_a_resource = nullptr;
void _preset_selected(int p_idx); void _preset_selected(int p_idx);
void _importer_selected(int i_idx); void _importer_selected(int i_idx);

View File

@ -70,34 +70,34 @@ class InspectorDock : public VBoxContainer {
OBJECT_METHOD_BASE = 500 OBJECT_METHOD_BASE = 500
}; };
EditorData *editor_data; EditorData *editor_data = nullptr;
EditorInspector *inspector; EditorInspector *inspector = nullptr;
Object *current; Object *current = nullptr;
Button *backward_button; Button *backward_button = nullptr;
Button *forward_button; Button *forward_button = nullptr;
EditorFileDialog *load_resource_dialog; EditorFileDialog *load_resource_dialog = nullptr;
CreateDialog *new_resource_dialog; CreateDialog *new_resource_dialog = nullptr;
Button *resource_new_button; Button *resource_new_button = nullptr;
Button *resource_load_button; Button *resource_load_button = nullptr;
MenuButton *resource_save_button; MenuButton *resource_save_button = nullptr;
MenuButton *resource_extra_button; MenuButton *resource_extra_button = nullptr;
MenuButton *history_menu; MenuButton *history_menu = nullptr;
LineEdit *search; LineEdit *search = nullptr;
Button *open_docs_button; Button *open_docs_button = nullptr;
MenuButton *object_menu; MenuButton *object_menu = nullptr;
EditorPath *editor_path; EditorPath *editor_path = nullptr;
Button *warning; Button *warning = nullptr;
AcceptDialog *warning_dialog; AcceptDialog *warning_dialog = nullptr;
int current_option = -1; int current_option = -1;
ConfirmationDialog *unique_resources_confirmation; ConfirmationDialog *unique_resources_confirmation = nullptr;
Tree *unique_resources_list_tree; Tree *unique_resources_list_tree = nullptr;
EditorPropertyNameProcessor::Style property_name_style; EditorPropertyNameProcessor::Style property_name_style;

View File

@ -40,22 +40,22 @@ class EditorFileDialog;
class LocalizationEditor : public VBoxContainer { class LocalizationEditor : public VBoxContainer {
GDCLASS(LocalizationEditor, VBoxContainer); GDCLASS(LocalizationEditor, VBoxContainer);
Tree *translation_list; Tree *translation_list = nullptr;
EditorLocaleDialog *locale_select; EditorLocaleDialog *locale_select = nullptr;
EditorFileDialog *translation_file_open; EditorFileDialog *translation_file_open = nullptr;
Button *translation_res_option_add_button; Button *translation_res_option_add_button = nullptr;
EditorFileDialog *translation_res_file_open_dialog; EditorFileDialog *translation_res_file_open_dialog = nullptr;
EditorFileDialog *translation_res_option_file_open_dialog; EditorFileDialog *translation_res_option_file_open_dialog = nullptr;
Tree *translation_remap; Tree *translation_remap = nullptr;
Tree *translation_remap_options; Tree *translation_remap_options = nullptr;
Tree *translation_pot_list; Tree *translation_pot_list = nullptr;
EditorFileDialog *pot_file_open_dialog; EditorFileDialog *pot_file_open_dialog = nullptr;
EditorFileDialog *pot_generate_dialog; EditorFileDialog *pot_generate_dialog = nullptr;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
bool updating_translations = false; bool updating_translations = false;
String localization_changed; String localization_changed;

View File

@ -38,15 +38,15 @@ class ConnectionsDock;
class NodeDock : public VBoxContainer { class NodeDock : public VBoxContainer {
GDCLASS(NodeDock, VBoxContainer); GDCLASS(NodeDock, VBoxContainer);
Button *connections_button; Button *connections_button = nullptr;
Button *groups_button; Button *groups_button = nullptr;
ConnectionsDock *connections; ConnectionsDock *connections = nullptr;
GroupsEditor *groups; GroupsEditor *groups = nullptr;
HBoxContainer *mode_hb; HBoxContainer *mode_hb = nullptr;
Label *select_a_node; Label *select_a_node = nullptr;
private: private:
static NodeDock *singleton; static NodeDock *singleton;

View File

@ -41,18 +41,18 @@
class PluginConfigDialog : public ConfirmationDialog { class PluginConfigDialog : public ConfirmationDialog {
GDCLASS(PluginConfigDialog, ConfirmationDialog); GDCLASS(PluginConfigDialog, ConfirmationDialog);
LineEdit *name_edit; LineEdit *name_edit = nullptr;
LineEdit *subfolder_edit; LineEdit *subfolder_edit = nullptr;
TextEdit *desc_edit; TextEdit *desc_edit = nullptr;
LineEdit *author_edit; LineEdit *author_edit = nullptr;
LineEdit *version_edit; LineEdit *version_edit = nullptr;
OptionButton *script_option_edit; OptionButton *script_option_edit = nullptr;
LineEdit *script_edit; LineEdit *script_edit = nullptr;
CheckBox *active_edit; CheckBox *active_edit = nullptr;
TextureRect *name_validation; TextureRect *name_validation = nullptr;
TextureRect *subfolder_validation; TextureRect *subfolder_validation = nullptr;
TextureRect *script_validation; TextureRect *script_validation = nullptr;
bool _edit_mode; bool _edit_mode;

View File

@ -40,9 +40,9 @@ class CanvasItemEditor;
class AbstractPolygon2DEditor : public HBoxContainer { class AbstractPolygon2DEditor : public HBoxContainer {
GDCLASS(AbstractPolygon2DEditor, HBoxContainer); GDCLASS(AbstractPolygon2DEditor, HBoxContainer);
Button *button_create; Button *button_create = nullptr;
Button *button_edit; Button *button_edit = nullptr;
Button *button_delete; Button *button_delete = nullptr;
struct Vertex { struct Vertex {
Vertex() {} Vertex() {}
@ -85,9 +85,9 @@ class AbstractPolygon2DEditor : public HBoxContainer {
bool _polygon_editing_enabled; bool _polygon_editing_enabled;
CanvasItemEditor *canvas_item_editor; CanvasItemEditor *canvas_item_editor = nullptr;
Panel *panel; Panel *panel = nullptr;
ConfirmationDialog *create_resource; ConfirmationDialog *create_resource = nullptr;
protected: protected:
enum { enum {
@ -99,7 +99,7 @@ protected:
int mode; int mode;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
virtual void _menu_option(int p_option); virtual void _menu_option(int p_option);
void _wip_changed(); void _wip_changed();
@ -149,7 +149,7 @@ public:
class AbstractPolygon2DEditorPlugin : public EditorPlugin { class AbstractPolygon2DEditorPlugin : public EditorPlugin {
GDCLASS(AbstractPolygon2DEditorPlugin, EditorPlugin); GDCLASS(AbstractPolygon2DEditorPlugin, EditorPlugin);
AbstractPolygon2DEditor *polygon_editor; AbstractPolygon2DEditor *polygon_editor = nullptr;
String klass; String klass;
public: public:

View File

@ -45,36 +45,36 @@ class AnimationNodeBlendSpace1DEditor : public AnimationTreeNodeEditorPlugin {
Ref<AnimationNodeBlendSpace1D> blend_space; Ref<AnimationNodeBlendSpace1D> blend_space;
HBoxContainer *goto_parent_hb; HBoxContainer *goto_parent_hb = nullptr;
Button *goto_parent; Button *goto_parent = nullptr;
PanelContainer *panel; PanelContainer *panel = nullptr;
Button *tool_blend; Button *tool_blend = nullptr;
Button *tool_select; Button *tool_select = nullptr;
Button *tool_create; Button *tool_create = nullptr;
VSeparator *tool_erase_sep; VSeparator *tool_erase_sep = nullptr;
Button *tool_erase; Button *tool_erase = nullptr;
Button *snap; Button *snap = nullptr;
SpinBox *snap_value; SpinBox *snap_value = nullptr;
LineEdit *label_value; LineEdit *label_value = nullptr;
SpinBox *max_value; SpinBox *max_value = nullptr;
SpinBox *min_value; SpinBox *min_value = nullptr;
HBoxContainer *edit_hb; HBoxContainer *edit_hb = nullptr;
SpinBox *edit_value; SpinBox *edit_value = nullptr;
Button *open_editor; Button *open_editor = nullptr;
int selected_point; int selected_point;
Control *blend_space_draw; Control *blend_space_draw = nullptr;
PanelContainer *error_panel; PanelContainer *error_panel = nullptr;
Label *error_label; Label *error_label = nullptr;
bool updating; bool updating;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
static AnimationNodeBlendSpace1DEditor *singleton; static AnimationNodeBlendSpace1DEditor *singleton;
@ -87,8 +87,8 @@ class AnimationNodeBlendSpace1DEditor : public AnimationTreeNodeEditorPlugin {
void _labels_changed(String); void _labels_changed(String);
void _snap_toggled(); void _snap_toggled();
PopupMenu *menu; PopupMenu *menu = nullptr;
PopupMenu *animations_menu; PopupMenu *animations_menu = nullptr;
Vector<String> animations_to_add; Vector<String> animations_to_add;
float add_point_pos; float add_point_pos;
Vector<real_t> points; Vector<real_t> points;
@ -108,7 +108,7 @@ class AnimationNodeBlendSpace1DEditor : public AnimationTreeNodeEditorPlugin {
void _edit_point_pos(double); void _edit_point_pos(double);
void _open_editor(); void _open_editor();
EditorFileDialog *open_file; EditorFileDialog *open_file = nullptr;
Ref<AnimationNode> file_loaded; Ref<AnimationNode> file_loaded;
void _file_opened(const String &p_file); void _file_opened(const String &p_file);

View File

@ -45,43 +45,43 @@ class AnimationNodeBlendSpace2DEditor : public AnimationTreeNodeEditorPlugin {
Ref<AnimationNodeBlendSpace2D> blend_space; Ref<AnimationNodeBlendSpace2D> blend_space;
PanelContainer *panel; PanelContainer *panel = nullptr;
Button *tool_blend; Button *tool_blend = nullptr;
Button *tool_select; Button *tool_select = nullptr;
Button *tool_create; Button *tool_create = nullptr;
Button *tool_triangle; Button *tool_triangle = nullptr;
VSeparator *tool_erase_sep; VSeparator *tool_erase_sep = nullptr;
Button *tool_erase; Button *tool_erase = nullptr;
Button *snap; Button *snap = nullptr;
SpinBox *snap_x; SpinBox *snap_x = nullptr;
SpinBox *snap_y; SpinBox *snap_y = nullptr;
OptionButton *interpolation; OptionButton *interpolation = nullptr;
Button *auto_triangles; Button *auto_triangles = nullptr;
LineEdit *label_x; LineEdit *label_x = nullptr;
LineEdit *label_y; LineEdit *label_y = nullptr;
SpinBox *max_x_value; SpinBox *max_x_value = nullptr;
SpinBox *min_x_value; SpinBox *min_x_value = nullptr;
SpinBox *max_y_value; SpinBox *max_y_value = nullptr;
SpinBox *min_y_value; SpinBox *min_y_value = nullptr;
HBoxContainer *edit_hb; HBoxContainer *edit_hb = nullptr;
SpinBox *edit_x; SpinBox *edit_x = nullptr;
SpinBox *edit_y; SpinBox *edit_y = nullptr;
Button *open_editor; Button *open_editor = nullptr;
int selected_point; int selected_point;
int selected_triangle; int selected_triangle;
Control *blend_space_draw; Control *blend_space_draw = nullptr;
PanelContainer *error_panel; PanelContainer *error_panel = nullptr;
Label *error_label; Label *error_label = nullptr;
bool updating; bool updating;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
static AnimationNodeBlendSpace2DEditor *singleton; static AnimationNodeBlendSpace2DEditor *singleton;
@ -94,8 +94,8 @@ class AnimationNodeBlendSpace2DEditor : public AnimationTreeNodeEditorPlugin {
void _labels_changed(String); void _labels_changed(String);
void _snap_toggled(); void _snap_toggled();
PopupMenu *menu; PopupMenu *menu = nullptr;
PopupMenu *animations_menu; PopupMenu *animations_menu = nullptr;
Vector<String> animations_to_add; Vector<String> animations_to_add;
Vector2 add_point_pos; Vector2 add_point_pos;
Vector<Vector2> points; Vector<Vector2> points;
@ -123,7 +123,7 @@ class AnimationNodeBlendSpace2DEditor : public AnimationTreeNodeEditorPlugin {
StringName get_blend_position_path() const; StringName get_blend_position_path() const;
EditorFileDialog *open_file; EditorFileDialog *open_file = nullptr;
Ref<AnimationNode> file_loaded; Ref<AnimationNode> file_loaded;
void _file_opened(const String &p_file); void _file_opened(const String &p_file);

View File

@ -47,19 +47,19 @@ class AnimationNodeBlendTreeEditor : public AnimationTreeNodeEditorPlugin {
GDCLASS(AnimationNodeBlendTreeEditor, AnimationTreeNodeEditorPlugin); GDCLASS(AnimationNodeBlendTreeEditor, AnimationTreeNodeEditorPlugin);
Ref<AnimationNodeBlendTree> blend_tree; Ref<AnimationNodeBlendTree> blend_tree;
GraphEdit *graph; GraphEdit *graph = nullptr;
MenuButton *add_node; MenuButton *add_node = nullptr;
Vector2 position_from_popup_menu; Vector2 position_from_popup_menu;
bool use_position_from_popup_menu; bool use_position_from_popup_menu;
PanelContainer *error_panel; PanelContainer *error_panel = nullptr;
Label *error_label; Label *error_label = nullptr;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
AcceptDialog *filter_dialog; AcceptDialog *filter_dialog = nullptr;
Tree *filters; Tree *filters = nullptr;
CheckBox *filter_enabled; CheckBox *filter_enabled = nullptr;
Map<StringName, ProgressBar *> animations; Map<StringName, ProgressBar *> animations;
Vector<EditorProperty *> visible_properties; Vector<EditorProperty *> visible_properties;
@ -122,7 +122,7 @@ class AnimationNodeBlendTreeEditor : public AnimationTreeNodeEditorPlugin {
void _update_editor_settings(); void _update_editor_settings();
void _update_theme(); void _update_theme();
EditorFileDialog *open_file; EditorFileDialog *open_file = nullptr;
Ref<AnimationNode> file_loaded; Ref<AnimationNode> file_loaded;
void _file_opened(const String &p_file); void _file_opened(const String &p_file);

View File

@ -46,8 +46,8 @@ class AnimationPlayerEditorPlugin;
class AnimationPlayerEditor : public VBoxContainer { class AnimationPlayerEditor : public VBoxContainer {
GDCLASS(AnimationPlayerEditor, VBoxContainer); GDCLASS(AnimationPlayerEditor, VBoxContainer);
AnimationPlayerEditorPlugin *plugin; AnimationPlayerEditorPlugin *plugin = nullptr;
AnimationPlayer *player; AnimationPlayer *player = nullptr;
enum { enum {
TOOL_NEW_ANIM, TOOL_NEW_ANIM,
@ -88,31 +88,31 @@ class AnimationPlayerEditor : public VBoxContainer {
RESOURCE_SAVE RESOURCE_SAVE
}; };
OptionButton *animation; OptionButton *animation = nullptr;
Button *stop; Button *stop = nullptr;
Button *play; Button *play = nullptr;
Button *play_from; Button *play_from = nullptr;
Button *play_bw; Button *play_bw = nullptr;
Button *play_bw_from; Button *play_bw_from = nullptr;
Button *autoplay; Button *autoplay = nullptr;
MenuButton *tool_anim; MenuButton *tool_anim = nullptr;
Button *onion_toggle; Button *onion_toggle = nullptr;
MenuButton *onion_skinning; MenuButton *onion_skinning = nullptr;
Button *pin; Button *pin = nullptr;
SpinBox *frame; SpinBox *frame = nullptr;
LineEdit *scale; LineEdit *scale = nullptr;
LineEdit *name; LineEdit *name = nullptr;
Label *name_title; Label *name_title = nullptr;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
Ref<Texture2D> autoplay_icon; Ref<Texture2D> autoplay_icon;
Ref<Texture2D> reset_icon; Ref<Texture2D> reset_icon;
Ref<ImageTexture> autoplay_reset_icon; Ref<ImageTexture> autoplay_reset_icon;
bool last_active; bool last_active;
float timeline_position; float timeline_position;
EditorFileDialog *file; EditorFileDialog *file = nullptr;
ConfirmationDialog *delete_dialog; ConfirmationDialog *delete_dialog = nullptr;
struct BlendEditor { struct BlendEditor {
AcceptDialog *dialog = nullptr; AcceptDialog *dialog = nullptr;
@ -121,14 +121,14 @@ class AnimationPlayerEditor : public VBoxContainer {
} blend_editor; } blend_editor;
ConfirmationDialog *name_dialog; ConfirmationDialog *name_dialog = nullptr;
ConfirmationDialog *error_dialog; ConfirmationDialog *error_dialog = nullptr;
int name_dialog_op = TOOL_NEW_ANIM; int name_dialog_op = TOOL_NEW_ANIM;
bool updating; bool updating;
bool updating_blends; bool updating_blends;
AnimationTrackEditor *track_editor; AnimationTrackEditor *track_editor = nullptr;
static AnimationPlayerEditor *singleton; static AnimationPlayerEditor *singleton;
// Onion skinning. // Onion skinning.
@ -250,7 +250,7 @@ public:
class AnimationPlayerEditorPlugin : public EditorPlugin { class AnimationPlayerEditorPlugin : public EditorPlugin {
GDCLASS(AnimationPlayerEditorPlugin, EditorPlugin); GDCLASS(AnimationPlayerEditorPlugin, EditorPlugin);
AnimationPlayerEditor *anim_editor; AnimationPlayerEditor *anim_editor = nullptr;
protected: protected:
void _notification(int p_what); void _notification(int p_what);

View File

@ -47,36 +47,36 @@ class AnimationNodeStateMachineEditor : public AnimationTreeNodeEditorPlugin {
Ref<AnimationNodeStateMachine> state_machine; Ref<AnimationNodeStateMachine> state_machine;
Button *tool_select; Button *tool_select = nullptr;
Button *tool_create; Button *tool_create = nullptr;
Button *tool_connect; Button *tool_connect = nullptr;
Popup *name_edit_popup; Popup *name_edit_popup = nullptr;
LineEdit *name_edit; LineEdit *name_edit = nullptr;
HBoxContainer *tool_erase_hb; HBoxContainer *tool_erase_hb = nullptr;
Button *tool_erase; Button *tool_erase = nullptr;
Button *tool_autoplay; Button *tool_autoplay = nullptr;
Button *tool_end; Button *tool_end = nullptr;
OptionButton *transition_mode; OptionButton *transition_mode = nullptr;
OptionButton *play_mode; OptionButton *play_mode = nullptr;
PanelContainer *panel; PanelContainer *panel = nullptr;
StringName selected_node; StringName selected_node;
HScrollBar *h_scroll; HScrollBar *h_scroll = nullptr;
VScrollBar *v_scroll; VScrollBar *v_scroll = nullptr;
Control *state_machine_draw; Control *state_machine_draw = nullptr;
Control *state_machine_play_pos; Control *state_machine_play_pos = nullptr;
PanelContainer *error_panel; PanelContainer *error_panel = nullptr;
Label *error_label; Label *error_label = nullptr;
bool updating; bool updating;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
static AnimationNodeStateMachineEditor *singleton; static AnimationNodeStateMachineEditor *singleton;
@ -87,8 +87,8 @@ class AnimationNodeStateMachineEditor : public AnimationTreeNodeEditorPlugin {
void _update_graph(); void _update_graph();
PopupMenu *menu; PopupMenu *menu = nullptr;
PopupMenu *animations_menu; PopupMenu *animations_menu = nullptr;
Vector<String> animations_to_add; Vector<String> animations_to_add;
Vector2 add_node_pos; Vector2 add_node_pos;
@ -166,7 +166,7 @@ class AnimationNodeStateMachineEditor : public AnimationTreeNodeEditorPlugin {
float error_time; float error_time;
String error_text; String error_text;
EditorFileDialog *open_file; EditorFileDialog *open_file = nullptr;
Ref<AnimationNode> file_loaded; Ref<AnimationNode> file_loaded;
void _file_opened(const String &p_file); void _file_opened(const String &p_file);

View File

@ -52,11 +52,11 @@ public:
class AnimationTreeEditor : public VBoxContainer { class AnimationTreeEditor : public VBoxContainer {
GDCLASS(AnimationTreeEditor, VBoxContainer); GDCLASS(AnimationTreeEditor, VBoxContainer);
ScrollContainer *path_edit; ScrollContainer *path_edit = nullptr;
HBoxContainer *path_hb; HBoxContainer *path_hb = nullptr;
AnimationTree *tree; AnimationTree *tree = nullptr;
MarginContainer *editor_base; MarginContainer *editor_base = nullptr;
Vector<String> button_path; Vector<String> button_path;
Vector<String> edited_path; Vector<String> edited_path;
@ -96,8 +96,8 @@ public:
class AnimationTreeEditorPlugin : public EditorPlugin { class AnimationTreeEditorPlugin : public EditorPlugin {
GDCLASS(AnimationTreeEditorPlugin, EditorPlugin); GDCLASS(AnimationTreeEditorPlugin, EditorPlugin);
AnimationTreeEditor *anim_tree_editor; AnimationTreeEditor *anim_tree_editor = nullptr;
Button *button; Button *button = nullptr;
public: public:
virtual String get_name() const override { return "AnimationTree"; } virtual String get_name() const override { return "AnimationTree"; }

View File

@ -53,12 +53,12 @@
class EditorAssetLibraryItem : public PanelContainer { class EditorAssetLibraryItem : public PanelContainer {
GDCLASS(EditorAssetLibraryItem, PanelContainer); GDCLASS(EditorAssetLibraryItem, PanelContainer);
TextureButton *icon; TextureButton *icon = nullptr;
LinkButton *title; LinkButton *title = nullptr;
LinkButton *category; LinkButton *category = nullptr;
LinkButton *author; LinkButton *author = nullptr;
TextureRect *stars[5]; TextureRect *stars[5];
Label *price; Label *price = nullptr;
int asset_id; int asset_id;
int category_id; int category_id;
@ -83,11 +83,11 @@ public:
class EditorAssetLibraryItemDescription : public ConfirmationDialog { class EditorAssetLibraryItemDescription : public ConfirmationDialog {
GDCLASS(EditorAssetLibraryItemDescription, ConfirmationDialog); GDCLASS(EditorAssetLibraryItemDescription, ConfirmationDialog);
EditorAssetLibraryItem *item; EditorAssetLibraryItem *item = nullptr;
RichTextLabel *description; RichTextLabel *description = nullptr;
ScrollContainer *previews; ScrollContainer *previews = nullptr;
HBoxContainer *preview_hb; HBoxContainer *preview_hb = nullptr;
PanelContainer *previews_bg; PanelContainer *previews_bg = nullptr;
struct Preview { struct Preview {
int id = 0; int id = 0;
@ -98,7 +98,7 @@ class EditorAssetLibraryItemDescription : public ConfirmationDialog {
}; };
Vector<Preview> preview_images; Vector<Preview> preview_images;
TextureRect *preview; TextureRect *preview = nullptr;
void set_image(int p_type, int p_index, const Ref<Texture2D> &p_image); void set_image(int p_type, int p_index, const Ref<Texture2D> &p_image);
@ -130,19 +130,19 @@ public:
class EditorAssetLibraryItemDownload : public MarginContainer { class EditorAssetLibraryItemDownload : public MarginContainer {
GDCLASS(EditorAssetLibraryItemDownload, MarginContainer); GDCLASS(EditorAssetLibraryItemDownload, MarginContainer);
PanelContainer *panel; PanelContainer *panel = nullptr;
TextureRect *icon; TextureRect *icon = nullptr;
Label *title; Label *title = nullptr;
ProgressBar *progress; ProgressBar *progress = nullptr;
Button *install_button; Button *install_button = nullptr;
Button *retry_button; Button *retry_button = nullptr;
TextureButton *dismiss_button; TextureButton *dismiss_button = nullptr;
AcceptDialog *download_error; AcceptDialog *download_error = nullptr;
HTTPRequest *download; HTTPRequest *download = nullptr;
String host; String host;
String sha256; String sha256;
Label *status; Label *status = nullptr;
int prev_status; int prev_status;
@ -150,7 +150,7 @@ class EditorAssetLibraryItemDownload : public MarginContainer {
bool external_install; bool external_install;
EditorAssetInstaller *asset_installer; EditorAssetInstaller *asset_installer = nullptr;
void _close(); void _close();
void _make_request(); void _make_request();
@ -176,35 +176,35 @@ class EditorAssetLibrary : public PanelContainer {
String host; String host;
EditorFileDialog *asset_open; EditorFileDialog *asset_open = nullptr;
EditorAssetInstaller *asset_installer; EditorAssetInstaller *asset_installer = nullptr;
void _asset_open(); void _asset_open();
void _asset_file_selected(const String &p_file); void _asset_file_selected(const String &p_file);
void _update_repository_options(); void _update_repository_options();
PanelContainer *library_scroll_bg; PanelContainer *library_scroll_bg = nullptr;
ScrollContainer *library_scroll; ScrollContainer *library_scroll = nullptr;
VBoxContainer *library_vb; VBoxContainer *library_vb = nullptr;
Label *library_loading; Label *library_loading = nullptr;
Label *library_error; Label *library_error = nullptr;
LineEdit *filter; LineEdit *filter = nullptr;
Timer *filter_debounce_timer; Timer *filter_debounce_timer = nullptr;
OptionButton *categories; OptionButton *categories = nullptr;
OptionButton *repository; OptionButton *repository = nullptr;
OptionButton *sort; OptionButton *sort = nullptr;
HBoxContainer *error_hb; HBoxContainer *error_hb = nullptr;
TextureRect *error_tr; TextureRect *error_tr = nullptr;
Label *error_label; Label *error_label = nullptr;
MenuButton *support; MenuButton *support = nullptr;
HBoxContainer *contents; HBoxContainer *contents = nullptr;
HBoxContainer *asset_top_page; HBoxContainer *asset_top_page = nullptr;
GridContainer *asset_items; GridContainer *asset_items = nullptr;
HBoxContainer *asset_bottom_page; HBoxContainer *asset_bottom_page = nullptr;
HTTPRequest *request; HTTPRequest *request = nullptr;
bool templates_only; bool templates_only;
bool initial_loading; bool initial_loading;
@ -260,7 +260,7 @@ class EditorAssetLibrary : public PanelContainer {
HBoxContainer *_make_pages(int p_page, int p_page_count, int p_page_len, int p_total_items, int p_current_items); HBoxContainer *_make_pages(int p_page, int p_page_count, int p_page_len, int p_total_items, int p_current_items);
// //
EditorAssetLibraryItemDescription *description; EditorAssetLibraryItemDescription *description = nullptr;
// //
enum RequestType { enum RequestType {
@ -273,8 +273,8 @@ class EditorAssetLibrary : public PanelContainer {
RequestType requesting; RequestType requesting;
Dictionary category_map; Dictionary category_map;
ScrollContainer *downloads_scroll; ScrollContainer *downloads_scroll = nullptr;
HBoxContainer *downloads_hb; HBoxContainer *downloads_hb = nullptr;
void _install_asset(); void _install_asset();
@ -315,7 +315,7 @@ public:
class AssetLibraryEditorPlugin : public EditorPlugin { class AssetLibraryEditorPlugin : public EditorPlugin {
GDCLASS(AssetLibraryEditorPlugin, EditorPlugin); GDCLASS(AssetLibraryEditorPlugin, EditorPlugin);
EditorAssetLibrary *addon_library; EditorAssetLibrary *addon_library = nullptr;
public: public:
virtual String get_name() const override { return "AssetLib"; } virtual String get_name() const override { return "AssetLib"; }

View File

@ -75,7 +75,7 @@ public:
class AudioStreamEditorPlugin : public EditorPlugin { class AudioStreamEditorPlugin : public EditorPlugin {
GDCLASS(AudioStreamEditorPlugin, EditorPlugin); GDCLASS(AudioStreamEditorPlugin, EditorPlugin);
AudioStreamEditor *audio_editor; AudioStreamEditor *audio_editor = nullptr;
public: public:
virtual String get_name() const override { return "Audio"; } virtual String get_name() const override { return "Audio"; }

View File

@ -37,9 +37,9 @@
class Camera3DEditor : public Control { class Camera3DEditor : public Control {
GDCLASS(Camera3DEditor, Control); GDCLASS(Camera3DEditor, Control);
Panel *panel; Panel *panel = nullptr;
Button *preview; Button *preview = nullptr;
Node *node; Node *node = nullptr;
void _pressed(); void _pressed();

View File

@ -183,16 +183,16 @@ private:
bool selection_menu_additive_selection; bool selection_menu_additive_selection;
Tool tool = TOOL_SELECT; Tool tool = TOOL_SELECT;
Control *viewport; Control *viewport = nullptr;
Control *viewport_scrollable; Control *viewport_scrollable = nullptr;
HScrollBar *h_scroll; HScrollBar *h_scroll = nullptr;
VScrollBar *v_scroll; VScrollBar *v_scroll = nullptr;
HBoxContainer *hb; HBoxContainer *hb = nullptr;
// Used for secondary menu items which are displayed depending on the currently selected node // Used for secondary menu items which are displayed depending on the currently selected node
// (such as MeshInstance's "Mesh" menu). // (such as MeshInstance's "Mesh" menu).
PanelContainer *context_menu_container; PanelContainer *context_menu_container = nullptr;
HBoxContainer *hbc_context_menu; HBoxContainer *hbc_context_menu = nullptr;
Transform2D transform; Transform2D transform;
GridVisibility grid_visibility = GRID_VISIBILITY_SHOW_WHEN_SNAPPING; GridVisibility grid_visibility = GRID_VISIBILITY_SHOW_WHEN_SNAPPING;
@ -293,47 +293,47 @@ private:
}; };
List<PoseClipboard> pose_clipboard; List<PoseClipboard> pose_clipboard;
Button *select_button; Button *select_button = nullptr;
Button *move_button; Button *move_button = nullptr;
Button *scale_button; Button *scale_button = nullptr;
Button *rotate_button; Button *rotate_button = nullptr;
Button *list_select_button; Button *list_select_button = nullptr;
Button *pivot_button; Button *pivot_button = nullptr;
Button *pan_button; Button *pan_button = nullptr;
Button *ruler_button; Button *ruler_button = nullptr;
Button *smart_snap_button; Button *smart_snap_button = nullptr;
Button *grid_snap_button; Button *grid_snap_button = nullptr;
MenuButton *snap_config_menu; MenuButton *snap_config_menu = nullptr;
PopupMenu *smartsnap_config_popup; PopupMenu *smartsnap_config_popup = nullptr;
Button *lock_button; Button *lock_button = nullptr;
Button *unlock_button; Button *unlock_button = nullptr;
Button *group_button; Button *group_button = nullptr;
Button *ungroup_button; Button *ungroup_button = nullptr;
MenuButton *skeleton_menu; MenuButton *skeleton_menu = nullptr;
Button *override_camera_button; Button *override_camera_button = nullptr;
MenuButton *view_menu; MenuButton *view_menu = nullptr;
PopupMenu *grid_menu; PopupMenu *grid_menu = nullptr;
HBoxContainer *animation_hb; HBoxContainer *animation_hb = nullptr;
MenuButton *animation_menu; MenuButton *animation_menu = nullptr;
Button *key_loc_button; Button *key_loc_button = nullptr;
Button *key_rot_button; Button *key_rot_button = nullptr;
Button *key_scale_button; Button *key_scale_button = nullptr;
Button *key_insert_button; Button *key_insert_button = nullptr;
Button *key_auto_insert_button; Button *key_auto_insert_button = nullptr;
PopupMenu *selection_menu; PopupMenu *selection_menu = nullptr;
PopupMenu *add_node_menu; PopupMenu *add_node_menu = nullptr;
Control *top_ruler; Control *top_ruler = nullptr;
Control *left_ruler; Control *left_ruler = nullptr;
Point2 drag_start_origin; Point2 drag_start_origin;
DragType drag_type = DRAG_NONE; DragType drag_type = DRAG_NONE;
@ -374,9 +374,9 @@ private:
void _find_canvas_items_in_rect(const Rect2 &p_rect, Node *p_node, List<CanvasItem *> *r_items, const Transform2D &p_parent_xform = Transform2D(), const Transform2D &p_canvas_xform = Transform2D()); void _find_canvas_items_in_rect(const Rect2 &p_rect, Node *p_node, List<CanvasItem *> *r_items, const Transform2D &p_parent_xform = Transform2D(), const Transform2D &p_canvas_xform = Transform2D());
bool _select_click_on_item(CanvasItem *item, Point2 p_click_pos, bool p_append); bool _select_click_on_item(CanvasItem *item, Point2 p_click_pos, bool p_append);
ConfirmationDialog *snap_dialog; ConfirmationDialog *snap_dialog = nullptr;
CanvasItem *ref_item; CanvasItem *ref_item = nullptr;
void _save_canvas_item_state(List<CanvasItem *> p_canvas_items, bool save_bones = false); void _save_canvas_item_state(List<CanvasItem *> p_canvas_items, bool save_bones = false);
void _restore_canvas_item_state(List<CanvasItem *> p_canvas_items, bool restore_bones = false); void _restore_canvas_item_state(List<CanvasItem *> p_canvas_items, bool restore_bones = false);
@ -400,7 +400,7 @@ private:
void _prepare_grid_menu(); void _prepare_grid_menu();
void _on_grid_menu_id_pressed(int p_id); void _on_grid_menu_id_pressed(int p_id);
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
List<CanvasItem *> _get_edited_canvas_items(bool retrieve_locked = false, bool remove_canvas_item_if_parent_in_selection = true); List<CanvasItem *> _get_edited_canvas_items(bool retrieve_locked = false, bool remove_canvas_item_if_parent_in_selection = true);
Rect2 _get_encompassing_rect_from_list(List<CanvasItem *> p_list); Rect2 _get_encompassing_rect_from_list(List<CanvasItem *> p_list);
@ -476,8 +476,8 @@ private:
const SnapTarget p_snap_target, List<const CanvasItem *> p_exceptions, const SnapTarget p_snap_target, List<const CanvasItem *> p_exceptions,
const Node *p_current); const Node *p_current);
VBoxContainer *controls_vb; VBoxContainer *controls_vb = nullptr;
EditorZoomWidget *zoom_widget; EditorZoomWidget *zoom_widget = nullptr;
void _update_zoom(real_t p_zoom); void _update_zoom(real_t p_zoom);
void _shortcut_zoom_set(real_t p_zoom); void _shortcut_zoom_set(real_t p_zoom);
void _zoom_on_position(real_t p_zoom, Point2 p_position = Point2()); void _zoom_on_position(real_t p_zoom, Point2 p_position = Point2());
@ -488,9 +488,9 @@ private:
void _update_override_camera_button(bool p_game_running); void _update_override_camera_button(bool p_game_running);
HSplitContainer *left_panel_split; HSplitContainer *left_panel_split = nullptr;
HSplitContainer *right_panel_split; HSplitContainer *right_panel_split = nullptr;
VSplitContainer *bottom_split; VSplitContainer *bottom_split = nullptr;
void _update_context_menu_stylebox(); void _update_context_menu_stylebox();
@ -555,7 +555,7 @@ public:
void focus_selection(); void focus_selection();
EditorSelection *editor_selection; EditorSelection *editor_selection = nullptr;
CanvasItemEditor(); CanvasItemEditor();
}; };
@ -563,7 +563,7 @@ public:
class CanvasItemEditorPlugin : public EditorPlugin { class CanvasItemEditorPlugin : public EditorPlugin {
GDCLASS(CanvasItemEditorPlugin, EditorPlugin); GDCLASS(CanvasItemEditorPlugin, EditorPlugin);
CanvasItemEditor *canvas_item_editor; CanvasItemEditor *canvas_item_editor = nullptr;
public: public:
virtual String get_name() const override { return "2D"; } virtual String get_name() const override { return "2D"; }
@ -589,18 +589,18 @@ class CanvasItemEditorViewport : public Control {
Vector<String> texture_node_types; Vector<String> texture_node_types;
Vector<String> selected_files; Vector<String> selected_files;
Node *target_node; Node *target_node = nullptr;
Point2 drop_pos; Point2 drop_pos;
EditorData *editor_data; EditorData *editor_data = nullptr;
CanvasItemEditor *canvas_item_editor; CanvasItemEditor *canvas_item_editor = nullptr;
Control *preview_node; Control *preview_node = nullptr;
AcceptDialog *accept; AcceptDialog *accept = nullptr;
AcceptDialog *selector; AcceptDialog *selector = nullptr;
Label *selector_label; Label *selector_label = nullptr;
Label *label; Label *label = nullptr;
Label *label_desc; Label *label_desc = nullptr;
VBoxContainer *btn_group; VBoxContainer *btn_group = nullptr;
Ref<ButtonGroup> button_group; Ref<ButtonGroup> button_group;
void _on_mouse_exit(); void _on_mouse_exit();

View File

@ -37,7 +37,7 @@
class CollisionPolygon2DEditor : public AbstractPolygon2DEditor { class CollisionPolygon2DEditor : public AbstractPolygon2DEditor {
GDCLASS(CollisionPolygon2DEditor, AbstractPolygon2DEditor); GDCLASS(CollisionPolygon2DEditor, AbstractPolygon2DEditor);
CollisionPolygon2D *node; CollisionPolygon2D *node = nullptr;
protected: protected:
virtual Node2D *_get_node() const override; virtual Node2D *_get_node() const override;

View File

@ -61,9 +61,9 @@ class CollisionShape2DEditor : public Control {
Point2(1, -1), Point2(1, -1),
}; };
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
CanvasItemEditor *canvas_item_editor; CanvasItemEditor *canvas_item_editor = nullptr;
CollisionShape2D *node; CollisionShape2D *node = nullptr;
Vector<Point2> handles; Vector<Point2> handles;
@ -96,7 +96,7 @@ public:
class CollisionShape2DEditorPlugin : public EditorPlugin { class CollisionShape2DEditorPlugin : public EditorPlugin {
GDCLASS(CollisionShape2DEditorPlugin, EditorPlugin); GDCLASS(CollisionShape2DEditorPlugin, EditorPlugin);
CollisionShape2DEditor *collision_shape_2d_editor; CollisionShape2DEditor *collision_shape_2d_editor = nullptr;
public: public:
virtual bool forward_canvas_gui_input(const Ref<InputEvent> &p_event) override { return collision_shape_2d_editor->forward_canvas_gui_input(p_event); } virtual bool forward_canvas_gui_input(const Ref<InputEvent> &p_event) override { return collision_shape_2d_editor->forward_canvas_gui_input(p_event); }

View File

@ -70,7 +70,7 @@ public:
class EditorPropertyAnchorsPreset : public EditorProperty { class EditorPropertyAnchorsPreset : public EditorProperty {
GDCLASS(EditorPropertyAnchorsPreset, EditorProperty); GDCLASS(EditorPropertyAnchorsPreset, EditorProperty);
OptionButton *options; OptionButton *options = nullptr;
void _option_selected(int p_which); void _option_selected(int p_which);
@ -94,9 +94,9 @@ class EditorPropertySizeFlags : public EditorProperty {
SIZE_FLAGS_PRESET_CUSTOM, SIZE_FLAGS_PRESET_CUSTOM,
}; };
OptionButton *flag_presets; OptionButton *flag_presets = nullptr;
CheckBox *flag_expand; CheckBox *flag_expand = nullptr;
VBoxContainer *flag_options; VBoxContainer *flag_options = nullptr;
Vector<CheckBox *> flag_checks; Vector<CheckBox *> flag_checks;
bool vertical = false; bool vertical = false;
@ -128,8 +128,8 @@ public:
class ControlEditorToolbar : public HBoxContainer { class ControlEditorToolbar : public HBoxContainer {
GDCLASS(ControlEditorToolbar, HBoxContainer); GDCLASS(ControlEditorToolbar, HBoxContainer);
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
EditorSelection *editor_selection; EditorSelection *editor_selection = nullptr;
enum MenuOption { enum MenuOption {
ANCHORS_AND_OFFSETS_PRESET_TOP_LEFT, ANCHORS_AND_OFFSETS_PRESET_TOP_LEFT,
@ -198,12 +198,12 @@ class ControlEditorToolbar : public HBoxContainer {
CONTAINERS_V_PRESET_SHRINK_END, CONTAINERS_V_PRESET_SHRINK_END,
}; };
MenuButton *anchor_presets_menu; MenuButton *anchor_presets_menu = nullptr;
PopupMenu *anchors_popup; PopupMenu *anchors_popup = nullptr;
MenuButton *container_h_presets_menu; MenuButton *container_h_presets_menu = nullptr;
MenuButton *container_v_presets_menu; MenuButton *container_v_presets_menu = nullptr;
Button *anchor_mode_button; Button *anchor_mode_button = nullptr;
bool anchors_mode = false; bool anchors_mode = false;
@ -239,7 +239,7 @@ public:
class ControlEditorPlugin : public EditorPlugin { class ControlEditorPlugin : public EditorPlugin {
GDCLASS(ControlEditorPlugin, EditorPlugin); GDCLASS(ControlEditorPlugin, EditorPlugin);
ControlEditorToolbar *toolbar; ControlEditorToolbar *toolbar = nullptr;
public: public:
virtual String get_name() const override { return "Control"; } virtual String get_name() const override { return "Control"; }

View File

@ -55,22 +55,22 @@ class CPUParticles2DEditorPlugin : public EditorPlugin {
EMISSION_MODE_BORDER_DIRECTED EMISSION_MODE_BORDER_DIRECTED
}; };
CPUParticles2D *particles; CPUParticles2D *particles = nullptr;
EditorFileDialog *file; EditorFileDialog *file = nullptr;
HBoxContainer *toolbar; HBoxContainer *toolbar = nullptr;
MenuButton *menu; MenuButton *menu = nullptr;
SpinBox *epoints; SpinBox *epoints = nullptr;
ConfirmationDialog *emission_mask; ConfirmationDialog *emission_mask = nullptr;
OptionButton *emission_mask_mode; OptionButton *emission_mask_mode = nullptr;
CheckBox *emission_colors; CheckBox *emission_colors = nullptr;
String source_emission_file; String source_emission_file;
UndoRedo *undo_redo; UndoRedo *undo_redo = nullptr;
void _file_selected(const String &p_file); void _file_selected(const String &p_file);
void _menu_callback(int p_idx); void _menu_callback(int p_idx);
void _generate_emission_mask(); void _generate_emission_mask();

Some files were not shown because too many files have changed in this diff Show More