Module: SSHTunnel::UI::Helpers::ApplicationWindowHelper

Includes:
Common::MinimizeHelper, Common::ToolbarHelper, Common::TranslationHelper, Common::TreeViewHelper
Included in:
Windows::ApplicationWindow
Defined in:
lib/ssh-hull/ui/helpers/application_window_helper.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Common::TreeViewHelper

#add_column, #add_image_column, #add_text_column

Methods included from Common::ToolbarHelper

#initialize

Methods included from Common::MinimizeHelper

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

Class Method Details

.included(base) ⇒ Object



14
15
16
17
# File 'lib/ssh-hull/ui/helpers/application_window_helper.rb', line 14

def self.included(base)
  base.extend(ClassMethods)
  base.extend(SSHTunnel::UI::Helpers::Common::FormHelper::ClassMethods)
end

Instance Method Details

#load_hosts_treeviewObject



33
34
35
36
37
38
39
40
41
42
43
# File 'lib/ssh-hull/ui/helpers/application_window_helper.rb', line 33

def load_hosts_treeview
  # create treeview
  treeview_model  = create_hosts_treeview_model(all_hosts)
  @hosts_treeview = create_hosts_treeview(treeview_model)

  # Render treeview
  hosts_scrolled_window.shadow_type = :etched_in
  hosts_scrolled_window.set_policy(:automatic, :automatic)
  hosts_scrolled_window.add(@hosts_treeview)
  @hosts_treeview.show
end

#reload_hosts_treeviewObject



46
47
48
49
# File 'lib/ssh-hull/ui/helpers/application_window_helper.rb', line 46

def reload_hosts_treeview
  @hosts_treeview.destroy
  load_hosts_treeview
end