Class: Roebe::GUI::Gtk::OsInstaller

Inherits:
Gtk::BaseModuleAssistant
  • Object
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 =
#

TITLE

#
'OS Installer'
DISTRIBUTION_NAME =
#

DISTRIBUTION_NAME

#
'HiveOS'
WIDTH =
#

WIDTH

#
'25% or minimum 200px'
HEIGHT =
#

HEIGHT

#
'15% or minimum 100px'
USE_THIS_FONT =
#

USE_THIS_FONT

#
:dejavu_condensed_20

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

#

initialize

#


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

#

border_size?

#

Returns:

  • (Boolean)


95
96
97
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 95

def border_size?
  2
end

#connect_skeletonObject

#

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_skeletonObject

#

create_skeleton (create tag, skeleton tag)

#


102
103
104
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 102

def create_skeleton
  # create_the_entries
end

#padding?Boolean

#

padding?

#

Returns:

  • (Boolean)


88
89
90
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 88

def padding?
  4
end

#resetObject

#

reset (reset tag)

#


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
  # ======================================================================= #
  @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 # or use use_project_css_file 
  infer_the_size_automatically
end

#runObject

#

run (run tag)

#


117
118
119
# File 'lib/roebe/gui/gtk3/os_installer/os_installer.rb', line 117

def run
  super()
end