mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-23 06:35:50 +01:00
Add DragCommand. Default Y/N on optional fields. Open/Save project items.
- More Y/N in Optional, making it easier to omit parameters. - AT removed from Envelope, since T already gives it.
This commit is contained in:
committed by
Paul Licameli
parent
bcf0865c1a
commit
e3ef968d57
@@ -32,11 +32,11 @@ SetLabelCommand::SetLabelCommand()
|
||||
|
||||
|
||||
bool SetLabelCommand::DefineParams( ShuttleParams & S ){
|
||||
S.Define( mLabelIndex, wxT("Label"), 0, 0, 100 );
|
||||
S.Optional( bHasText ).Define( mText, wxT("Text"), wxT("empty") );
|
||||
S.Optional( bHasT0 ).Define( mT0, wxT("Start"), 0.0, 0.0, 100000.0);
|
||||
S.Optional( bHasT1 ).Define( mT1, wxT("End"), 0.0, 0.0, 100000.0);
|
||||
S.Optional( bHasSelected ).Define( mbSelected, wxT("Selected"), false );
|
||||
S.Define( mLabelIndex, wxT("Label"), 0, 0, 100 );
|
||||
S.OptionalY( bHasText ).Define( mText, wxT("Text"), wxT("empty") );
|
||||
S.OptionalY( bHasT0 ).Define( mT0, wxT("Start"), 0.0, 0.0, 100000.0);
|
||||
S.OptionalY( bHasT1 ).Define( mT1, wxT("End"), 0.0, 0.0, 100000.0);
|
||||
S.OptionalN( bHasSelected ).Define( mbSelected, wxT("Selected"), false );
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user