mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
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:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user