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:
twanvl
2006-10-27 22:55:40 +00:00
parent 7192361c36
commit 275f715463
6 changed files with 13 additions and 3 deletions
+1
View File
@@ -88,6 +88,7 @@ void DataViewer::setData(IndexMap<FieldP,ValueP>& values) {
FOR_EACH(v, viewers) {
v->setValue(values[v->getField()]);
}
onChange();
}
+3
View File
@@ -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
};