module MultimediaParadise::GUI::Gtk::VideoEditorModule
Constants
- HEIGHT
#¶ ↑
HEIGHT
¶ ↑#¶ ↑
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
- TITLE
#¶ ↑
TITLE
¶ ↑#¶ ↑
- WIDTH
#¶ ↑
WIDTH
¶ ↑#¶ ↑
Public Class Methods
new( commandline_arguments = ARGV, run_already = true )
click to toggle source
#¶ ↑
initialize¶ ↑
#¶ ↑
Calls superclass method
# File lib/multimedia_paradise/gui/shared_code/video_editor/video_editor_module.rb, line 47 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::VideoEditorModule.run
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/video_editor/video_editor_module.rb, line 202 def self.run( i = ARGV ) require 'gtk_paradise/run' _ = ::MultimediaParadise::GUI::Gtk::VideoEditor.new(i) r = ::Gtk.run r << _ r.set_size_request(_.width?, _.height?) r.title_from_child_widget r.top_left_then_run end
Public Instance Methods
add_the_hbox_where_the_user_specifies_with_which_file_to_work()
click to toggle source
#¶ ↑
add_the_hbox_where_the_user_specifies_with_which_file_to_work
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/video_editor/video_editor_module.rb, line 171 def add_the_hbox_where_the_user_specifies_with_which_file_to_work hbox = gtk_hbox hbox.minimal( gtk_label('Work on this file: '), 2 ) hbox.maximal(@entry_work_on_this_file, 2) hbox.minimal(button_open_file?, 4) minimal(hbox) end
border_size?()
click to toggle source
connect_skeleton()
click to toggle source
create_skeleton()
click to toggle source
#¶ ↑
create_skeleton
(create tag)¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/video_editor/video_editor_module.rb, line 116 def create_skeleton create_the_entries # Must come before create_the_buttons(). create_the_buttons @text_buffer = gtk_text_buffer @text_view = gtk_text_view(@text_buffer) @text_view.set_border_width(2) @text_view.css_class('pad2px') @scrolled_window = gtk_scrolled_window(@text_view) { :always } @scrolled_window.set_size_request(500, 300) @scrolled_window.bblack2 end
create_the_entries()
click to toggle source
#¶ ↑
create_the_entries
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/video_editor/video_editor_module.rb, line 103 def create_the_entries # ======================================================================= # # === @entry_work_on_this_file # ======================================================================= # @entry_work_on_this_file = gtk_entry @entry_work_on_this_file.set_text('/Depot/j/foobar.mp4') @entry_work_on_this_file.yellow_background @entry_work_on_this_file.bblack1 end
do_focus_on_the_input_field()
click to toggle source
do_open_a_local_file()
click to toggle source
open_local_file()
click to toggle source
#¶ ↑
open_local_file
¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/video_editor/video_editor_module.rb, line 227 def open_local_file require 'gtk_paradise/widgets/gtk3/select_file/select_file.rb' # ======================================================================= # # We will actively filter for .mp3 files only. # ======================================================================= # widget = ::Gtk::SelectFile.new(self) {{ current_folder: '/home/x/songs/' }} this_file = widget.do_pick_file.text.to_s return this_file end
padding?()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
# File lib/multimedia_paradise/gui/shared_code/video_editor/video_editor_module.rb, line 62 def reset reset_the_internal_variables # ======================================================================= # # === @configuration # ======================================================================= # @configuration = [true, __dir__, NAMESPACE] # ======================================================================= # # === @title # ======================================================================= # @title = TITLE # ======================================================================= # # === @width # ======================================================================= # set_width(WIDTH) # ======================================================================= # # === @height # ======================================================================= # set_height(HEIGHT) cd('/Depot/j/') if is_on_roebe? set_use_this_font(:dejavu_condensed_20) use_gtk_paradise_project_css_file infer_the_size_automatically end
run()
click to toggle source
set_main_entry(i)
click to toggle source