mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 21:47: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:
@@ -15,9 +15,7 @@
|
||||
|
||||
class SymbolControl;
|
||||
class SymbolPartList;
|
||||
class Card;
|
||||
DECLARE_POINTER_TYPE(SymbolValue);
|
||||
DECLARE_POINTER_TYPE(Set);
|
||||
DECLARE_POINTER_TYPE(ValueActionPerformer);
|
||||
|
||||
// ----------------------------------------------------------------------------- : SymbolWindow
|
||||
|
||||
@@ -29,7 +27,8 @@ class SymbolWindow : public Frame {
|
||||
/// Construct a SymbolWindow showing a symbol from a file
|
||||
SymbolWindow(Window* parent, const String& filename);
|
||||
/// Construct a SymbolWindow showing a symbol value in a set
|
||||
SymbolWindow(Window* parent, const SetP& set, const Card* card, const SymbolValueP& value);
|
||||
SymbolWindow(Window* parent, ValueActionPerformer* performer);
|
||||
~SymbolWindow();
|
||||
|
||||
private:
|
||||
// --------------------------------------------------- : Children
|
||||
@@ -41,9 +40,7 @@ class SymbolWindow : public Frame {
|
||||
SymbolPartList* parts; ///< A list of parts in the symbol
|
||||
|
||||
// when editing a symbol field
|
||||
SymbolValueP value;
|
||||
const Card* card;
|
||||
SetP set;
|
||||
ValueActionPerformer* performer;
|
||||
|
||||
// --------------------------------------------------- : Event handling
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
||||
Reference in New Issue
Block a user