class Fluorite::TUI::App

Included Modules

Defined in:

fluorite/tui/app.cr

Constant 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

Constructor Detail

def self.new #

Instance Method Detail

def active_pane : ActivePane #

def active_pane=(active_pane : ActivePane) #

def current_probe : Probe::ProbeResult | Nil #

def current_probe=(current_probe : Probe::ProbeResult | Nil) #

def current_runner : Runner::ProcessRunner | Nil #

def current_runner=(current_runner : Runner::ProcessRunner | Nil) #

def footer : Opal::UI::Footer #

def generated_cmd : String #

def generated_cmd=(generated_cmd : String) #

def header : Opal::UI::Header #

def init : Opal::TEA::Cmd #
Description copied from module Opal::TEA::Model

Returns initial commands to execute upon application startup.


def job_completed : Bool #

def job_completed=(job_completed : Bool) #

def latest_progress : Runner::Progress #

def latest_progress=(latest_progress : Runner::Progress) #

def media_files : Array(String) #

def presets : Array(Tuple(String, String)) #

def refresh_files #

def render(buffer : Opal::UI::Buffer) : Nil #
Description copied from module Opal::TEA::Model

Optional direct buffer rendering for flicker-free double buffering


def rich_log : Opal::UI::RichLog #

def running_job : Bool #

def running_job=(running_job : Bool) #

def selected_file : String | Nil #

def selected_file_idx : Int32 #

def selected_file_idx=(selected_file_idx : Int32) #

def selected_preset_idx : Int32 #

def selected_preset_idx=(selected_preset_idx : Int32) #

def start_conversion #

def status_message : String #

def status_message=(status_message : String) #

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 update_command_preview #

def update_selected_probe #

def view : String #
Description copied from module Opal::TEA::Model

Renders the current state as a formatted terminal string.