module MultimediaParadise::GUI::Gtk::MultimediaNotebookModule
Constants
- HEIGHT
#¶ ↑
HEIGHT
¶ ↑#¶ ↑
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
- TITLE
#¶ ↑
TITLE
¶ ↑#¶ ↑
- WIDTH
#¶ ↑
WIDTH
¶ ↑#¶ ↑
Public Class Methods
new( optional_file = nil, run_already = true )
click to toggle source
run( i = ARGV )
click to toggle source
#¶ ↑
GtkParadise::GUI::Gtk::FoobarModule.run¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/multimedia_notebook/multimedia_notebook_module.rb, line 160 def self.run( i = ARGV ) require 'gtk_paradise/run' _ = ::MultimediaParadise::GUI::Gtk::MultimediaNotebook.new(i) r = ::Gtk.run r << _ r.set_size_request(_.width?, _.height?) r.top_left_then_run end
Public Instance Methods
border_size?()
click to toggle source
connect_skeleton()
click to toggle source
#¶ ↑
connect_skeleton
(connect tag)¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/multimedia_notebook/multimedia_notebook_module.rb, line 110 def connect_skeleton Thread.abort_on_exception = true require 'multimedia_paradise/gui/gtk3/id_renamer/id_renamer.rb' require 'multimedia_paradise/gui/gtk3/lyrics/lyrics.rb' require 'multimedia_paradise/gui/gtk3/multimedia_converter/multimedia_converter.rb' require 'multimedia_paradise/gui/gtk3/play_from_radio_station/play_from_radio_station.rb' require 'multimedia_paradise/gui/gtk3/playlist/playlist.rb' require 'multimedia_paradise/gui/gtk3/play_video_from_my_collection/play_video_from_my_collection.rb' require 'multimedia_paradise/gui/gtk3/simple_play_widget/simple_play_widget.rb' # The next one has not yet been ported. # require 'multimedia_paradise/gui/gtk3/video_collection/video_collection.rb' require 'multimedia_paradise/gui/gtk3/widget_increase_or_decrease_audio/widget_increase_or_decrease_audio.rb' require 'multimedia_paradise/gui/gtk3/youtube_downloader/youtube_downloader.rb' # ======================================================================= # # The Hash is currently hardcoded. While it could easily be made a # dynamic query, and the Hash removed altogether, for the time being I # think this approach is simpler and faster, even if not as # sophisticated. # ======================================================================= # @hash = { 'MultimediaParadise::GUI::Gtk::IdRenamer' => 'ID Renamer', 'MultimediaParadise::GUI::Gtk::Lyrics' => 'Lyrics', 'MultimediaParadise::GUI::Gtk::MultimediaConverter' => 'Multimedia Converter', 'MultimediaParadise::GUI::Gtk::PlayFromRadioStation' => 'Play from Radio Station', 'MultimediaParadise::GUI::Gtk::Playlist' => 'Playlist', 'MultimediaParadise::GUI::Gtk::PlayVideoFromMyCollection' => 'Play Video from my Collection', 'MultimediaParadise::GUI::Gtk::SimplePlayWidget' => 'Simple Play Widget', #'MultimediaParadise::GUI::Gtk::VideoCollection' => 'Video Collection', 'MultimediaParadise::GUI::Gtk::WidgetIncreaseOrDecreaseAudio' => 'Widget Increase or Decrease Audio', 'MultimediaParadise::GUI::Gtk::YoutubeDownloader' => 'Youtube Downloader' } @hash.each_pair {|name_of_the_widget, title_that_is_to_be_used_for_the_tab| @notebook.append_this_widget( eval(name_of_the_widget).new, title_that_is_to_be_used_for_the_tab ) } add(@notebook) end
create_main_notebook()
click to toggle source
create_skeleton()
click to toggle source
padding?()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/multimedia_notebook/multimedia_notebook_module.rb, line 56 def reset reset_the_internal_variables # ======================================================================= # # === @configuration # ======================================================================= # @configuration = [true, __dir__, NAMESPACE] # ======================================================================= # # === @title # ======================================================================= # @title = TITLE # ======================================================================= # # === @width # ======================================================================= # set_width(WIDTH) # ======================================================================= # # === @height # ======================================================================= # set_height(HEIGHT) set_use_this_font(:dejavu_condensed_22) append_project_css_file infer_the_size_automatically end