Class: Roebe::GUI::Gtk::OsInstaller
- Inherits:
-
Gtk::BaseModuleAssistant
- Object
- Gtk::BaseModuleAssistant
- Roebe::GUI::Gtk::OsInstaller
show all
- Defined in:
- lib/roebe/gui/gtk3/os_installer/os_installer.rb
Overview
Roebe::GUI::Gtk::OsInstaller
Constant Summary
collapse
- FILE_INSTALLATION_PROCEDURE =
#
FILE_INSTALLATION_PROCEDURE
#
RBT.file_installation_procedere
- TITLE =
'OS Installer'
- DISTRIBUTION_NAME =
'HiveOS'
- WIDTH =
'25% or minimum 200px'
- HEIGHT =
'15% or minimum 100px'
- USE_THIS_FONT =
:dejavu_condensed_20
Class Method Summary
collapse
-
.run(i = ARGV) ⇒ Object
# === Roebe::GUI::Gtk::OsInstaller.run ========================================================================= #.
Instance Method Summary
collapse
Constructor Details
#initialize(commandline_arguments = ARGV, run_already = true) ⇒ OsInstaller
55
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 55
def initialize(
commandline_arguments = ARGV,
run_already = true
)
super()
reset
set_commandline_arguments(
commandline_arguments
)
run if run_already
end
|
Class Method Details
.run(i = ARGV) ⇒ Object
#
Roebe::GUI::Gtk::OsInstaller.run
#
124
125
126
127
128
129
130
131
132
133
134
|
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 124
def self.run(
i = ARGV
)
require 'gtk_paradise/run'
_ = ::Roebe::GUI::Gtk::OsInstaller.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
#border_size? ⇒ Boolean
95
96
97
|
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 95
def border_size?
2
end
|
#connect_skeleton ⇒ Object
#
connect_skeleton (connect tag)
#
109
110
111
112
|
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 109
def connect_skeleton
abort_on_exception
add(gtk_left_aligned_label('Hello world! This is a simple test.'))
end
|
#create_skeleton ⇒ Object
#
create_skeleton (create tag, skeleton tag)
#
102
103
104
|
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 102
def create_skeleton
end
|
#padding? ⇒ Boolean
88
89
90
|
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 88
def padding?
4
end
|
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 70
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
end
|
117
118
119
|
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 117
def run
super()
end
|