Draw capture in red.
This commit is contained in:
parent
4bee9a7053
commit
ef0851b426
|
@ -105,6 +105,8 @@ public:
|
||||||
void dump ( void );
|
void dump ( void );
|
||||||
void remove_selected ( void );
|
void remove_selected ( void );
|
||||||
|
|
||||||
|
const Region *capture ( void ) const { return track()->capture(); }
|
||||||
|
|
||||||
nframes_t play ( sample_t *buf, nframes_t frame, nframes_t nframes, int channels );
|
nframes_t play ( sample_t *buf, nframes_t frame, nframes_t nframes, int channels );
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
#include "Timeline.H"
|
#include "Timeline.H"
|
||||||
#include "Waveform.H"
|
#include "Waveform.H"
|
||||||
|
|
||||||
|
#include "Audio_Sequence.H"
|
||||||
|
|
||||||
#include "dsp.h"
|
#include "dsp.h"
|
||||||
|
|
||||||
#include <FL/fl_draw.H>
|
#include <FL/fl_draw.H>
|
||||||
|
@ -548,12 +550,14 @@ Region::draw_box( void )
|
||||||
|
|
||||||
fl_push_clip( x(), y(), w(), h() );
|
fl_push_clip( x(), y(), w(), h() );
|
||||||
|
|
||||||
int active = active_r();
|
|
||||||
|
|
||||||
Fl_Color selection_color = _selection_color;
|
Fl_Color selection_color = _selection_color;
|
||||||
Fl_Color color = _box_color;
|
Fl_Color color = _box_color;
|
||||||
|
|
||||||
if ( ! active_r() )
|
if ( this == ((Audio_Sequence*)track())->capture() )
|
||||||
|
{
|
||||||
|
color = FL_RED;
|
||||||
|
}
|
||||||
|
else if ( ! active_r() )
|
||||||
{
|
{
|
||||||
color = fl_inactive( color );
|
color = fl_inactive( color );
|
||||||
selection_color = fl_inactive( selection_color );
|
selection_color = fl_inactive( selection_color );
|
||||||
|
@ -561,7 +565,6 @@ Region::draw_box( void )
|
||||||
|
|
||||||
if ( selected() )
|
if ( selected() )
|
||||||
fl_draw_box( fl_down( box() ), x() - 10, y(), w() + 50, h(), selection_color );
|
fl_draw_box( fl_down( box() ), x() - 10, y(), w() + 50, h(), selection_color );
|
||||||
// fl_draw_box( fl_down( box() ), x() - 10, Y, w() + 50, H, fl_invert_color( _box_color ) );
|
|
||||||
else
|
else
|
||||||
fl_draw_box( box(), x() - 10, y(), w() + 50, h(), color );
|
fl_draw_box( box(), x() - 10, y(), w() + 50, h(), color );
|
||||||
|
|
||||||
|
|
|
@ -229,6 +229,9 @@ public:
|
||||||
void draw ( void );
|
void draw ( void );
|
||||||
int handle ( int m );
|
int handle ( int m );
|
||||||
|
|
||||||
|
|
||||||
|
const Region *capture ( void ) const { return _capture; }
|
||||||
|
|
||||||
/* Engine */
|
/* Engine */
|
||||||
nframes_t process ( nframes_t nframes );
|
nframes_t process ( nframes_t nframes );
|
||||||
void seek ( nframes_t frame );
|
void seek ( nframes_t frame );
|
||||||
|
|
Loading…
Reference in New Issue