module MultimediaParadise::GUI
Constants
- ISO
#¶ ↑
ISO
¶ ↑#¶ ↑
- MAIN_FONT_TO_USE
#¶ ↑
MAIN_FONT_TO_USE
¶ ↑This is the main font to be used in the
GUI
.#¶ ↑
- N
#¶ ↑
N
¶ ↑#¶ ↑
- UTF
#¶ ↑
UTF
¶ ↑#¶ ↑
- VIDEO_COLLECTION
#¶ ↑
VIDEO_COLLECTION
¶ ↑#¶ ↑
Public Instance Methods
esystem(i)
click to toggle source
populate_the_dataset_with_this_array( array = :default, filter_for_audio_files_only = :yup, use_this_path = '/home/x/songs/' )
click to toggle source
#¶ ↑
populate_the_dataset_with_this_array
¶ ↑
This method will populate the @dataset variable - by default with all local songs, which defaults to my home system. You can use another path, though, as the third argument to this method.
Note
that by default we will filter.
#¶ ↑
# File lib/multimedia_paradise/gui/gui_base.rb, line 62 def populate_the_dataset_with_this_array( array = :default, filter_for_audio_files_only = :yup, use_this_path = '/home/x/songs/' # Here you can specify another path to use. ) case array when :default array = Dir[use_this_path+'**'] end case filter_for_audio_files_only when :yup, :default filter_for_audio_files_only = true end _ = array array.sort! _.select! {|entry| ::MultimediaParadise.is_audio_file?(entry) } if filter_for_audio_files_only @dataset = _ end