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

Method VisitSettings

src/commands/DragCommand.cpp:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62template<bool Const>
63bool DragCommand::VisitSettings( SettingsVisitorBase<Const> & S ){
64 S.OptionalN( bHasId ).Define( mId, wxT("Id"), 11000, -100000, 1000000);
65 S.OptionalY( bHasWinName ).Define( mWinName, wxT("Window"), wxString{"Timeline"});
66 S.OptionalY( bHasFromX ).Define( mFromX, wxT("FromX"), 200.0, 0.0, 1000000.0);
67 S.OptionalY( bHasFromY ).Define( mFromY, wxT("FromY"), 10.0, 0.0, 1000000.0);
68 S.OptionalN( bHasToX ).Define( mToX, wxT("ToX"), 400.0, 0.0, 1000000.0);
69 S.OptionalN( bHasToY ).Define( mToY, wxT("ToY"), 10.0, 0.0, 1000000.0);
70 S.OptionalN( bHasRelativeTo ).DefineEnum( mRelativeTo, wxT("RelativeTo"), kPanel, kCoordTypeStrings, nCoordTypes );
71 return true;
72};
73
74bool DragCommand::VisitSettings( SettingsVisitor & S )
75 { return VisitSettings<false>(S); }

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected