Class: HardwareInformation::GUI::Gtk::MountedHarddiscs
- Inherits:
-
Gtk::Box
- Object
- Gtk::Box
- HardwareInformation::GUI::Gtk::MountedHarddiscs
show all
- Includes:
- Gtk::BaseModule, MountedHarddiscsModule
- Defined in:
- lib/hardware_information/gui/gtk3/mounted_harddiscs/mounted_harddiscs.rb
Overview
Constant Summary
MountedHarddiscsModule::HEIGHT, MountedHarddiscsModule::TITLE, MountedHarddiscsModule::USE_THIS_FONT, MountedHarddiscsModule::WIDTH
Class Method Summary
collapse
Instance Method Summary
collapse
#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
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
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_skeleton ⇒ Object
#
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_skeleton ⇒ Object
#
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
|
#reset ⇒ Object
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 = [true, __dir__, namespace?]
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 ⇒ Object
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
|