diff options
-rw-r--r-- | editor/import_dock.cpp | 3 | ||||
-rw-r--r-- | editor/import_dock.h | 10 | ||||
-rw-r--r-- | editor/project_export.cpp | 4 | ||||
-rw-r--r-- | editor/project_export.h | 20 |
4 files changed, 19 insertions, 18 deletions
diff --git a/editor/import_dock.cpp b/editor/import_dock.cpp index 31eb193461..f91802b352 100644 --- a/editor/import_dock.cpp +++ b/editor/import_dock.cpp @@ -420,9 +420,10 @@ ImportDock::ImportDock() { preset->get_popup()->connect("index_pressed", this, "_preset_selected"); hb->add_child(preset); - import_opts = memnew(EditorInspector); + import_opts = memnew(PropertyEditor); add_child(import_opts); import_opts->set_v_size_flags(SIZE_EXPAND_FILL); + import_opts->hide_top_label(); hb = memnew(HBoxContainer); add_child(hb); diff --git a/editor/import_dock.h b/editor/import_dock.h index 41c7298d9a..a7a7eda8d8 100644 --- a/editor/import_dock.h +++ b/editor/import_dock.h @@ -31,12 +31,10 @@ #ifndef IMPORTDOCK_H #define IMPORTDOCK_H -#include "core/io/config_file.h" -#include "core/io/resource_import.h" -#include "editor/editor_file_system.h" -#include "editor/editor_inspector.h" +#include "editor_file_system.h" +#include "io/resource_import.h" +#include "property_editor.h" #include "scene/gui/box_container.h" -#include "scene/gui/menu_button.h" #include "scene/gui/option_button.h" #include "scene/gui/popup_menu.h" @@ -47,7 +45,7 @@ class ImportDock : public VBoxContainer { Label *imported; OptionButton *import_as; MenuButton *preset; - EditorInspector *import_opts; + PropertyEditor *import_opts; List<PropertyInfo> properties; Map<StringName, Variant> property_values; diff --git a/editor/project_export.cpp b/editor/project_export.cpp index 583677ce94..3cebbb5d21 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -29,7 +29,6 @@ /*************************************************************************/ #include "project_export.h" - #include "compressed_translation.h" #include "editor_data.h" #include "editor_node.h" @@ -843,9 +842,10 @@ ProjectExportDialog::ProjectExportDialog() { settings_vb->add_child(sections); sections->set_v_size_flags(SIZE_EXPAND_FILL); - parameters = memnew(EditorInspector); + parameters = memnew(PropertyEditor); sections->add_child(parameters); parameters->set_name(TTR("Options")); + parameters->hide_top_label(); parameters->set_v_size_flags(SIZE_EXPAND_FILL); parameters->connect("property_edited", this, "_update_parameters"); diff --git a/editor/project_export.h b/editor/project_export.h index 1f8723febd..b62254974d 100644 --- a/editor/project_export.h +++ b/editor/project_export.h @@ -31,27 +31,26 @@ #ifndef PROJECT_EXPORT_SETTINGS_H #define PROJECT_EXPORT_SETTINGS_H -#include "core/os/dir_access.h" -#include "core/os/thread.h" -#include "editor/editor_export.h" #include "editor/editor_file_dialog.h" -#include "editor/editor_file_system.h" -#include "editor/editor_inspector.h" +#include "os/dir_access.h" +#include "os/thread.h" #include "scene/gui/button.h" -#include "scene/gui/check_button.h" #include "scene/gui/control.h" #include "scene/gui/dialogs.h" #include "scene/gui/file_dialog.h" #include "scene/gui/label.h" #include "scene/gui/link_button.h" -#include "scene/gui/menu_button.h" #include "scene/gui/option_button.h" #include "scene/gui/rich_text_label.h" -#include "scene/gui/slider.h" #include "scene/gui/tab_container.h" #include "scene/gui/tree.h" #include "scene/main/timer.h" +#include "editor/editor_file_system.h" +#include "editor_export.h" +#include "property_editor.h" +#include "scene/gui/slider.h" + class EditorNode; class ProjectExportDialog : public ConfirmationDialog { @@ -65,9 +64,12 @@ private: ItemList *presets; LineEdit *name; - EditorInspector *parameters; + PropertyEditor *parameters; CheckButton *runnable; + //EditorFileDialog *pck_export; + //EditorFileDialog *file_export; + Button *button_export; bool updating; |