Go back to using long names for properties.

This commit is contained in:
Jonathan Moore Liles 2008-05-07 10:28:57 -05:00
parent 452e1df554
commit 9d498d7eca
5 changed files with 28 additions and 28 deletions

View File

@ -33,7 +33,7 @@ protected:
virtual void get ( Log_Entry &e ) const virtual void get ( Log_Entry &e ) const
{ {
e.add( ":t", _track ); e.add( ":track", _track );
} }
void void
@ -45,7 +45,7 @@ protected:
e.get( i, &s, &v ); e.get( i, &s, &v );
if ( ! strcmp( ":t", s ) ) if ( ! strcmp( ":track", s ) )
{ {
int i; int i;
sscanf( v, "%X", &i ); sscanf( v, "%X", &i );

View File

@ -57,8 +57,8 @@ Audio_Sequence::capture ( void ) const
void void
Audio_Sequence::get ( Log_Entry &e ) const Audio_Sequence::get ( Log_Entry &e ) const
{ {
e.add( ":t", _track ); e.add( ":track", _track );
e.add( ":n", name() ); e.add( ":name", name() );
} }
void void
@ -70,7 +70,7 @@ Audio_Sequence::set ( Log_Entry &e )
e.get( i, &s, &v ); e.get( i, &s, &v );
if ( ! strcmp( ":t", s ) ) if ( ! strcmp( ":track", s ) )
{ {
int i; int i;
sscanf( v, "%X", &i ); sscanf( v, "%X", &i );
@ -80,7 +80,7 @@ Audio_Sequence::set ( Log_Entry &e )
t->track( this ); t->track( this );
} }
else if ( ! strcmp( ":n", s ) ) else if ( ! strcmp( ":name", s ) )
name( v ); name( v );
} }
} }

View File

@ -62,8 +62,8 @@ Control_Sequence::init ( void )
void void
Control_Sequence::get ( Log_Entry &e ) const Control_Sequence::get ( Log_Entry &e ) const
{ {
e.add( ":t", _track ); e.add( ":track", _track );
e.add( ":n", name() ); e.add( ":name", name() );
} }
void void
@ -75,7 +75,7 @@ Control_Sequence::set ( Log_Entry &e )
e.get( i, &s, &v ); e.get( i, &s, &v );
if ( ! strcmp( ":t", s ) ) if ( ! strcmp( ":track", s ) )
{ {
int i; int i;
sscanf( v, "%X", &i ); sscanf( v, "%X", &i );
@ -85,7 +85,7 @@ Control_Sequence::set ( Log_Entry &e )
t->add( this ); t->add( this );
} }
else if ( ! strcmp( ":n", s ) ) else if ( ! strcmp( ":name", s ) )
name( v ); name( v );
} }

View File

@ -85,8 +85,8 @@ protected:
e.add( ":x", _r->offset ); e.add( ":x", _r->offset );
e.add( ":l", _r->start ); e.add( ":l", _r->start );
e.add( ":r", _r->end ); e.add( ":r", _r->end );
e.add( ":t", _track ); e.add( ":sequence", _track );
e.add( ":s", selected() ); e.add( ":selected", selected() );
} }
virtual void virtual void
@ -104,14 +104,14 @@ protected:
_r->start = atoll( v ); _r->start = atoll( v );
else if ( ! strcmp( s, ":r" ) ) else if ( ! strcmp( s, ":r" ) )
_r->end = atoll( v ); _r->end = atoll( v );
else if ( ! strcmp( s, ":s" ) ) else if ( ! strcmp( s, ":selected" ) )
{ {
if ( atoi( v ) ) if ( atoi( v ) )
select(); select();
else else
deselect(); deselect();
} }
else if ( ! strcmp( s, ":t" ) ) else if ( ! strcmp( s, ":sequence" ) )
{ {
int i; int i;
sscanf( v, "%X", &i ); sscanf( v, "%X", &i );

View File

@ -134,28 +134,28 @@ public:
e.get( i, &s, &v ); e.get( i, &s, &v );
if ( ! strcmp( s, ":h" ) ) if ( ! strcmp( s, ":height" ) )
{ {
size( atoi( v ) ); size( atoi( v ) );
// Fl_Widget::size( w(), height() ); // Fl_Widget::size( w(), height() );
resize(); resize();
} }
else if ( ! strcmp( s, ":s" ) ) else if ( ! strcmp( s, ":selected" ) )
_selected = atoi( v ); _selected = atoi( v );
// else if ( ! strcmp( s, ":armed" // else if ( ! strcmp( s, ":armed"
else if ( ! strcmp( s, ":n" ) ) else if ( ! strcmp( s, ":name" ) )
name( v ); name( v );
else if ( ! strcmp( s, ":i" ) ) else if ( ! strcmp( s, ":inputs" ) )
configure_inputs( atoi( v ) ); configure_inputs( atoi( v ) );
else if ( ! strcmp( s, ":o" ) ) else if ( ! strcmp( s, ":outputs" ) )
configure_outputs( atoi( v ) ); configure_outputs( atoi( v ) );
else if ( ! strcmp( s, ":c" ) ) else if ( ! strcmp( s, ":color" ) )
{ {
color( (Fl_Color)atoll( v ) ); color( (Fl_Color)atoll( v ) );
redraw(); redraw();
} }
else if ( ! strcmp( s, ":t" ) ) else if ( ! strcmp( s, ":sequence" ) )
{ {
int i; int i;
sscanf( v, "%X", &i ); sscanf( v, "%X", &i );
@ -184,13 +184,13 @@ public:
virtual void get ( Log_Entry &e ) const virtual void get ( Log_Entry &e ) const
{ {
e.add( ":n", _name ); e.add( ":name", _name );
e.add( ":t", track() ); e.add( ":sequence", track() );
e.add( ":s", _selected ); e.add( ":selected", _selected );
e.add( ":h", size() ); e.add( ":height", size() );
e.add( ":i", input.size() ); e.add( ":inputs", input.size() );
e.add( ":o", output.size() ); e.add( ":outputs", output.size() );
e.add( ":c", (unsigned long)color()); e.add( ":color", (unsigned long)color());
} }
/* for loggable */ /* for loggable */