Working on the keywords panel;

Correct styling data now shown on style panel

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@259 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-16 22:27:05 +00:00
parent d4ad3ae704
commit e685b56830
11 changed files with 78 additions and 46 deletions
+12 -8
View File
@@ -115,20 +115,24 @@ FakeTextValue::FakeTextValue(const TextFieldP& field, String* underlying, bool e
{}
void FakeTextValue::store() {
if (editable) {
*underlying = untagged ? untag(value) : value;
} else {
retrieve();
if (underlying) {
if (editable) {
*underlying = untagged ? untag(value) : value;
} else {
retrieve();
}
}
}
void FakeTextValue::retrieve() {
value.assign(untagged ? escape(*underlying) : *underlying);
if (underlying) {
value.assign(untagged ? escape(*underlying) : *underlying);
} else {
value.assign(wxEmptyString);
}
}
void FakeTextValue::onAction(Action& a, bool undone) {
if (underlying) {
store();
}
store();
}
bool FakeTextValue::equals(const Value* that) {