Added dummy CardEditor, implemented Stylesheet loading

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@50 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-10-26 22:46:28 +00:00
parent c8e8dd0220
commit 1459cd6d76
23 changed files with 252 additions and 42 deletions
+10
View File
@@ -30,6 +30,11 @@ Reader::Reader(const String& filename)
moveNext();
}
void Reader::addAlias(Version end_version, const Char* a, const Char* b) {
if (app_version < end_version) {
aliasses[a] = b;
}
}
void Reader::handleAppVersion() {
if (enterBlock(_("mse_version"))) {
@@ -113,6 +118,11 @@ void Reader::readLine() {
}
key = cannocial_name_form(trim(line.substr(indent, pos - indent)));
value = pos == String::npos ? _("") : trim_left(line.substr(pos+1));
// aliasses?
map<String,String>::const_iterator it = aliasses.find(key);
if (it != aliasses.end()) {
key = it->second;
}
}
void Reader::unknownKey() {