Class: MultimediaParadise::GUI::Libui::Lyrics

Inherits:
Object
  • Object
show all
Defined in:
lib/multimedia_paradise/gui/libui/lyrics/lyrics.rb

Overview

MultimediaParadise::GUI::Libui::Lyrics

Instance Method Summary collapse

Constructor Details

#initializeLyrics

#

initialize

#


28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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

Instance Method Details

#create_skeletonObject

#

create_skeleton

#


59
60
61
# 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