2010-01-23 19:44:49 +00:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Audacity - A Digital Audio Editor
|
|
|
|
Copyright 1999-2009 Audacity Team
|
|
|
|
License: GPL v2 - see LICENSE.txt
|
|
|
|
|
|
|
|
Dan Horgan
|
|
|
|
|
|
|
|
******************************************************************//**
|
|
|
|
|
|
|
|
\file CommandMisc
|
|
|
|
\brief Some typedefs which are used in various Command-related files
|
|
|
|
|
|
|
|
*//*******************************************************************/
|
|
|
|
|
|
|
|
#ifndef __COMMANDMISC__
|
|
|
|
#define __COMMANDMISC__
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include "Validators.h"
|
2018-11-14 22:32:06 +00:00
|
|
|
|
|
|
|
class wxVariant;
|
2018-02-07 21:50:55 +00:00
|
|
|
class OldStyleCommandType;
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
// Map from parameter name to the value of the parameter
|
2016-08-07 18:56:54 +00:00
|
|
|
// to do: use hash
|
2010-01-23 19:44:49 +00:00
|
|
|
typedef std::map<wxString, wxVariant> ParamValueMap;
|
2018-01-13 20:30:52 +00:00
|
|
|
typedef std::map<wxString, bool> ParamBoolMap;
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
// Map from parameter name to a suitable Validator
|
2016-08-07 18:51:39 +00:00
|
|
|
// to do: use hash
|
2018-04-16 17:47:44 +00:00
|
|
|
typedef std::map<wxString, std::unique_ptr<Validator>> ValidatorMap;
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
// Map from command name to type
|
2016-08-07 18:56:54 +00:00
|
|
|
// to do: use hash
|
2018-04-16 17:47:44 +00:00
|
|
|
typedef std::map<wxString, std::unique_ptr<OldStyleCommandType>> CommandMap;
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
#endif /* End of include guard: __COMMANDMISC__ */
|