More work on cleaning up undo system.
This commit is contained in:
parent
66815ae8fb
commit
f3d7abfe32
5
Region.H
5
Region.H
|
@ -157,6 +157,11 @@ public:
|
|||
}
|
||||
|
||||
|
||||
~Region ( )
|
||||
{
|
||||
log_destroy();
|
||||
}
|
||||
|
||||
Fl_Boxtype box ( void ) const { return Region::_box; }
|
||||
Fl_Align align ( void ) const { return (Fl_Align)(FL_ALIGN_LEFT | FL_ALIGN_BOTTOM /*| FL_ALIGN_CLIP*/ | FL_ALIGN_INSIDE); }
|
||||
|
||||
|
|
|
@ -65,7 +65,10 @@ public:
|
|||
}
|
||||
|
||||
~Tempo_Point ( )
|
||||
{ if ( _label ) delete[] _label; }
|
||||
{
|
||||
if ( _label ) delete[] _label;
|
||||
log_destroy();
|
||||
}
|
||||
|
||||
float tempo ( void ) const { return _tempo; }
|
||||
void tempo ( float v ) { _tempo = v; }
|
||||
|
|
|
@ -78,7 +78,10 @@ public:
|
|||
}
|
||||
|
||||
~Time_Point ( )
|
||||
{ if ( _label ) delete[] _label; }
|
||||
{
|
||||
if ( _label ) delete[] _label;
|
||||
log_destroy();
|
||||
}
|
||||
|
||||
/* beats_per_bar ( void ) const { return _time.beats_per_bar; } */
|
||||
/* note_type ( void ) const { return _note_type; } */
|
||||
|
|
4
Track.C
4
Track.C
|
@ -76,6 +76,8 @@ Track::draw ( void )
|
|||
void
|
||||
Track::remove ( Track_Widget *r )
|
||||
{
|
||||
Logger _log( this );
|
||||
|
||||
_widgets.remove( r );
|
||||
}
|
||||
|
||||
|
@ -180,7 +182,7 @@ Track::handle ( int m )
|
|||
|
||||
if ( _queued_widget )
|
||||
{
|
||||
remove( _queued_widget );
|
||||
// remove( _queued_widget );
|
||||
delete _queued_widget;
|
||||
_queued_widget = NULL;
|
||||
pushed = NULL;
|
||||
|
|
|
@ -43,6 +43,11 @@ public:
|
|||
_label = NULL;
|
||||
}
|
||||
|
||||
|
||||
virtual ~Track_Point ( )
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
draw ( int X, int Y, int W, int H )
|
||||
{
|
||||
|
|
|
@ -228,7 +228,7 @@ public:
|
|||
if ( Fl::event_state() & FL_CTRL &&
|
||||
Fl::event_button() == 3 )
|
||||
{
|
||||
log_destroy();
|
||||
// log_destroy();
|
||||
|
||||
redraw();
|
||||
_track->queue_delete( this );
|
||||
|
|
Loading…
Reference in New Issue