You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
@@ -29,18 +29,16 @@
|
||||
#ifndef RESOURCE_PRELOADER_EDITOR_PLUGIN_H
|
||||
#define RESOURCE_PRELOADER_EDITOR_PLUGIN_H
|
||||
|
||||
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_plugin.h"
|
||||
#include "scene/gui/dialogs.h"
|
||||
#include "scene/gui/file_dialog.h"
|
||||
#include "scene/gui/tree.h"
|
||||
#include "scene/main/resource_preloader.h"
|
||||
#include "scene/gui/file_dialog.h"
|
||||
#include "scene/gui/dialogs.h"
|
||||
|
||||
|
||||
class ResourcePreloaderEditor : public PanelContainer {
|
||||
|
||||
OBJ_TYPE(ResourcePreloaderEditor, PanelContainer );
|
||||
OBJ_TYPE(ResourcePreloaderEditor, PanelContainer);
|
||||
|
||||
Button *load;
|
||||
Button *_delete;
|
||||
@@ -48,17 +46,15 @@ class ResourcePreloaderEditor : public PanelContainer {
|
||||
Tree *tree;
|
||||
bool loading_scene;
|
||||
|
||||
|
||||
EditorFileDialog *file;
|
||||
|
||||
AcceptDialog *dialog;
|
||||
|
||||
ResourcePreloader *preloader;
|
||||
|
||||
|
||||
void _load_pressed();
|
||||
void _load_scene_pressed();
|
||||
void _files_load_request(const Vector<String>& p_paths);
|
||||
void _files_load_request(const Vector<String> &p_paths);
|
||||
void _paste_pressed();
|
||||
void _delete_pressed();
|
||||
void _delete_confirm_pressed();
|
||||
@@ -67,33 +63,31 @@ class ResourcePreloaderEditor : public PanelContainer {
|
||||
|
||||
UndoRedo *undo_redo;
|
||||
|
||||
Variant get_drag_data_fw(const Point2& p_point,Control* p_from);
|
||||
bool can_drop_data_fw(const Point2& p_point,const Variant& p_data,Control* p_from) const;
|
||||
void drop_data_fw(const Point2& p_point,const Variant& p_data,Control* p_from);
|
||||
|
||||
Variant get_drag_data_fw(const Point2 &p_point, Control *p_from);
|
||||
bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const;
|
||||
void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from);
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
void _input_event(InputEvent p_event);
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
void set_undo_redo(UndoRedo *p_undo_redo) { undo_redo = p_undo_redo; }
|
||||
|
||||
void set_undo_redo(UndoRedo *p_undo_redo) {undo_redo=p_undo_redo; }
|
||||
|
||||
void edit(ResourcePreloader* p_preloader);
|
||||
void edit(ResourcePreloader *p_preloader);
|
||||
ResourcePreloaderEditor();
|
||||
};
|
||||
|
||||
class ResourcePreloaderEditorPlugin : public EditorPlugin {
|
||||
|
||||
OBJ_TYPE( ResourcePreloaderEditorPlugin, EditorPlugin );
|
||||
OBJ_TYPE(ResourcePreloaderEditorPlugin, EditorPlugin);
|
||||
|
||||
ResourcePreloaderEditor *preloader_editor;
|
||||
EditorNode *editor;
|
||||
Button *button;
|
||||
|
||||
public:
|
||||
|
||||
virtual String get_name() const { return "ResourcePreloader"; }
|
||||
bool has_main_screen() const { return false; }
|
||||
virtual void edit(Object *p_node);
|
||||
@@ -102,7 +96,6 @@ public:
|
||||
|
||||
ResourcePreloaderEditorPlugin(EditorNode *p_node);
|
||||
~ResourcePreloaderEditorPlugin();
|
||||
|
||||
};
|
||||
|
||||
#endif // RESOURCE_PRELOADER_EDITOR_PLUGIN_H
|
||||
|
||||
Reference in New Issue
Block a user