mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
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:
@@ -99,8 +99,8 @@ void KeywordList::onAction(const Action& action, bool undone) {
|
||||
String match_string(const Keyword& a) {
|
||||
return untag(replace_all(replace_all(
|
||||
a.match,
|
||||
_("<param>"), _("‹")),
|
||||
_("</param>"), _("›"))
|
||||
_("<atom-param>"), _("‹")),
|
||||
_("</atom-param>"), _("›"))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,7 @@ void NativeLookEditor::resizeViewers() {
|
||||
}
|
||||
|
||||
void NativeLookEditor::onInit() {
|
||||
DataEditor::onInit();
|
||||
// Give viewers a chance to show/hide controls (scrollbar) when selecting other editors
|
||||
FOR_EACH_EDITOR {
|
||||
e->onShow(true);
|
||||
@@ -191,7 +192,6 @@ StylingEditor::StylingEditor(Window* parent, int id, long style)
|
||||
{}
|
||||
|
||||
void StylingEditor::showStylesheet(const StyleSheetP& stylesheet) {
|
||||
this->stylesheet = stylesheet;
|
||||
setStyles(set->stylesheet, stylesheet->styling_style);
|
||||
setData(set->stylingDataFor(*stylesheet));
|
||||
}
|
||||
|
||||
@@ -72,8 +72,6 @@ class StylingEditor : public NativeLookEditor {
|
||||
protected:
|
||||
virtual void onChangeSet();
|
||||
|
||||
private:
|
||||
StyleSheetP stylesheet; ///< The stylesheet for which we are showing the styling data
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
|
||||
Reference in New Issue
Block a user