1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 06:22:58 +02:00

More commands documented in wiki implemented.

- Added new facility whereby parameters can be optional, and can be
tested for their presence.
- Can now set Pan, Gain, Selected, Solo, Mute, Focused using SetTrackInfo,
mirroring what GetTrackInfo can do.
This commit is contained in:
James Crook
2018-01-13 20:30:52 +00:00
parent 5302dacf3d
commit af13e85922
5 changed files with 51 additions and 15 deletions

View File

@@ -120,6 +120,7 @@ class CommandImplementation /* not final */ : public Command
private:
CommandType &mType;
ParamValueMap mParams;
ParamBoolMap mSetParams;
/// Using the command signature, looks up a possible parameter value and
/// checks whether it passes the validator.
@@ -133,6 +134,7 @@ protected:
const wxString &paramName,
const wxVariant &param);
void CheckParam(const wxString &paramName);
bool HasParam( const wxString &paramName);
bool GetBool(const wxString &paramName);
long GetLong(const wxString &paramName);
double GetDouble(const wxString &paramName);