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

Method VisitSettings

src/commands/SelectCommand.cpp:72–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71template<bool Const>
72bool SelectTimeCommand::VisitSettings( SettingsVisitorBase<Const> & S ){
73 // Allow selection down to -ve 100seconds.
74 // Typically used to expand/contract selections by a small amount.
75 S.OptionalY( bHasT0 ).Define( mT0, wxT("Start"), 0.0, -100.0, (double)FLT_MAX);
76 S.OptionalY( bHasT1 ).Define( mT1, wxT("End"), 0.0, -100.0, (double)FLT_MAX);
77 S.OptionalN( bHasRelativeSpec ).DefineEnum( mRelativeTo, wxT("RelativeTo"), 0, kRelativeTo, nRelativeTos );
78 return true;
79}
80
81bool SelectTimeCommand::VisitSettings( SettingsVisitor & S )
82 { return VisitSettings<false>(S); }

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