diff options
Diffstat (limited to 'editor/project_export.h')
-rw-r--r-- | editor/project_export.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/editor/project_export.h b/editor/project_export.h index 7009968138..d24c51509a 100644 --- a/editor/project_export.h +++ b/editor/project_export.h @@ -5,8 +5,8 @@ /* GODOT ENGINE */ /* https://godotengine.org */ /*************************************************************************/ -/* Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur. */ -/* Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md) */ +/* Copyright (c) 2007-2019 Juan Linietsky, Ariel Manzur. */ +/* Copyright (c) 2014-2019 Godot Engine contributors (cf. AUTHORS.md) */ /* */ /* Permission is hereby granted, free of charge, to any person obtaining */ /* a copy of this software and associated documentation files (the */ @@ -37,6 +37,7 @@ #include "editor/editor_file_dialog.h" #include "editor/editor_file_system.h" #include "editor/editor_inspector.h" +#include "editor/editor_properties.h" #include "scene/gui/button.h" #include "scene/gui/check_button.h" #include "scene/gui/control.h" @@ -66,7 +67,7 @@ private: ItemList *presets; LineEdit *name; - LineEdit *export_path; + EditorPropertyPath *export_path; EditorInspector *parameters; CheckButton *runnable; @@ -99,6 +100,10 @@ private: LineEdit *custom_features; RichTextLabel *custom_feature_display; + OptionButton *script_mode; + LineEdit *script_key; + Label *script_key_error; + Label *export_error; HBoxContainer *export_templates_error; @@ -110,7 +115,7 @@ private: void _runnable_pressed(); void _update_parameters(const String &p_edited_property); void _name_changed(const String &p_string); - void _export_path_changed(const String &p_string); + void _export_path_changed(const StringName &p_property, const Variant &p_value); void _add_preset(int p_platform); void _edit_preset(int p_index); void _duplicate_preset(); @@ -118,6 +123,7 @@ private: void _delete_preset_confirm(); void _update_export_all(); + void _update_current_preset(); void _update_presets(); void _export_type_changed(int p_which); @@ -153,6 +159,11 @@ private: void _update_feature_list(); void _custom_features_changed(const String &p_text); + bool updating_script_key; + void _script_export_mode_changed(int p_mode); + void _script_encryption_key_changed(const String &p_key); + bool _validate_script_encryption_key(const String &p_key); + void _tab_changed(int); protected: @@ -162,6 +173,11 @@ protected: public: void popup_export(); + void set_export_path(const String &p_value); + String get_export_path(); + + Ref<EditorExportPreset> get_current_preset() const; + ProjectExportDialog(); ~ProjectExportDialog(); }; |