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

Method VisitSettings

src/commands/SetLabelCommand.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44template<bool Const>
45bool SetLabelCommand::VisitSettings( SettingsVisitorBase<Const> & S ){
46 S.Define( mLabelIndex, wxT("Label"), 0, 0, 10000 );
47 S.OptionalY( bHasText ).Define( mText, wxT("Text"), wxString{"empty"} );
48 S.OptionalY( bHasT0 ).Define( mT0, wxT("Start"), 0.0, 0.0, 100000.0);
49 S.OptionalY( bHasT1 ).Define( mT1, wxT("End"), 0.0, 0.0, 100000.0);
50 S.OptionalN( bHasSelected ).Define( mbSelected, wxT("Selected"), false );
51 return true;
52};
53
54bool SetLabelCommand::VisitSettings( SettingsVisitor & S )
55 { return VisitSettings<false>(S); }

Callers

nothing calls this directly

Calls 3

OptionalYMethod · 0.80
OptionalNMethod · 0.80
DefineMethod · 0.45

Tested by

no test coverage detected