class MultimediaParadise::GUI::Libui::Lyrics

Public Class Methods

new() click to toggle source
#

initialize

#
# File lib/multimedia_paradise/gui/libui/lyrics/lyrics.rb, line 28
def initialize
  create_skeleton
  @main_window = ui_main_window(
    'Lyrics', 1500, 800, 0
  )
  outer_vbox = padded_vbox

  # ======================================================================= #
  # Add the main text-view next
  # ======================================================================= #
  @text_view = ui_text_view
  file = MultimediaParadise.file_lyrics
  if File.exist? file
    @text_view.set_text(File.read(file).to_s)
  end
  outer_vbox << @text_view
  # ======================================================================= #
  # Add the download button next:
  # ======================================================================= #
  button = ui_quit_button # Use a quit button.
  hbox = ui_hbox
  hbox.add(button, 0)
  outer_vbox.add(hbox, 0)

  @main_window.child = outer_vbox
  @main_window.intelligent_exit
end

Public Instance Methods

create_skeleton() click to toggle source
#

create_skeleton

#
# File lib/multimedia_paradise/gui/libui/lyrics/lyrics.rb, line 59
def create_skeleton
  @entry_URL_to_use_for_the_youtube_video = ui_entry
end