class MultimediaParadise::GUI::Gtk::ChangeMetadataWidget

Constants

NAMESPACE
#

NAMESPACE

#

Public Class Methods

new( commandline_arguments = ARGV, run_already = true ) click to toggle source
#

initialize

#
Calls superclass method
# File lib/multimedia_paradise/gui/gtk3/change_metadata_widget/change_metadata_widget.rb, line 58
def initialize(
    commandline_arguments = ARGV,
    run_already           = true
  )
  super(:vertical)
  reset
  set_commandline_arguments(
    commandline_arguments
  )
  run if run_already
end
run( i = ARGV ) click to toggle source
#

MultimediaParadise::GUI::Gtk::ChangeMetadataWidget.run

#
# File lib/multimedia_paradise/gui/gtk3/change_metadata_widget/change_metadata_widget.rb, line 134
def self.run(
    i = ARGV
  )
  require 'gtk_paradise/app/app.rb'
  _ = ::MultimediaParadise::GUI::Gtk::ChangeMetadataWidget.new(i)
  r = ::Gtk.run
  r << _
  r.automatic_size_then_automatic_title
  r.enable_quick_exit
  r.top_left_then_run
end

Public Instance Methods

connect_skeleton() click to toggle source
#

connect_skeleton (connect tag)

#
# File lib/multimedia_paradise/gui/gtk3/change_metadata_widget/change_metadata_widget.rb, line 90
def connect_skeleton
  abort_on_exception
  minimal(@header)
  @grid.left_right(return_text1, @entry_input_file)
  @grid.new_line
  small_hbox = gtk_hbox
  small_hbox.maximal(@entry_output_file)
  event_box = gtk_event_box(gtk_icon('view-refresh'))
  event_box.hint =
    "Click on this image to automatically rename the video file to "\
    "the original name seen above.\n\n"\
    "This currently does not notify the user that the rename-action "\
    "has been applied, but it should work just fine nonetheless."
  event_box.on_clicked {
    do_rename_the_newly_created_file_to_the_original_file
  }
  small_hbox.minimal(event_box)
  @grid.left_right(return_text2, small_hbox) # Output file to use.
  @grid.new_line
  @grid.left_right(return_text3, entry_title?)
  @grid.new_line
  @grid.left_right(return_text4, entry_comment?)
  @grid.new_line
  @grid.left_right(return_text5, entry_year?)
  hbox_small = gtk_hbox
  hbox_small.minimal(@button_run_the_sys_command, 4)
  hbox_small.minimal(@spinner,                    4)
  hbox_small.center_into_the_middle
  @grid.full_row(hbox_small)
  minimal(@grid, 2)
end
reset() click to toggle source
#

reset (reset tag)

#
# File lib/multimedia_paradise/gui/gtk3/change_metadata_widget/change_metadata_widget.rb, line 73
def reset
  reset_the_internal_variables
  # ======================================================================= #
  # === @configuration
  # ======================================================================= #
  @configuration = [true, __dir__, NAMESPACE]
  # ======================================================================= #
  # === Set the title, width, height and the font in use.
  # ======================================================================= #
  title_width_height_font(TITLE, WIDTH, HEIGHT, USE_THIS_FONT)
  use_gtk_paradise_project_css_file
  infer_the_size_automatically
end
run() click to toggle source
#

run (run tag)

#
Calls superclass method
# File lib/multimedia_paradise/gui/gtk3/change_metadata_widget/change_metadata_widget.rb, line 125
def run
  super()
  menu
  respond_to_scroll_events_of_the_first_entry
end