| 18 | |
| 19 | @Gtk.Template(resource_path="/io/github/BuddySirJava/SSH-Studio/ui/host_editor.ui") |
| 20 | class HostEditor(Gtk.Box): |
| 21 | |
| 22 | __gtype_name__ = "HostEditor" |
| 23 | |
| 24 | add_button = Gtk.Template.Child() |
| 25 | duplicate_button = Gtk.Template.Child() |
| 26 | delete_button = Gtk.Template.Child() |
| 27 | viewstack = Gtk.Template.Child() |
| 28 | patterns_entry = Gtk.Template.Child() |
| 29 | patterns_error_label = Gtk.Template.Child() |
| 30 | hostname_entry = Gtk.Template.Child() |
| 31 | user_entry = Gtk.Template.Child() |
| 32 | port_entry = Gtk.Template.Child() |
| 33 | port_error_label = Gtk.Template.Child() |
| 34 | identity_entry = Gtk.Template.Child() |
| 35 | identity_button = Gtk.Template.Child() |
| 36 | identity_pick_button = Gtk.Template.Child() |
| 37 | forward_agent_switch = Gtk.Template.Child() |
| 38 | proxy_jump_entry = Gtk.Template.Child() |
| 39 | proxy_cmd_entry = Gtk.Template.Child() |
| 40 | local_forward_entry = Gtk.Template.Child() |
| 41 | remote_forward_entry = Gtk.Template.Child() |
| 42 | compression_switch = Gtk.Template.Child() |
| 43 | serveralive_interval_entry = Gtk.Template.Child() |
| 44 | serveralive_count_entry = Gtk.Template.Child() |
| 45 | tcp_keepalive_switch = Gtk.Template.Child() |
| 46 | strict_host_key_row = Gtk.Template.Child() |
| 47 | pubkey_auth_switch = Gtk.Template.Child() |
| 48 | password_auth_switch = Gtk.Template.Child() |
| 49 | kbd_interactive_auth_switch = Gtk.Template.Child() |
| 50 | gssapi_auth_switch = Gtk.Template.Child() |
| 51 | add_keys_to_agent_row = Gtk.Template.Child() |
| 52 | preferred_authentications_entry = Gtk.Template.Child() |
| 53 | identity_agent_entry = Gtk.Template.Child() |
| 54 | connect_timeout_entry = Gtk.Template.Child() |
| 55 | request_tty_row = Gtk.Template.Child() |
| 56 | log_level_row = Gtk.Template.Child() |
| 57 | verify_host_key_dns_switch = Gtk.Template.Child() |
| 58 | canonicalize_hostname_row = Gtk.Template.Child() |
| 59 | canonical_domains_entry = Gtk.Template.Child() |
| 60 | control_master_row = Gtk.Template.Child() |
| 61 | control_persist_entry = Gtk.Template.Child() |
| 62 | control_path_entry = Gtk.Template.Child() |
| 63 | raw_text_view = Gtk.Template.Child() |
| 64 | copy_button = Gtk.Template.Child() |
| 65 | test_button = Gtk.Template.Child() |
| 66 | unsaved_banner = Gtk.Template.Child() |
| 67 | |
| 68 | __gsignals__ = { |
| 69 | "host-changed": (GObject.SignalFlags.RUN_LAST, None, (object,)), |
| 70 | "editor-validity-changed": (GObject.SignalFlags.RUN_LAST, None, (bool,)), |
| 71 | "host-save": (GObject.SignalFlags.RUN_LAST, None, (object,)), |
| 72 | "show-toast": (GObject.SignalFlags.RUN_LAST, None, (str,)), |
| 73 | } |
| 74 | |
| 75 | def __init__(self): |
| 76 | super().__init__() |
| 77 | self.set_visible(False) |