summaryrefslogtreecommitdiff
path: root/editor/groups_editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/groups_editor.h')
-rw-r--r--editor/groups_editor.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/editor/groups_editor.h b/editor/groups_editor.h
index aa70ac5bc4..75cbfd01a4 100644
--- a/editor/groups_editor.h
+++ b/editor/groups_editor.h
@@ -43,32 +43,32 @@
class GroupDialog : public AcceptDialog {
GDCLASS(GroupDialog, AcceptDialog);
- ConfirmationDialog *error;
+ ConfirmationDialog *error = nullptr;
- SceneTree *scene_tree;
- TreeItem *groups_root;
+ SceneTree *scene_tree = nullptr;
+ TreeItem *groups_root = nullptr;
- LineEdit *add_group_text;
- Button *add_group_button;
+ LineEdit *add_group_text = nullptr;
+ Button *add_group_button = nullptr;
- Tree *groups;
+ Tree *groups = nullptr;
- Tree *nodes_to_add;
- TreeItem *add_node_root;
- LineEdit *add_filter;
+ Tree *nodes_to_add = nullptr;
+ TreeItem *add_node_root = nullptr;
+ LineEdit *add_filter = nullptr;
- Tree *nodes_to_remove;
- TreeItem *remove_node_root;
- LineEdit *remove_filter;
+ Tree *nodes_to_remove = nullptr;
+ TreeItem *remove_node_root = nullptr;
+ LineEdit *remove_filter = nullptr;
- Label *group_empty;
+ Label *group_empty = nullptr;
- Button *add_button;
- Button *remove_button;
+ Button *add_button = nullptr;
+ Button *remove_button = nullptr;
String selected_group;
- UndoRedo *undo_redo;
+ UndoRedo *undo_redo = nullptr;
void _group_selected();
@@ -84,7 +84,7 @@ class GroupDialog : public AcceptDialog {
void _rename_group_item(const String &p_old_name, const String &p_new_name);
void _add_group(String p_name);
- void _modify_group_pressed(Object *p_item, int p_column, int p_id);
+ void _modify_group_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button);
void _delete_group_item(const String &p_name);
bool _can_edit(Node *p_node, String p_group);
@@ -111,19 +111,19 @@ public:
class GroupsEditor : public VBoxContainer {
GDCLASS(GroupsEditor, VBoxContainer);
- Node *node;
+ Node *node = nullptr;
- GroupDialog *group_dialog;
+ GroupDialog *group_dialog = nullptr;
- LineEdit *group_name;
- Button *add;
- Tree *tree;
+ LineEdit *group_name = nullptr;
+ Button *add = nullptr;
+ Tree *tree = nullptr;
- UndoRedo *undo_redo;
+ UndoRedo *undo_redo = nullptr;
void update_tree();
void _add_group(const String &p_group = "");
- void _modify_group(Object *p_item, int p_column, int p_id);
+ void _modify_group(Object *p_item, int p_column, int p_id, MouseButton p_button);
void _group_name_changed(const String &p_new_text);
void _show_group_dialog();