mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
ImageValueViewer now works and the viewer control is refreshed
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@55 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -88,6 +88,7 @@ void DataViewer::setData(IndexMap<FieldP,ValueP>& values) {
|
||||
FOR_EACH(v, viewers) {
|
||||
v->setValue(values[v->getField()]);
|
||||
}
|
||||
onChange();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -67,6 +67,9 @@ class DataViewer : public SetView {
|
||||
/// Update the viewers and forward actions
|
||||
virtual void onAction(const Action&, bool undone);
|
||||
|
||||
/// Notification that the total image has changed
|
||||
virtual void onChange() {}
|
||||
|
||||
private:
|
||||
vector<ValueViewerP> viewers; ///< The viewers for the different values in the data
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user