mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
Fixed undo issue for combined editor;
Added keyword usage statistics git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@516 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <script/scriptable.hpp>
|
||||
#include <util/dynamic_arg.hpp>
|
||||
#include <wx/regex.h>
|
||||
|
||||
DECLARE_POINTER_TYPE(KeywordParam);
|
||||
@@ -18,6 +19,7 @@ DECLARE_POINTER_TYPE(KeywordMode);
|
||||
DECLARE_POINTER_TYPE(Keyword);
|
||||
DECLARE_POINTER_TYPE(ParamReferenceType);
|
||||
class KeywordTrie;
|
||||
class Value;
|
||||
|
||||
// ----------------------------------------------------------------------------- : Keyword parameters
|
||||
|
||||
@@ -115,6 +117,10 @@ class Keyword : public IntrusivePtrVirtualBase {
|
||||
|
||||
// ----------------------------------------------------------------------------- : Using keywords
|
||||
|
||||
/// Store keyword usage statistics here, using value_being_updated as the key
|
||||
typedef vector<pair<Value*, const Keyword*> > KeywordUsageStatistics;
|
||||
DECLARE_DYNAMIC_ARG(KeywordUsageStatistics*, keyword_usage_statistics);
|
||||
|
||||
/// A database of keywords to allow for fast matching
|
||||
/** NOTE: keywords may not be altered after they are added to the database,
|
||||
* The database should be rebuild.
|
||||
|
||||
Reference in New Issue
Block a user