12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #ifndef REPARENT_DIALOG_H
- #define REPARENT_DIALOG_H
- #include "editor/scene_tree_editor.h"
- #include "scene/gui/button.h"
- #include "scene/gui/check_box.h"
- #include "scene/gui/check_button.h"
- #include "scene/gui/dialogs.h"
- #include "scene/gui/line_edit.h"
- class ReparentDialog : public ConfirmationDialog {
- GDCLASS(ReparentDialog, ConfirmationDialog);
- SceneTreeEditor *tree;
- CheckBox *keep_transform;
- void update_tree();
- void _reparent();
- void _cancel();
- protected:
- void _notification(int p_what);
- static void _bind_methods();
- public:
- void set_current(const Set<Node *> &p_selection);
- String get_selected_type();
- ReparentDialog();
- ~ReparentDialog();
- };
- #endif
|