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:
twanvl
2007-07-07 00:55:27 +00:00
parent e3939813dc
commit 86235dfc91
11 changed files with 66 additions and 5 deletions
+5
View File
@@ -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();