class HardwareInformation::GUI::Gtk::MountedHarddiscs

Public Class Methods

new( commandline_arguments = ARGV, run_already = true ) click to toggle source
#

initialize

#
Calls superclass method
# 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
run( i = ARGV ) click to toggle source
#

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

#
# File lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb, line 87
def self.run(
    i = ARGV
  )
  require 'gtk_paradise/app/app.rb'
  _ = ::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

Public Instance Methods

connect_skeleton() click to toggle source
#

connect_skeleton (connect tag)

#
# 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_skeleton() click to toggle source
#

create_skeleton (create tag, skeleton tag)

#
# File lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb, line 63
def create_skeleton
end
reset() click to toggle source
#

reset (reset tag)

#
# 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
run() click to toggle source
#

run (run tag)

#
Calls superclass method
# 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