mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Reduce coupling between ValueEditors/Viewers and Set and StyleSheet.
- Adding of actions is done with an addAction function
- Files are read from
- getStylePackage for styling stuff (this is stylesheet)
- getLocalPackage for symbol and image values (this was the set)
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@970 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -205,6 +205,12 @@ void SetInfoEditor::onChangeSet() {
|
||||
setData(set->data);
|
||||
}
|
||||
|
||||
Package& SetInfoEditor::getStylePackage() const {
|
||||
return DataEditor::getStylePackage();
|
||||
// TODO: Use the game
|
||||
//return getGame();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : StylingEditor
|
||||
|
||||
StylingEditor::StylingEditor(Window* parent, int id, long style)
|
||||
@@ -232,7 +238,11 @@ ExportOptionsEditor::ExportOptionsEditor(Window* parent, int id, long style)
|
||||
{}
|
||||
|
||||
void ExportOptionsEditor::showExport(const ExportTemplateP& export_template) {
|
||||
this->export_template = export_template;
|
||||
setStyles(set->stylesheet, export_template->option_style);
|
||||
setData(settings.exportOptionsFor(*export_template));
|
||||
}
|
||||
|
||||
Package& ExportOptionsEditor::getStylePackage() const {
|
||||
return *export_template;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user