diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2015-12-08 17:07:05 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-08 17:07:05 -0300 |
| commit | ee09c5dbd9bf676bff1130b2d60ae702e43e37e8 (patch) | |
| tree | 90ceccb5dfa4004cf60a006f46b22fe13a6fec0c /tools/editor/groups_editor.h | |
| parent | b6d6c2220fbdda9c8e29bd1333b64889e0c867a7 (diff) | |
| parent | 118f3cdcf66b3847180cdccdfd7ee0c53974b0b9 (diff) | |
Merge pull request #2919 from TheHX/pr-groups-editor
Update Groups Editor
Diffstat (limited to 'tools/editor/groups_editor.h')
| -rw-r--r-- | tools/editor/groups_editor.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/tools/editor/groups_editor.h b/tools/editor/groups_editor.h index 09883a150f..3a9cc77727 100644 --- a/tools/editor/groups_editor.h +++ b/tools/editor/groups_editor.h @@ -29,42 +29,42 @@ #ifndef GROUPS_EDITOR_H #define GROUPS_EDITOR_H - #include "scene/gui/dialogs.h" #include "scene/gui/button.h" #include "scene/gui/tree.h" #include "scene/gui/line_edit.h" #include "undo_redo.h" + /** @author Juan Linietsky <reduzio@gmail.com> */ -class GroupsEditor : public ConfirmationDialog { - - OBJ_TYPE( GroupsEditor, ConfirmationDialog ); - + +class GroupsEditor : public AcceptDialog { + + OBJ_TYPE(GroupsEditor,AcceptDialog); + + Node *node; + LineEdit *group_name; - Tree *tree; Button *add; - Button *remove; - Node *node; + Tree *tree; + UndoRedo *undo_redo; - + void update_tree(); - void _add(); - void _remove(); + void _add_group(const String& p_group=""); + void _remove_group(Object *p_item, int p_column, int p_id); void _close(); - protected: - - void _notification(int p_what); - static void _bind_methods(); + + static void _bind_methods(); public: - + void set_undo_redo(UndoRedo *p_undoredo) { undo_redo=p_undoredo; } void set_current(Node* p_node); - + GroupsEditor(); ~GroupsEditor(); - }; + #endif |