Timeline: Prevent status info update from causing complete redraw due to new NTK transparency logic.

This commit is contained in:
Jonathan Moore Liles 2012-06-05 17:31:18 -07:00
parent ab98b66f44
commit a5588f7ad4
1 changed files with 289 additions and 290 deletions

View File

@ -112,8 +112,7 @@ class TLE_Window {open : {public Fl_Overlay_Window}
} }
Function {~TLE_Window()} {open return_type virtual Function {~TLE_Window()} {open return_type virtual
} { } {
code {} {selected code {} {}
}
} }
} }
@ -250,65 +249,68 @@ Loggable::progress_callback( &TLE::progress_cb, this );} {}
label {Non DAW : Timeline} label {Non DAW : Timeline}
callback {if ( Fl::event_key() != FL_Escape ) callback {if ( Fl::event_key() != FL_Escape )
timeline->command_quit();} open timeline->command_quit();} open
xywh {485 131 1025 770} type Double resizable xywh {551 117 1025 770} type Double resizable
class TLE_Window xclass Non_DAW size_range {900 300 0 0} visible class TLE_Window xclass Non_DAW size_range {900 300 0 0} visible
} {
Fl_Group {} {open
xywh {0 0 1025 72} box FLAT_BOX
} { } {
Fl_Menu_Bar menubar {open Fl_Menu_Bar menubar {open
private xywh {0 0 1025 25} private xywh {0 0 1025 25}
} { } {
Submenu {} { Submenu {} {
label {&Project} open label {&Project} open
xywh {0 0 74 25} xywh {5 5 74 25}
} { } {
MenuItem {} { MenuItem {} {
label {&Info} label {&Info}
callback {Project_Info_Dialog pi; callback {Project_Info_Dialog pi;
pi.run();} pi.run();}
xywh {0 0 40 25} deactivate xywh {5 5 40 25} deactivate
} }
Submenu {} { Submenu {} {
label {Se&ttings} open label {Se&ttings} open
xywh {20 20 74 25} xywh {25 25 74 25}
} { } {
MenuItem {} { MenuItem {} {
label {&Follow Playhead} label {&Follow Playhead}
callback {Timeline::follow_playhead = menu_picked_value( o );} callback {Timeline::follow_playhead = menu_picked_value( o );}
xywh {40 40 40 25} type Toggle value 1 xywh {45 45 40 25} type Toggle value 1
} }
MenuItem {} { MenuItem {} {
label {&Center Playhead} label {&Center Playhead}
callback {Timeline::center_playhead = menu_picked_value( o );} callback {Timeline::center_playhead = menu_picked_value( o );}
xywh {50 50 40 25} type Toggle value 1 xywh {55 55 40 25} type Toggle value 1
} }
Submenu {} { Submenu {} {
label {&Snap to} open label {&Snap to} open
xywh {20 20 74 25} xywh {25 25 74 25}
} { } {
MenuItem {} { MenuItem {} {
label Bars label Bars
callback {Timeline::snap_to = Timeline::Bars;} callback {Timeline::snap_to = Timeline::Bars;}
xywh {20 20 40 25} type Radio value 1 xywh {25 25 40 25} type Radio value 1
} }
MenuItem {} { MenuItem {} {
label Beats label Beats
callback {Timeline::snap_to = Timeline::Beats;} callback {Timeline::snap_to = Timeline::Beats;}
xywh {30 30 40 25} type Radio xywh {35 35 40 25} type Radio
} }
MenuItem {} { MenuItem {} {
label Off label Off
callback {Timeline::snap_to = Timeline::None;} callback {Timeline::snap_to = Timeline::None;}
xywh {40 40 40 25} type Radio xywh {45 45 40 25} type Radio
} }
} }
MenuItem {} { MenuItem {} {
label {Magnetic snap} label {Magnetic snap}
callback {Timeline::snap_magnetic = menu_picked_value( o );} callback {Timeline::snap_magnetic = menu_picked_value( o );}
xywh {30 30 40 25} type Toggle value 1 xywh {35 35 40 25} type Toggle value 1
} }
Submenu {} { Submenu {} {
label {Capture Format} open label {Capture Format} open
xywh {20 20 74 25} xywh {25 25 74 25}
} {} } {}
} }
MenuItem {} { MenuItem {} {
@ -344,7 +346,7 @@ load_timeline_settings();
update_menu(); update_menu();
main_window->redraw();} main_window->redraw();}
xywh {0 0 40 25} xywh {5 5 40 25}
} }
MenuItem {} { MenuItem {} {
label {&Open} label {&Open}
@ -357,7 +359,7 @@ const char *name = fl_dir_chooser( "Open Project", path );
free( path ); free( path );
open( name );} open( name );}
xywh {10 10 40 25} xywh {15 15 40 25}
} }
MenuItem {} { MenuItem {} {
label {&Compact} label {&Compact}
@ -367,242 +369,242 @@ if ( n != 2 )
return; return;
Project::compact();} Project::compact();}
xywh {20 20 40 25} xywh {25 25 40 25}
} }
Submenu {} { Submenu {} {
label {&Export} open label {&Export} open
xywh {0 0 74 25} deactivate xywh {5 5 74 25} deactivate
} { } {
MenuItem {} { MenuItem {} {
label Project label Project
xywh {0 0 40 25} xywh {5 5 40 25}
} }
MenuItem {} { MenuItem {} {
label Range label Range
xywh {10 10 40 25} xywh {15 15 40 25}
} }
} }
MenuItem {} { MenuItem {} {
label {&Quit} label {&Quit}
callback {quit()} callback {quit()}
xywh {40 40 40 25} shortcut 0x40071 xywh {45 45 40 25} shortcut 0x40071
} }
} }
Submenu {} { Submenu {} {
label {&Edit} open label {&Edit} open
xywh {0 0 74 25} xywh {5 5 74 25}
} { } {
MenuItem {} { MenuItem {} {
label Undo label Undo
callback {Loggable::undo();} callback {Loggable::undo();}
xywh {0 0 40 25} shortcut 0x4007a divider xywh {5 5 40 25} shortcut 0x4007a divider
} }
MenuItem {} { MenuItem {} {
label {Select None} label {Select None}
callback {timeline->select_none();} callback {timeline->select_none();}
xywh {10 10 40 25} shortcut 0x50061 xywh {15 15 40 25} shortcut 0x50061
} }
MenuItem {} { MenuItem {} {
label {Delete Selected} label {Delete Selected}
callback {timeline->delete_selected();} callback {timeline->delete_selected();}
xywh {20 20 40 25} shortcut 0xffff xywh {25 25 40 25} shortcut 0xffff
} }
} }
Submenu {} { Submenu {} {
label {T&ransport} open label {T&ransport} open
xywh {0 0 74 25} xywh {5 5 74 25}
} { } {
MenuItem {} { MenuItem {} {
label Start label Start
callback {transport->locate( 0 );} callback {transport->locate( 0 );}
xywh {0 0 40 25} shortcut 0xff50 xywh {5 5 40 25} shortcut 0xff50
} }
MenuItem {} { MenuItem {} {
label End label End
callback {transport->locate( timeline->length() );} callback {transport->locate( timeline->length() );}
xywh {10 10 40 25} shortcut 0xff57 xywh {15 15 40 25} shortcut 0xff57
} }
MenuItem {} { MenuItem {} {
label {Play/Stop} label {Play/Stop}
callback {transport->toggle();} callback {transport->toggle();}
xywh {20 20 40 25} shortcut 0x20 xywh {25 25 40 25} shortcut 0x20
} }
MenuItem {} { MenuItem {} {
label Record label Record
callback {transport->toggle_record();} callback {transport->toggle_record();}
xywh {40 40 40 25} shortcut 0x10072 xywh {45 45 40 25} shortcut 0x10072
} }
} }
MenuItem {} { MenuItem {} {
label {&Timeline} label {&Timeline}
xywh {0 0 40 25} xywh {5 5 40 25}
} }
Submenu {} { Submenu {} {
label {&View} open label {&View} open
xywh {0 0 74 25} xywh {5 5 74 25}
} { } {
Submenu {} { Submenu {} {
label {&Zoom} open label {&Zoom} open
xywh {0 0 74 25} xywh {5 5 74 25}
} { } {
MenuItem {} { MenuItem {} {
label {&In} label {&In}
callback {timeline->zoom_in();} callback {timeline->zoom_in();}
xywh {20 20 40 25} shortcut 0x2b xywh {25 25 40 25} shortcut 0x2b
} }
MenuItem {} { MenuItem {} {
label {&Out} label {&Out}
callback {timeline->zoom_out();} callback {timeline->zoom_out();}
xywh {30 30 40 25} shortcut 0x5f xywh {35 35 40 25} shortcut 0x5f
} }
MenuItem {} { MenuItem {} {
label {&Fit} label {&Fit}
callback {timeline->zoom_fit();} callback {timeline->zoom_fit();}
xywh {10 10 40 25} shortcut 0x3d divider xywh {15 15 40 25} shortcut 0x3d divider
} }
MenuItem {} { MenuItem {} {
label {1 sec.} label {1 sec.}
callback {timeline->zoom( 1 );} callback {timeline->zoom( 1 );}
xywh {10 10 40 25} shortcut 0x31 xywh {15 15 40 25} shortcut 0x31
} }
MenuItem {} { MenuItem {} {
label {1 min.} label {1 min.}
callback {timeline->zoom( 60 );} callback {timeline->zoom( 60 );}
xywh {20 20 40 25} shortcut 0x32 xywh {25 25 40 25} shortcut 0x32
} }
MenuItem {} { MenuItem {} {
label {1 hour.} label {1 hour.}
callback {timeline->zoom( 60 * 60 );} callback {timeline->zoom( 60 * 60 );}
xywh {30 30 40 25} shortcut 0x33 xywh {35 35 40 25} shortcut 0x33
} }
} }
MenuItem {} { MenuItem {} {
label {&Theme} label {&Theme}
callback {fl_theme_chooser();} callback {fl_theme_chooser();}
xywh {10 10 40 24} xywh {15 15 40 24}
code0 {\#include "FL/Fl_Theme_Chooser.H"} code0 {\#include "FL/Fl_Theme_Chooser.H"}
} }
} }
Submenu {} { Submenu {} {
label {&Options} open label {&Options} open
xywh {0 0 74 25} divider xywh {5 5 74 25} divider
} { } {
Submenu {} { Submenu {} {
label {&Display} open label {&Display} open
xywh {10 10 74 25} xywh {15 15 74 25}
} { } {
Submenu {} { Submenu {} {
label {&Timeline} open label {&Timeline} open
xywh {10 10 74 25} xywh {15 15 74 25}
} { } {
MenuItem {} { MenuItem {} {
label {&Measure lines} label {&Measure lines}
callback {Timeline::draw_with_measure_lines = menu_picked_value( o ); callback {Timeline::draw_with_measure_lines = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {10 10 40 25} type Toggle value 1 xywh {15 15 40 25} type Toggle value 1
} }
} }
Submenu {} { Submenu {} {
label {&Waveform} open label {&Waveform} open
xywh {10 10 74 25} xywh {15 15 74 25}
} { } {
MenuItem {} { MenuItem {} {
label Fill label Fill
callback {Waveform::fill = menu_picked_value( o ); callback {Waveform::fill = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {20 20 40 25} type Toggle value 1 xywh {25 25 40 25} type Toggle value 1
} }
MenuItem {} { MenuItem {} {
label Outline label Outline
callback {Waveform::outline = menu_picked_value( o ); callback {Waveform::outline = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {40 40 40 25} type Toggle value 1 xywh {45 45 40 25} type Toggle value 1
} }
MenuItem {} { MenuItem {} {
label {Vary color} label {Vary color}
callback {Waveform::vary_color = menu_picked_value( o ); callback {Waveform::vary_color = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {30 30 40 25} type Toggle value 1 xywh {35 35 40 25} type Toggle value 1
} }
} }
Submenu {} { Submenu {} {
label {&Region} open label {&Region} open
xywh {10 10 74 25} xywh {15 15 74 25}
} { } {
MenuItem {} { MenuItem {} {
label {Filled fades} label {Filled fades}
xywh {40 40 40 25} type Toggle value 1 xywh {45 45 40 25} type Toggle value 1
} }
MenuItem {} { MenuItem {} {
label {Inherit track color} label {Inherit track color}
callback {Audio_Region::inherit_track_color = menu_picked_value( o ); callback {Audio_Region::inherit_track_color = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {50 50 40 25} type Toggle value 1 xywh {55 55 40 25} type Toggle value 1
} }
MenuItem {} { MenuItem {} {
label {Show box} label {Show box}
callback {Audio_Region::show_box = menu_picked_value( o ); callback {Audio_Region::show_box = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {50 50 40 25} type Toggle value 1 xywh {55 55 40 25} type Toggle value 1
} }
} }
Submenu {} { Submenu {} {
label {&Control Sequence} open label {&Control Sequence} open
xywh {10 10 74 25} xywh {15 15 74 25}
} { } {
MenuItem {} { MenuItem {} {
label Polygon label Polygon
callback {Control_Sequence::draw_with_polygon = menu_picked_value( o ); callback {Control_Sequence::draw_with_polygon = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {30 30 40 25} type Toggle value 1 xywh {35 35 40 25} type Toggle value 1
} }
MenuItem {} { MenuItem {} {
label Graded label Graded
callback {Control_Sequence::draw_with_gradient = menu_picked_value( o ); callback {Control_Sequence::draw_with_gradient = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {40 40 40 25} type Toggle value 1 xywh {45 45 40 25} type Toggle value 1
} }
MenuItem {} { MenuItem {} {
label Ruled label Ruled
callback {Control_Sequence::draw_with_grid = menu_picked_value( o ); callback {Control_Sequence::draw_with_grid = menu_picked_value( o );
timeline->redraw();} timeline->redraw();}
xywh {50 50 40 25} type Toggle value 1 xywh {55 55 40 25} type Toggle value 1
} }
} }
} }
Submenu {} { Submenu {} {
label {&Behavior} open label {&Behavior} open
xywh {0 0 74 25} xywh {5 5 74 25}
} { } {
Submenu {} { Submenu {} {
label {&Transport} open label {&Transport} open
xywh {0 0 74 25} xywh {5 5 74 25}
} { } {
MenuItem {} { MenuItem {} {
label {Stop Disables Record} label {Stop Disables Record}
callback {transport->stop_disables_record( ((Fl_Menu_*)o)->mvalue()->flags & FL_MENU_VALUE );} callback {transport->stop_disables_record( ((Fl_Menu_*)o)->mvalue()->flags & FL_MENU_VALUE );}
xywh {5 5 40 25} type Toggle value 1 xywh {10 10 40 25} type Toggle value 1
} }
} }
} }
} }
Submenu {} { Submenu {} {
label {&Help} open label {&Help} open
xywh {0 0 74 25} xywh {5 5 74 25}
} { } {
MenuItem {} { MenuItem {} {
label {&Manual} label {&Manual}
callback {show_help_dialog( "MANUAL" );} callback {show_help_dialog( "MANUAL" );}
xywh {10 10 40 25} divider xywh {15 15 40 25} divider
} }
MenuItem {} { MenuItem {} {
label {&About} label {&About}
@ -619,39 +621,36 @@ timeline->redraw();}
ab.run();} ab.run();}
xywh {0 0 40 25} xywh {5 5 40 25}
} }
} }
} }
Fl_Group {} {open
xywh {0 -1 1025 76}
} {
Fl_Pack {} {open Fl_Pack {} {open
xywh {3 27 477 44} type HORIZONTAL xywh {3 28 477 44} type HORIZONTAL
code0 {o->spacing( 10 );} code0 {o->spacing( 10 );}
} { } {
Fl_Box {} { Fl_Box {} {
label {<Transport>} label {<Transport>}
xywh {5 29 185 37} color 30 xywh {5 30 185 37} color 30
code0 {transport = o;} code0 {transport = o;}
code1 {o->labeltype( FL_NO_LABEL );} code1 {o->labeltype( FL_NO_LABEL );}
code2 {o->spacing( 1 );} code2 {o->spacing( 1 );}
class Transport class Transport
} }
Fl_Pack clocks_pack {open Fl_Pack clocks_pack {open
private xywh {195 27 285 44} type HORIZONTAL private xywh {195 28 285 44} type HORIZONTAL
code0 {o->spacing( 2 );} code0 {o->spacing( 2 );}
} { } {
Fl_Box {} { Fl_Box {} {
label PLAYHEAD label PLAYHEAD
private xywh {196 27 137 40} box BORDER_BOX color 40 private xywh {196 28 137 40} box BORDER_BOX color 40
code0 {o->type( Clock::HMS );} code0 {o->type( Clock::HMS );}
code1 {o->run( &transport->frame );} code1 {o->run( &transport->frame );}
class Clock class Clock
} }
Fl_Box {} { Fl_Box {} {
label PLAYHEAD label PLAYHEAD
xywh {335 31 137 37} box BORDER_BOX color 40 xywh {335 32 137 37} box BORDER_BOX color 40
code0 {o->type( Clock::BBT );} code0 {o->type( Clock::BBT );}
code1 {o->run( &transport->frame );} code1 {o->run( &transport->frame );}
class Clock class Clock
@ -660,71 +659,71 @@ ab.run();}
} }
Fl_Box {} { Fl_Box {} {
label {<empty>} label {<empty>}
xywh {475 31 265 40} resizable xywh {475 32 265 40} resizable
code0 {o->labeltype( FL_NO_LABEL );} code0 {o->labeltype( FL_NO_LABEL );}
} }
Fl_Group {} {open Fl_Group {} {open
xywh {850 22 175 50} xywh {850 23 175 50}
} { } {
Fl_Box {} { Fl_Box {} {
label {capture:} label {capture:}
xywh {910 26 56 14} labelsize 10 align 24 xywh {910 27 56 14} labelsize 10 align 24
} }
Fl_Box {} { Fl_Box {} {
label {playback:} label {playback:}
xywh {910 42 56 14} labelsize 10 align 24 xywh {910 43 56 14} labelsize 10 align 24
} }
Fl_Box {} { Fl_Box {} {
label {DSP:} label {DSP:}
xywh {910 56 56 14} labelsize 10 align 24 xywh {910 57 56 14} labelsize 10 align 24
} }
Fl_Box {} { Fl_Box {} {
label filesystem label filesystem
xywh {855 27 55 18} labelsize 10 align 16 xywh {855 28 55 18} labelsize 10 align 16
} }
Fl_Progress capture_buffer_progress { Fl_Progress capture_buffer_progress {
label {50%} label {50%}
private xywh {965 26 60 14} labelsize 10 private xywh {965 27 60 14} labelsize 10
} }
Fl_Progress cpu_load_progress { Fl_Progress cpu_load_progress {
label {50%} label {50%}
private xywh {965 56 60 14} labelsize 9 private xywh {965 57 60 14} labelsize 9
} }
Fl_Progress playback_buffer_progress { Fl_Progress playback_buffer_progress {
label {50%} label {50%}
private xywh {965 41 60 14} labelsize 10 private xywh {965 42 60 14} labelsize 10
} }
Fl_Progress disk_usage_progress { Fl_Progress disk_usage_progress {
label {50%} label {50%}
private xywh {855 42 55 28} labelsize 10 private xywh {855 43 55 28} labelsize 10
code0 {o->type( FL_VERTICAL );} code0 {o->type( FL_VERTICAL );}
} }
} }
Fl_Group {} {open Fl_Group {} {open
xywh {740 30 115 40} xywh {740 31 115 40}
} { } {
Fl_Button solo_blinker { Fl_Button solo_blinker {
label SOLO label SOLO
xywh {800 32 50 15} box ROUNDED_BOX down_box ROUNDED_BOX color 74 selection_color 92 labelfont 2 labelcolor 39 deactivate xywh {800 33 50 15} box ROUNDED_BOX down_box ROUNDED_BOX color 74 selection_color 92 labelfont 2 labelcolor 39 deactivate
code0 {\#include "FL/Fl_Blink_Button.H"} code0 {\#include "FL/Fl_Blink_Button.H"}
class Fl_Blink_Button class Fl_Blink_Button
} }
Fl_Button rec_blinker { Fl_Button rec_blinker {
label REC label REC
xywh {800 52 50 15} box ROUNDED_BOX down_box ROUNDED_BOX color 72 selection_color 88 labelfont 2 labelcolor 39 deactivate xywh {800 53 50 15} box ROUNDED_BOX down_box ROUNDED_BOX color 72 selection_color 88 labelfont 2 labelcolor 39 deactivate
code0 {\#include "FL/Fl_Blink_Button.H"} code0 {\#include "FL/Fl_Blink_Button.H"}
class Fl_Blink_Button class Fl_Blink_Button
} }
Fl_Button selected_blinker { Fl_Button selected_blinker {
label SEL label SEL
xywh {745 52 50 15} box ROUNDED_BOX down_box ROUNDED_BOX color 13 selection_color 5 labelfont 2 labelcolor 39 deactivate xywh {745 53 50 15} box ROUNDED_BOX down_box ROUNDED_BOX color 13 selection_color 5 labelfont 2 labelcolor 39 deactivate
code0 {\#include "FL/Fl_Blink_Button.H"} code0 {\#include "FL/Fl_Blink_Button.H"}
code1 {o->blink( false );} code1 {o->blink( false );}
class Fl_Blink_Button class Fl_Blink_Button
} }
Fl_Button seek_blinker { Fl_Button seek_blinker {
label SEEK label SEEK
xywh {745 32 50 15} box ROUNDED_BOX down_box ROUNDED_BOX color 10 selection_color 2 labelfont 2 labelcolor 39 deactivate xywh {745 33 50 15} box ROUNDED_BOX down_box ROUNDED_BOX color 10 selection_color 2 labelfont 2 labelcolor 39 deactivate
code0 {\#include "FL/Fl_Blink_Button.H"} code0 {\#include "FL/Fl_Blink_Button.H"}
code1 {o->blink_interval( Fl_Blink_Button::FAST );} code1 {o->blink_interval( Fl_Blink_Button::FAST );}
class Fl_Blink_Button class Fl_Blink_Button
@ -732,11 +731,11 @@ ab.run();}
} }
Fl_Box stats_box { Fl_Box stats_box {
label {<stats>} label {<stats>}
xywh {745 0 235 24} labelsize 13 labelcolor 53 align 88 xywh {745 0 235 25} labelsize 13 labelcolor 53 align 88
} }
Fl_Button sm_blinker { Fl_Button sm_blinker {
label SM label SM
xywh {985 5 35 15} box ROUNDED_BOX down_box ROUNDED_BOX color 45 selection_color 93 labelfont 3 labelcolor 39 deactivate xywh {985 6 35 15} box ROUNDED_BOX down_box ROUNDED_BOX color 45 selection_color 93 labelfont 3 labelcolor 39 deactivate
class Fl_Button class Fl_Button
} }
} }
@ -745,8 +744,8 @@ ab.run();}
private xywh {15 394 995 41} hide private xywh {15 394 995 41} hide
} }
Fl_Box {} { Fl_Box {} {
label {<Timeline>} label {<Timeline>} selected
xywh {0 75 1025 692} box FLAT_BOX color 47 labelsize 100 resizable xywh {0 75 1025 692} box FLAT_BOX color 47 labeltype NO_LABEL labelsize 100 resizable
code0 {timeline = o;} code0 {timeline = o;}
class Timeline class Timeline
} }
@ -953,7 +952,7 @@ if ( logo_box->image() )
((Fl_Shared_Image*)logo_box->image())->release(); ((Fl_Shared_Image*)logo_box->image())->release();
logo_box->image( NULL ); logo_box->image( NULL );
}} open }} open
private xywh {761 214 520 775} type Double modal visible private xywh {105 612 520 775} type Double modal visible
} { } {
Fl_Value_Output {} { Fl_Value_Output {} {
label {Sample Rate} label {Sample Rate}