class
Fluorite::TUI::App
- Fluorite::TUI::App
- Reference
- Object
Included Modules
- Opal::TEA::Model
Defined in:
fluorite/tui/app.crConstant Summary
-
MEDIA_EXTENSIONS =
Set {".mp4", ".mkv", ".mov", ".avi", ".webm", ".flv", ".wmv", ".ts", ".m4v", ".mp3", ".wav", ".ogg", ".flac", ".m4a", ".aac", ".opus", ".gif"}
Constructors
Instance Method Summary
- #active_pane : ActivePane
- #active_pane=(active_pane : ActivePane)
- #current_probe : Probe::ProbeResult | Nil
- #current_probe=(current_probe : Probe::ProbeResult | Nil)
- #current_runner : Runner::ProcessRunner | Nil
- #current_runner=(current_runner : Runner::ProcessRunner | Nil)
- #footer : Opal::UI::Footer
- #generated_cmd : String
- #generated_cmd=(generated_cmd : String)
- #header : Opal::UI::Header
-
#init : Opal::TEA::Cmd
Returns initial commands to execute upon application startup.
- #job_completed : Bool
- #job_completed=(job_completed : Bool)
- #latest_progress : Runner::Progress
- #latest_progress=(latest_progress : Runner::Progress)
- #media_files : Array(String)
- #presets : Array(Tuple(String, String))
- #refresh_files
-
#render(buffer : Opal::UI::Buffer) : Nil
Optional direct buffer rendering for flicker-free double buffering
- #rich_log : Opal::UI::RichLog
- #running_job : Bool
- #running_job=(running_job : Bool)
- #selected_file : String | Nil
- #selected_file_idx : Int32
- #selected_file_idx=(selected_file_idx : Int32)
- #selected_preset_idx : Int32
- #selected_preset_idx=(selected_preset_idx : Int32)
- #start_conversion
- #status_message : String
- #status_message=(status_message : String)
-
#update(msg : Opal::TEA::Msg) : Tuple(Opal::TEA::Model, Opal::TEA::Cmd)
Updates the model state based on an incoming message, returning the new model and optional command.
- #update_command_preview
- #update_selected_probe
-
#view : String
Renders the current state as a formatted terminal string.
Constructor Detail
Instance Method Detail
def init : Opal::TEA::Cmd
#
Description copied from module Opal::TEA::Model
Returns initial commands to execute upon application startup.
def render(buffer : Opal::UI::Buffer) : Nil
#
Description copied from module Opal::TEA::Model
Optional direct buffer rendering for flicker-free double buffering
def update(msg : Opal::TEA::Msg) : Tuple(Opal::TEA::Model, Opal::TEA::Cmd)
#
Description copied from module Opal::TEA::Model
Updates the model state based on an incoming message, returning the new model and optional command.
def view : String
#
Description copied from module Opal::TEA::Model
Renders the current state as a formatted terminal string.