mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Fixed Actions for TextCtrl, actions used to apply to the wrong value.
Changed some TABs to spaces in macros, that should end the conflicts because we use different tab sizes (4 vs 8) git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@234 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+10
-10
@@ -79,16 +79,16 @@ class ValueViewer {
|
||||
|
||||
// ----------------------------------------------------------------------------- : Utility
|
||||
|
||||
#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)
|
||||
#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)
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------- : EOF
|
||||
|
||||
Reference in New Issue
Block a user