Class: SSHTunnel::UI::Windows::ApplicationWindow

Inherits:
Gtk::ApplicationWindow
  • Object
show all
Includes:
Helpers::ApplicationWindowHelper
Defined in:
lib/ssh-hull/ui/windows/application_window.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Helpers::ApplicationWindowHelper

included, #load_hosts_treeview, #reload_hosts_treeview

Methods included from Helpers::Common::TreeViewHelper

#add_column, #add_image_column, #add_text_column

Methods included from Helpers::Common::MinimizeHelper

#maximize!, #minimize!, #minimized?, #toggle!

Constructor Details

#initialize(application) ⇒ ApplicationWindow

Returns a new instance of ApplicationWindow.



26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/ssh-hull/ui/windows/application_window.rb', line 26

def initialize(application)
  super application: application

  # Set instance variables
  @application = application

  # Set window title
  set_title 'SSH Tunnel Manager'

  # Load hosts treeview
  load_hosts_treeview
end

Class Method Details

.initObject



13
14
15
16
17
18
19
# File 'lib/ssh-hull/ui/windows/application_window.rb', line 13

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

  bind_template_child 'hosts_scrolled_window'
end