Class: HardwareInformation::GUI::Gtk::MountedHarddiscs

Inherits:
Gtk::Box
  • Object
show all
Includes:
Gtk::BaseModule, MountedHarddiscsModule
Defined in:
lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb

Overview

HardwareInformation::GUI::Gtk::MountedHarddiscs

Constant Summary

Constants included from MountedHarddiscsModule

MountedHarddiscsModule::HEIGHT, MountedHarddiscsModule::TITLE, MountedHarddiscsModule::USE_THIS_FONT, MountedHarddiscsModule::WIDTH

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MountedHarddiscsModule

#border_size?, #do_capture_and_analyse_the_output_determining_which_harddiscs_are_available, #padding?, #reset_the_shared_module, #return_the_progress_bar, #run_the_main_system_command

Constructor Details

#initialize(commandline_arguments = ARGV, run_already = true) ⇒ MountedHarddiscs

#

initialize

#


29
30
31
32
33
34
35
36
37
38
39
# File 'lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb', line 29

def initialize(
    commandline_arguments = ARGV,
    run_already           = true
  )
  super(:vertical)
  reset
  set_commandline_arguments(
    commandline_arguments
  )
  run if run_already
end

Class Method Details

.run(i = ARGV) ⇒ Object

#

HardwareInformation::GUI::Gtk::MountedHarddiscs.run

#


87
88
89
90
91
92
93
94
95
96
97
# File 'lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb', line 87

def self.run(
    i = ARGV
  )
  require 'gtk_paradise/run'
  _ = ::HardwareInformation::GUI::Gtk::MountedHarddiscs.new(i)
  r = ::Gtk.run
  r << _
  r.automatic_size_then_automatic_title
  r.enable_quick_exit
  r.top_left_then_run
end

Instance Method Details

#connect_skeletonObject

#

connect_skeleton (connect tag)

#


69
70
71
72
73
74
# File 'lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb', line 69

def connect_skeleton
  abort_on_exception
  minimal(
    gtk_left_aligned_label('Available harddiscs:')
  )
end

#create_skeletonObject

#

create_skeleton (create tag, skeleton tag)

#


63
64
# File 'lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb', line 63

def create_skeleton
end

#resetObject

#

reset (reset tag)

#


44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb', line 44

def reset
  reset_the_internal_variables
  infer_the_namespace
  # ======================================================================= #
  # === @configuration
  # ======================================================================= #
  @configuration = [true, __dir__, namespace?]
  # ======================================================================= #
  # === Set the title, width, height and the font in use.
  # ======================================================================= #
  title_width_height_font(TITLE, WIDTH, HEIGHT, USE_THIS_FONT)
  use_gtk_paradise_project_css_file 
  infer_the_size_automatically
  reset_the_shared_module
end

#runObject

#

run (run tag)

#


79
80
81
82
# File 'lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb', line 79

def run
  super()
  do_capture_and_analyse_the_output_determining_which_harddiscs_are_available
end