module MultimediaParadise::GUI::TagMp3FilesModule

Constants

HEIGHT
#

HEIGHT

#
TITLE
#

TITLE

#
WIDTH
#

WIDTH

#

Public Instance Methods

do_play_the_selected_song( _ = entry_file_path_text? ) click to toggle source
#

do_play_the_selected_song

This method can be used to play the currently selected song.

If no song is selected, a pop-over message should appear.

#
# File lib/multimedia_paradise/gui/shared_code/tag_mp3_files/tag_mp3_files_module.rb, line 47
def do_play_the_selected_song(
    _ = entry_file_path_text?
  )
  if _ and File.exist?(_)
    Thread.new {
      esystem "mpv #{_}"
    }
  else
    e 'No file exists at '+_.to_s+'.'
    return_popover(
      'Please first select a .mp3 file that exists. You '\
      'can double-click on this entry above.',
      entry_file_path?, 20
    ).popup
  end
end
Also aliased as: play_the_selected_audio_file
entry_file_path_text?()
Alias for: main_file_text?
main_file?()
Alias for: main_file_text?
main_file_text?() click to toggle source
#

main_file_text?

#
# File lib/multimedia_paradise/gui/shared_code/tag_mp3_files/tag_mp3_files_module.rb, line 67
def main_file_text?
  @entry_file_path.text?
end
play_the_selected_audio_file( _ = entry_file_path_text? )
song_directory?() click to toggle source
#

song_directory?

#
# File lib/multimedia_paradise/gui/shared_code/tag_mp3_files/tag_mp3_files_module.rb, line 36
def song_directory?
  '/home/x/songs/'
end
which_file?()
Alias for: main_file_text?