Dependency following now works

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@95 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-25 22:48:14 +00:00
parent 9a62445621
commit 8dcda6fd93
16 changed files with 108 additions and 12 deletions
+1
View File
@@ -39,6 +39,7 @@ class IndexMap : private vector<Value> {
using vector<Value>::const_reference;
using vector<Value>::begin;
using vector<Value>::end;
using vector<Value>::at; // for using numeric indices directly
/// Initialize this map with default values given a list of keys
/** has no effect if already initialized with the given keys */
+5
View File
@@ -227,6 +227,11 @@ void Reader::handle(IndexMap<K,V>& m) {
/* warning: unknown value */ \
warning(_("Unrecognized value: ") + value); \
} \
} \
bool parse_enum(const String& value, Enum& out) { \
EnumReader reader(value); \
reflect_ ## Enum(out, reader); \
return reader.isDone(); \
}
/// 'Tag' to be used when reflecting enumerations for Reader
+14
View File
@@ -178,6 +178,20 @@ enum ControlID {
, ID_NOTEBOOK
, ID_APPRENTICE_BROWSE
, ID_CHECK_UPDATES_NOW
// Image slicer
, ID_PREVIEW
, ID_SELECTOR
, ID_SIZE
, ID_LEFT
, ID_TOP
, ID_WIDTH
, ID_HEIGHT
, ID_FIX_ASPECT
, ID_ZOOM
, ID_ZOOM_X
, ID_ZOOM_Y
, ID_SHARPEN
, ID_SHARPEN_AMOUNT
};
// ----------------------------------------------------------------------------- : EOF