mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
added SymbolValueEditor + minor fixes
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@96 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -79,12 +79,15 @@ class ValueViewer {
|
||||
|
||||
// ----------------------------------------------------------------------------- : Utility
|
||||
|
||||
#define DECLARE_VALUE_VIEWER(Type) \
|
||||
protected: \
|
||||
inline Type##Style& style() const { return static_cast< Type##Style&>(*styleP); } \
|
||||
inline const Type##Value& value() const { return static_cast<const Type##Value&>(*valueP); } \
|
||||
inline const Type##Field& field() const { return style().field(); } \
|
||||
public: \
|
||||
#define DECLARE_VALUE_VIEWER(Type) \
|
||||
protected: \
|
||||
inline Type##Style& style() const { return static_cast< Type##Style&>(*ValueViewer::styleP); } \
|
||||
inline const Type##Value& value() const { return static_cast<const Type##Value&>(*ValueViewer::valueP); } \
|
||||
inline const Type##Field& field() const { return style().field(); } \
|
||||
inline Type##StyleP styleP() const { return static_pointer_cast<Type##Style>(ValueViewer::styleP); } \
|
||||
inline Type##ValueP valueP() const { return static_pointer_cast<Type##Value>(ValueViewer::valueP); } \
|
||||
inline Type##FieldP fieldP() const { return static_pointer_cast<Type##Field>(style().fieldP); } \
|
||||
public: \
|
||||
Type##ValueViewer(DataViewer& parent, const Type ## StyleP& style)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user