mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 14:07:01 -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:
@@ -44,6 +44,7 @@ class KeywordList : public ItemList, public SetView {
|
||||
virtual void onBeforeChangeSet();
|
||||
virtual void onChangeSet();
|
||||
virtual void onAction(const Action&, bool);
|
||||
void updateUsageStatistics();
|
||||
|
||||
// --------------------------------------------------- : Selection
|
||||
|
||||
@@ -86,6 +87,10 @@ class KeywordList : public ItemList, public SetView {
|
||||
|
||||
mutable wxListItemAttr item_attr; // for OnGetItemAttr
|
||||
|
||||
/// How often is a keyword used in the set?
|
||||
int usage(const Keyword&) const;
|
||||
map<const Keyword*,int> usage_statistics;
|
||||
|
||||
// --------------------------------------------------- : Window events
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user