MCPcopy Create free account
hub / github.com/audacity/audacity / VisitSettings

Method VisitSettings

src/commands/SetClipCommand.cpp:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59template<bool Const>
60bool SetClipCommand::VisitSettings( SettingsVisitorBase<Const> & S ){
61 S.OptionalY( bHasContainsTime ).Define( mContainsTime, wxT("At"), 0.0, 0.0, 100000.0 );
62 S.OptionalN( bHasColour ).DefineEnum( mColour, wxT("Color"), kColour0, kColourStrings, nColours );
63 // Allowing a negative start time is not a mistake.
64 // It will be used in demonstrating time before zero.
65 S.OptionalN( bHasT0 ).Define( mT0, wxT("Start"), 0.0, -5.0, 1000000.0);
66 S.OptionalN( bHasName ).Define( mName, wxT("Name"), _("Unnamed"));
67 return true;
68};
69bool SetClipCommand::VisitSettings( SettingsVisitor & S )
70 { return VisitSettings<false>(S); }
71

Callers

nothing calls this directly

Calls 4

OptionalYMethod · 0.80
OptionalNMethod · 0.80
DefineMethod · 0.45
DefineEnumMethod · 0.45

Tested by

no test coverage detected