Editor: Add ability to rename theme types
This commit is contained in:
@@ -42,6 +42,7 @@ class CheckButton;
|
||||
class EditorFileDialog;
|
||||
class ItemList;
|
||||
class Label;
|
||||
class LineEdit;
|
||||
class OptionButton;
|
||||
class PanelContainer;
|
||||
class TabBar;
|
||||
@@ -253,13 +254,14 @@ class ThemeItemEditorDialog : public AcceptDialog {
|
||||
void _dialog_about_to_show();
|
||||
void _update_edit_types();
|
||||
void _edited_type_selected();
|
||||
void _edited_type_edited();
|
||||
void _edited_type_button_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button);
|
||||
|
||||
void _update_edit_item_tree(String p_item_type);
|
||||
void _item_tree_button_pressed(Object *p_item, int p_column, int p_id, MouseButton p_button);
|
||||
|
||||
void _add_theme_type(const String &p_new_text);
|
||||
void _add_theme_item(Theme::DataType p_data_type, String p_item_name, String p_item_type);
|
||||
void _add_theme_type();
|
||||
void _add_theme_item(Theme::DataType p_data_type, const String &p_item_name, const String &p_item_type);
|
||||
void _remove_theme_type(const String &p_theme_type);
|
||||
void _remove_data_type_items(Theme::DataType p_data_type, String p_item_type);
|
||||
void _remove_class_items();
|
||||
@@ -344,6 +346,10 @@ class ThemeTypeEditor : public MarginContainer {
|
||||
|
||||
OptionButton *theme_type_list = nullptr;
|
||||
Button *add_type_button = nullptr;
|
||||
Button *rename_type_button = nullptr;
|
||||
ConfirmationDialog *theme_type_rename_dialog = nullptr;
|
||||
LineEdit *theme_type_rename_line_edit = nullptr;
|
||||
Button *remove_type_button = nullptr;
|
||||
|
||||
CheckButton *show_default_items_button = nullptr;
|
||||
|
||||
@@ -380,6 +386,9 @@ class ThemeTypeEditor : public MarginContainer {
|
||||
|
||||
void _list_type_selected(int p_index);
|
||||
void _add_type_button_cbk();
|
||||
void _rename_type_button_cbk();
|
||||
void _theme_type_rename_dialog_confirmed();
|
||||
void _remove_type_button_cbk();
|
||||
void _add_default_type_items();
|
||||
|
||||
void _update_add_button(const String &p_text, LineEdit *p_for_edit);
|
||||
|
||||
Reference in New Issue
Block a user