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

Method VisitSettings

src/commands/SetProjectCommand.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46template<bool Const>
47bool SetProjectCommand::VisitSettings( SettingsVisitorBase<Const> & S ){
48 S.OptionalN( bHasName ).Define( mName, wxT("Name"), _("Project") );
49 S.OptionalN( bHasRate ).Define( mRate, wxT("Rate"), 44100.0, 1.0, 1000000.0);
50 S.OptionalY( bHasSizing ).Define( mPosX, wxT("X"), 10, 0, 2000);
51 S.OptionalY( bHasSizing ).Define( mPosY, wxT("Y"), 10, 0, 2000);
52 S.OptionalY( bHasSizing ).Define( mWidth, wxT("Width"), 1000, 200, 4000);
53 S.OptionalY( bHasSizing ).Define( mHeight, wxT("Height"), 900, 200, 4000);
54 return true;
55};
56
57bool SetProjectCommand::VisitSettings( SettingsVisitor & S )
58 { return VisitSettings<false>(S); }

Callers

nothing calls this directly

Calls 3

OptionalNMethod · 0.80
OptionalYMethod · 0.80
DefineMethod · 0.45

Tested by

no test coverage detected