# data file for the Fltk User Interface Designer (fluid) version 1.0107 header_name {.h} code_name {.cxx} decl {\#include } {} decl {\#include } {} class UserInterface {open } { Function {UserInterface()} {open } { Fl_Window window { label {Footage Browser} open xywh {473 179 805 480} type Double resizable visible } { Fl_Box scrub_view { callback {filename_output->value(scrub_view->current_file()); clip_scrub_slider->value(scrub_view->position_in_clip());} xywh {0 0 805 285} box DOWN_BOX color 0 resizable code0 {\#include "ScrubView.H"} class ScrubView } Fl_Output filename_output { xywh {150 285 505 30} textfont 1 textsize 18 } Fl_Group {} {open xywh {655 285 150 195} } { Fl_Slider gamma_slider { label Gamma callback {gamma_value->value( o->value() ); scrub_view->m_fBrowser.gamma( o->value() ); scrub_view->redraw();} xywh {685 305 110 25} type {Horz Knob} labelfont 1 align 1 minimum -1 } Fl_Slider saturation_slider { label Saturation callback {saturation_value->value( o->value() ); scrub_view->m_fBrowser.saturation( o->value() ); scrub_view->redraw();} xywh {685 355 110 25} type {Horz Knob} labelfont 1 align 1 minimum -1 } Fl_Slider brightness_slider { label Brightness callback {brightness_value->value( o->value() ); scrub_view->m_fBrowser.brightness( o->value() ); scrub_view->redraw();} xywh {685 405 110 25} type {Horz Knob} labelfont 1 align 1 minimum -1 } Fl_Value_Input gamma_value { callback {gamma_slider->value( o->value() ); scrub_view->m_fBrowser.gamma( o->value() ); scrub_view->redraw();} xywh {660 305 25 25} labelsize 12 minimum -1 step 0.001 textsize 12 } Fl_Value_Input saturation_value { callback {saturation_slider->value( o->value() ); scrub_view->m_fBrowser.saturation( o->value() ); scrub_view->redraw();} xywh {660 355 25 25} labelsize 12 minimum -1 step 0.001 textsize 12 } Fl_Value_Input brightness_value { callback {brightness_slider->value( o->value() ); scrub_view->m_fBrowser.brightness( o->value() ); scrub_view->redraw();} selected xywh {660 405 25 25} labelsize 12 minimum -1 step 0.001 textsize 12 } } Fl_Group {} {open xywh {0 285 150 195} } { Fl_Button {} { label {@<-> Scan Directory} callback {scrub_view->clear(); scrub_view->addFolder( file_browser->path() ); scrub_slider->bounds( 0.0, (double)( scrub_view->getLength() ) );} xywh {0 285 150 30} } Fl_File_Browser file_browser { callback {nle::FileBrowser* fb = (nle::FileBrowser*)o; fb->load_rel();} xywh {0 315 150 165} resizable code0 {\#include "FileBrowser.H"} class {nle::FileBrowser} } } Fl_Tabs {} {open xywh {150 315 505 175} } { Fl_Group {} { label Controls open xywh {150 340 505 140} hide } { Fl_Group {} {open xywh {150 430 505 50} } { Fl_Group {} {open xywh {250 430 405 50} resizable } { Fl_Slider scrub_slider { callback {scrub_view->seek_position( (int64_t)o->value() ); scrub_view->redraw();} xywh {250 455 405 25} type {Horz Knob} } Fl_Slider clip_scrub_slider { callback {scrub_view->scrub_clip_position( o->value() ); scrub_view->redraw();} xywh {250 430 405 25} type {Horz Knob} } } Fl_Button {} { label {@>} callback {scrub_view->play();} xywh {200 430 50 50} } Fl_Button {} { label {@square} callback {scrub_view->stop();} xywh {150 430 50 50} } } } Fl_Group {} { label Colors open xywh {150 340 505 150} } { Fl_Box color_lift { callback {scrub_view->lift( color_lift->m_fcolor[0], color_lift->m_fcolor[1], color_lift->m_fcolor[2] ); scrub_view->redraw();} xywh {150 365 115 115} box DOWN_BOX code0 {\#include "ColorWheel.H"} class ColorWheel } Fl_Box {} { xywh {630 395 15 25} resizable } Fl_Box {} { label Lift xywh {151 341 114 24} box THIN_UP_BOX } Fl_Box color_gain { callback {scrub_view->gain( color_gain->m_fcolor[0], color_gain->m_fcolor[1], color_gain->m_fcolor[2] ); scrub_view->redraw();} xywh {380 365 115 115} box DOWN_BOX code0 {\#include "ColorWheel.H"} class ColorWheel } Fl_Box {} { label Gain xywh {380 341 114 24} box THIN_UP_BOX } Fl_Box color_gamma { callback {scrub_view->gamma( color_gamma->m_fcolor[0], color_gamma->m_fcolor[1], color_gamma->m_fcolor[2] ); scrub_view->redraw();} xywh {265 365 115 115} box DOWN_BOX code0 {\#include "ColorWheel.H"} class ColorWheel } Fl_Box {} { label Gamma xywh {265 341 114 24} box THIN_UP_BOX } Fl_Check_Button {} { label Bypass callback {scrub_view->m_fBrowser.m_bypass = o->value(); scrub_view->m_dirty = true; scrub_view->redraw();} xywh {495 340 55 25} down_box DOWN_BOX } } } } code {scrub_slider->bounds( 0.0, (double)( scrub_view->getLength() ) );} {} } Function {show()} {open } { code {window->show(); file_browser->load("/");} {} } Function {shown()} {open return_type bool } { code {return window->shown();} {} } } Function {main()} {open return_type int } { code {UserInterface ui; Fl_Tooltip::color( fl_rgb_color( 0, 0, 1 ) ); Fl::background2( 34, 52, 103 ); Fl::background( 93, 93, 114 ); Fl::foreground( 255, 255, 255 ); Fl::set_color( FL_BLACK, 200, 200, 200 ); ui.show(); return Fl::run();} {} }