DataEditor is done

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@79 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-20 00:41:09 +00:00
parent ecf28b00a3
commit d40d3de46c
4 changed files with 146 additions and 6 deletions
+1
View File
@@ -90,6 +90,7 @@ void DataViewer::setStyles(IndexMap<FieldP,StyleP>& styles) {
}
// sort viewers by z-index of style
stable_sort(viewers.begin(), viewers.end(), CompareViewer());
onInit();
}
void DataViewer::setData(IndexMap<FieldP,ValueP>& values) {
+3
View File
@@ -73,6 +73,9 @@ class DataViewer : public SetView {
/// Notification that the total image has changed
virtual void onChange() {}
/// Notification that the viewers are initialized
virtual void onInit() {}
vector<ValueViewerP> viewers; ///< The viewers for the different values in the data
CardP card; ///< The card that is currently displayed, if any
};