Get rid of useless Region_Base class.
This commit is contained in:
parent
d316e8772c
commit
feb777a050
|
@ -29,11 +29,8 @@
|
||||||
#include "Track_Widget.H"
|
#include "Track_Widget.H"
|
||||||
#include "Loggable.H"
|
#include "Loggable.H"
|
||||||
|
|
||||||
class Region;
|
|
||||||
|
|
||||||
/* Base for engine. Just to maintain state. Must be free of FLTK
|
class Region : public Track_Widget
|
||||||
* stuff */
|
|
||||||
class Region_Base : public Track_Widget
|
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -181,41 +178,12 @@ protected:
|
||||||
|
|
||||||
free( sa );
|
free( sa );
|
||||||
|
|
||||||
#ifndef ENGINE
|
|
||||||
if ( _track )
|
if ( _track )
|
||||||
_track->redraw();
|
_track->redraw();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Region_Base ( )
|
|
||||||
{
|
|
||||||
_clip = NULL;
|
|
||||||
_scale = 1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef ENGINE
|
|
||||||
/* for loggable */
|
|
||||||
static Loggable *
|
|
||||||
create ( char **sa )
|
|
||||||
{
|
|
||||||
Region_Base *r = new Region_Base;
|
|
||||||
|
|
||||||
r->set( sa );
|
|
||||||
|
|
||||||
return (Loggable *)r;
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
friend class Region;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifndef ENGINE
|
|
||||||
class Region : public Region_Base
|
|
||||||
{
|
|
||||||
|
|
||||||
static Fl_Boxtype _box;
|
static Fl_Boxtype _box;
|
||||||
static Fl_Color _selection_color;
|
static Fl_Color _selection_color;
|
||||||
static Fl_Color selection_color ( void ) { return _selection_color; }
|
static Fl_Color selection_color ( void ) { return _selection_color; }
|
||||||
|
@ -276,4 +244,3 @@ public:
|
||||||
nframes_t write ( sample_t *buf, nframes_t nframes );
|
nframes_t write ( sample_t *buf, nframes_t nframes );
|
||||||
|
|
||||||
};
|
};
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue