class MultimediaParadise::GUI::Gtk::Notebook

Constants

TITLE
#

TITLE

#
WIDTH
#

WIDTH

#

Public Class Methods

new( i = nil, run_already = true ) click to toggle source
#

initialize

#
Calls superclass method
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 53
def initialize(
    i           = nil,
    run_already = true
  )
  super(TITLE)
  set_label_widget(
    ::Gtk::Label.new.set_markup(
      %Q(<span size="larger" foreground="darkblue" weight="bold">#{TITLE}</span>)
    )
  )
  reset
  set_input(i)
  run if run_already
end

Public Instance Methods

height?() click to toggle source
#

height?

#
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 126
def height?
  900
end
input?() click to toggle source
#

input?

#
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 86
def input?
  @input
end
reset() click to toggle source
#

reset (reset tag)

#
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 71
def reset
end
run() click to toggle source
#

run (run tag)

#
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 93
def run
  # ======================================================================= #
  # Add the notebook next, via Gtk.add_notebook().
  # ======================================================================= #
  play_video_from_my_collection = MultimediaParadise::GUI::Gtk::PlayVideoFromMyCollection.new
  video_collection              = MultimediaParadise::GUI::Gtk::VideoCollection.new
  youtube_downloader            = MultimediaParadise::GUI::Gtk::YoutubeDownloader.new
  play_from_radio_station       = MultimediaParadise::GUI::Gtk::PlayFromRadioStation.new
  lyrics_widget                 = MultimediaParadise::GUI::Gtk::Lyrics.new
  #id_renamer                    = MultimediaParadise::GUI::Gtk::IdRenamer.new

  notebook = ::Gtk.add_notebook(
    play_video_from_my_collection,
    video_collection,
    youtube_downloader,
    play_from_radio_station,
    lyrics_widget,
    id_renamer
  ) { :enable_drag_and_support }
  add(notebook)
  show_all
end
set_input(i = '') click to toggle source
#

set_input

#
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 77
def set_input(i = '')
  i = i.first if i.is_a? Array
  i = i.to_s.dup if i
  @input = i
end
width?() click to toggle source
#

width?

#
# File lib/multimedia_paradise/gui/gtk2/notebook.rb, line 119
def width?
  WIDTH
end