events on script update; fix in cycle_sort; card list updated on value action

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@136 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-21 21:56:49 +00:00
parent 572881aa31
commit 2ba1d0b1b8
7 changed files with 47 additions and 11 deletions
+6 -5
View File
@@ -61,6 +61,12 @@ class SetScriptManager : public SetScriptContext, public ActionListener {
// Update all styles for a particular card
void updateStyles(const CardP& card);
/// Update all fields of all cards
/** Update all set info fields
* Doesn't update styles
*/
void updateAll();
private:
virtual void onInit(const StyleSheetP& stylesheet, Context* ctx);
@@ -70,11 +76,6 @@ class SetScriptManager : public SetScriptContext, public ActionListener {
/// Updates scripts, starting at some value
/** if the value changes any dependend values are updated as well */
void updateValue(Value& value, const CardP& card);
/// Update all fields of all cards
/** Update all set info fields
* Doesn't update styles
*/
void updateAll();
// Update all values with a specific dependency
void updateAllDependend(const vector<Dependency>& dependent_scripts);