Added ChangeKeywordModeAction;

Hopefully fixed the 'Invalid multibyte character' build error on linux (I was using left/right-angle-brackets in string constants);
Fixed 'cost' keywords;


git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@263 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-18 18:02:09 +00:00
parent 37fe4c84ae
commit c8fc427da3
12 changed files with 116 additions and 32 deletions
+5 -2
View File
@@ -92,6 +92,9 @@ void KeywordList::onAction(const Action& action, bool undone) {
refreshList();
}
}
TYPE_CASE_(action, ChangeKeywordModeAction) {
refreshList();
}
}
// ----------------------------------------------------------------------------- : KeywordListBase : for ItemList
@@ -99,8 +102,8 @@ void KeywordList::onAction(const Action& action, bool undone) {
String match_string(const Keyword& a) {
return untag(replace_all(replace_all(
a.match,
_("<atom-param>"), _("")),
_("</atom-param>"), _(""))
_("<atom-param>"), LEFT_ANGLE_BRACKET),
_("</atom-param>"), RIGHT_ANGLE_BRACKET)
);
}
+5 -1
View File
@@ -28,7 +28,11 @@ Rotation TextCtrl::getRotation() const {
void TextCtrl::draw(DC& dc) {
RotatedDC rdc(dc, getRotation(), QUALITY_LOW);
DataViewer::draw(rdc, wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
if (viewers.empty() || !static_cast<FakeTextValue&>(*viewers.front()->getValue()).editable) {
DataViewer::draw(rdc, wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
} else {
DataViewer::draw(rdc, wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
}
}