class RBT::GUI::Gtk::Installer

Constants

HEIGHT
#

HEIGHT

#
TITLE
#

TITLE

#
USE_THIS_FONT
#

USE_THIS_FONT

#
WIDTH
#

WIDTH

#

Public Class Methods

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

initialize

#
Calls superclass method
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 58
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
#

RBT::GUI::Gtk::Installer.run

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 159
def self.run(
    i = ARGV
  )
end
run_gtk2( i = ARGV ) click to toggle source
#

RBT::GUI::Gtk::Installer.run_gtk2

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 167
def self.run_gtk2(
    i = ARGV
  )
  require 'gtk_paradise/app/app.rb'
  _ = ::RBT::GUI::Gtk::Installer.new(i)
  r = ::Gtk.run
  r << _
  r.automatic_size_then_automatic_title
  r.enable_quick_exit
  r.top_left_then_run
end
run_gtk3( i = ARGV ) click to toggle source
#

RBT::GUI::Gtk::Installer.run_gtk3

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 182
def self.run_gtk3(
    i = ARGV
  )
  require 'gtk_paradise/app/app.rb'
  _ = ::RBT::GUI::Gtk::Installer.new(i)
  r = ::Gtk.run
  r << _
  r.automatic_size_then_automatic_title
  r.enable_quick_exit
  r.top_left_then_run
end
run_gtk4() click to toggle source
#

RBT::GUI::Gtk::Installer.run_gtk4

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 197
def self.run_gtk4
  ::Gtk.default_application('unified.gtk.prototype') {{
    widget_to_use: RBT::GUI::Gtk::Installer.new
  }}
end

Public Instance Methods

border_size?() click to toggle source
#

border_size?

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 103
def border_size?
  4
end
connect_skeleton() click to toggle source
#

connect_skeleton (connect tag)

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 124
def connect_skeleton
  abort_on_exception
  _ = left_aligned_label('Installer:')
  _.use_this_font = :hack_30
  minimal(_, 2)
  hbox1 = create_hbox
  hbox1.minimal(text('Compile this program: '))
  # === @entry1
  @entry1 = default_entry
  hbox1.maximal(@entry1)
  button_do_compile_the_program = button('_Compile the button')
  button_do_compile_the_program.clear_background
  button_do_compile_the_program.bblack1
  button_do_compile_the_program.on_hover(:lightgreen)
  button_do_compile_the_program.on_clicked {
    Thread.new {
      do_compile_the_program
    }
  }
  hbox1.minimal(button_do_compile_the_program)
  minimal(
    hbox1
  )
end
create_skeleton() click to toggle source
#

create_skeleton (create tag, skeleton tag)

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 110
def create_skeleton
  # create_the_entries
end
do_compile_the_program() click to toggle source
#

do_compile_the_program

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 117
def do_compile_the_program
  @installer.do_run_with_this_input(@entry1.text?)
end
padding?() click to toggle source
#

padding?

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 96
def padding?
  8
end
reset() click to toggle source
#

reset (reset tag)

#
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 73
def reset
  reset_the_internal_variables
  populate_the_internal_hash_with_the_default_values
  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
  # ======================================================================= #
  # === @installer
  # ======================================================================= #
  @installer = RBT::Installer.new { :dont_run_yet }
end
run() click to toggle source
#

run (run tag)

#
Calls superclass method
# File lib/rbt/gui/unified_gtk/installer/installer.rb, line 152
def run
  super()
end