mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
[Scene] Add SceneStringNames::text/value_changed
This commit is contained in:
parent
ca18a06ecb
commit
fbb879debd
90 changed files with 238 additions and 232 deletions
|
|
@ -1033,7 +1033,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
set_up_username = memnew(LineEdit);
|
||||
set_up_username->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
set_up_username->set_text(EDITOR_DEF("version_control/username", ""));
|
||||
set_up_username->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_username->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_username_input->add_child(set_up_username);
|
||||
|
||||
HBoxContainer *set_up_password_input = memnew(HBoxContainer);
|
||||
|
|
@ -1048,7 +1048,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
set_up_password = memnew(LineEdit);
|
||||
set_up_password->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
set_up_password->set_secret(true);
|
||||
set_up_password->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_password->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_password_input->add_child(set_up_password);
|
||||
|
||||
const String home_dir = OS::get_singleton()->has_environment("HOME") ? OS::get_singleton()->get_environment("HOME") : OS::get_singleton()->get_system_dir(OS::SYSTEM_DIR_DOCUMENTS);
|
||||
|
|
@ -1069,7 +1069,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
set_up_ssh_public_key_path = memnew(LineEdit);
|
||||
set_up_ssh_public_key_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
set_up_ssh_public_key_path->set_text(EDITOR_DEF("version_control/ssh_public_key_path", ""));
|
||||
set_up_ssh_public_key_path->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_ssh_public_key_path->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_ssh_public_key_input_hbc->add_child(set_up_ssh_public_key_path);
|
||||
|
||||
set_up_ssh_public_key_file_dialog = memnew(FileDialog);
|
||||
|
|
@ -1102,7 +1102,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
set_up_ssh_private_key_path = memnew(LineEdit);
|
||||
set_up_ssh_private_key_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
set_up_ssh_private_key_path->set_text(EDITOR_DEF("version_control/ssh_private_key_path", ""));
|
||||
set_up_ssh_private_key_path->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_ssh_private_key_path->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_ssh_private_key_input_hbc->add_child(set_up_ssh_private_key_path);
|
||||
|
||||
set_up_ssh_private_key_file_dialog = memnew(FileDialog);
|
||||
|
|
@ -1131,7 +1131,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
set_up_ssh_passphrase = memnew(LineEdit);
|
||||
set_up_ssh_passphrase->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
set_up_ssh_passphrase->set_secret(true);
|
||||
set_up_ssh_passphrase->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_ssh_passphrase->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_ssh_passphrase_input->add_child(set_up_ssh_passphrase);
|
||||
|
||||
set_up_warning_text = memnew(Label);
|
||||
|
|
@ -1251,7 +1251,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
commit_message->set_v_grow_direction(Control::GrowDirection::GROW_DIRECTION_END);
|
||||
commit_message->set_custom_minimum_size(Size2(200, 100));
|
||||
commit_message->set_line_wrapping_mode(TextEdit::LINE_WRAPPING_BOUNDARY);
|
||||
commit_message->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_commit_button));
|
||||
commit_message->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_commit_button));
|
||||
commit_message->connect(SceneStringName(gui_input), callable_mp(this, &VersionControlEditorPlugin::_commit_message_gui_input));
|
||||
commit_area->add_child(commit_message);
|
||||
|
||||
|
|
@ -1346,7 +1346,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
|
||||
branch_create_name_input = memnew(LineEdit);
|
||||
branch_create_name_input->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
branch_create_name_input->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_branch_create_button));
|
||||
branch_create_name_input->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_branch_create_button));
|
||||
branch_create_hbc->add_child(branch_create_name_input);
|
||||
|
||||
remote_select = memnew(OptionButton);
|
||||
|
|
@ -1391,7 +1391,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
|
||||
remote_create_name_input = memnew(LineEdit);
|
||||
remote_create_name_input->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
remote_create_name_input->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_remote_create_button));
|
||||
remote_create_name_input->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_remote_create_button));
|
||||
remote_create_name_hbc->add_child(remote_create_name_input);
|
||||
|
||||
HBoxContainer *remote_create_hbc = memnew(HBoxContainer);
|
||||
|
|
@ -1405,7 +1405,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
|||
|
||||
remote_create_url_input = memnew(LineEdit);
|
||||
remote_create_url_input->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
remote_create_url_input->connect(SNAME("text_changed"), callable_mp(this, &VersionControlEditorPlugin::_update_remote_create_button));
|
||||
remote_create_url_input->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_remote_create_button));
|
||||
remote_create_hbc->add_child(remote_create_url_input);
|
||||
|
||||
fetch_button = memnew(Button);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue