mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +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:
parent
1d418afe86
commit
f8db8a3faa
1308 changed files with 147754 additions and 174357 deletions
|
|
@ -29,23 +29,22 @@
|
|||
#ifndef RESOURCES_DOCK_H
|
||||
#define RESOURCES_DOCK_H
|
||||
|
||||
#include "scene/gui/control.h"
|
||||
#include "scene/gui/tree.h"
|
||||
#include "scene/gui/label.h"
|
||||
#include "scene/gui/button.h"
|
||||
#include "scene/gui/tool_button.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/menu_button.h"
|
||||
#include "scene/gui/file_dialog.h"
|
||||
#include "create_dialog.h"
|
||||
#include "editor_file_dialog.h"
|
||||
|
||||
#include "scene/gui/box_container.h"
|
||||
#include "scene/gui/button.h"
|
||||
#include "scene/gui/control.h"
|
||||
#include "scene/gui/file_dialog.h"
|
||||
#include "scene/gui/label.h"
|
||||
#include "scene/gui/menu_button.h"
|
||||
#include "scene/gui/tool_button.h"
|
||||
#include "scene/gui/tree.h"
|
||||
|
||||
class EditorNode;
|
||||
|
||||
class ResourcesDock : public VBoxContainer {
|
||||
|
||||
OBJ_TYPE( ResourcesDock, VBoxContainer );
|
||||
OBJ_TYPE(ResourcesDock, VBoxContainer);
|
||||
|
||||
enum {
|
||||
TOOL_NEW,
|
||||
|
|
@ -58,7 +57,6 @@ class ResourcesDock : public VBoxContainer {
|
|||
TOOL_MAX
|
||||
};
|
||||
|
||||
|
||||
EditorNode *editor;
|
||||
|
||||
Button *button_new;
|
||||
|
|
@ -74,32 +72,23 @@ class ResourcesDock : public VBoxContainer {
|
|||
bool block_add;
|
||||
int current_action;
|
||||
|
||||
void _file_action(const String &p_action);
|
||||
|
||||
|
||||
|
||||
|
||||
void _file_action(const String& p_action);
|
||||
|
||||
|
||||
|
||||
void _delete(Object* p_item, int p_column, int p_id);
|
||||
void _delete(Object *p_item, int p_column, int p_id);
|
||||
void _resource_selected();
|
||||
void _update_name(TreeItem *item);
|
||||
void _tool_selected(int p_tool);
|
||||
void _create();
|
||||
|
||||
protected:
|
||||
|
||||
void _notification(int p_what);
|
||||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
|
||||
void add_resource(const Ref<Resource>& p_resource);
|
||||
void remove_resource(const Ref<Resource>& p_resource);
|
||||
void save_resource(const String& p_path,const Ref<Resource>& p_resource);
|
||||
void save_resource_as(const Ref<Resource>& p_resource);
|
||||
|
||||
void add_resource(const Ref<Resource> &p_resource);
|
||||
void remove_resource(const Ref<Resource> &p_resource);
|
||||
void save_resource(const String &p_path, const Ref<Resource> &p_resource);
|
||||
void save_resource_as(const Ref<Resource> &p_resource);
|
||||
|
||||
void cleanup();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue