Class: SSHTunnel::UI::Windows::Hosts::NewWindow

Inherits:
Gtk::Window
  • Object
show all
Includes:
Helpers::HostWindowHelper
Defined in:
lib/ssh-hull/ui/windows/hosts/new_window.rb

Constant Summary

Constants included from Helpers::HostWindowHelper

Helpers::HostWindowHelper::FORM_BUTTONS, Helpers::HostWindowHelper::FORM_FIELDS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers::HostWindowHelper

included, #load_tunnels_treeview, #reload_tunnels_treeview

Methods included from Helpers::Common::FormHelper::InstanceMethods

#bind_submit_button, #form_object, #getter_for, #params, #red, #render_form_errors, #restore_form_value, #restore_form_values, #set_input_labels, #setter_for, #submit_form, #white

Methods included from Helpers::Common::TreeViewHelper

#add_column, #add_image_column, #add_text_column

Constructor Details

#initialize(application, window, host) ⇒ NewWindow

Returns a new instance of NewWindow.



25
26
27
28
29
30
# File 'lib/ssh-hull/ui/windows/hosts/new_window.rb', line 25

def initialize(application, window, host)
  super

  # Set window title
  set_title t('window.host.new')
end

Class Method Details

.initObject



14
15
16
17
18
# File 'lib/ssh-hull/ui/windows/hosts/new_window.rb', line 14

def init
  # Set the template from the resources binary
  set_template resource: '/com/ungtb10d/ssh-hull/ui/hosts/new_window.glade'
  super
end