From c819aef9a1f669032786bcfa1e9d694856fc39bf Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Tue, 16 Apr 2013 21:18:35 -0400 Subject: [PATCH] Add renderer settings to VariablesViewNodeInfo. --- .../gui/model/VariablesViewState.cpp | 14 ++++++++++++-- .../user_interface/gui/model/VariablesViewState.h | 7 +++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/apps/debugger/user_interface/gui/model/VariablesViewState.cpp b/src/apps/debugger/user_interface/gui/model/VariablesViewState.cpp index 87e0280ded..99dc79dd69 100644 --- a/src/apps/debugger/user_interface/gui/model/VariablesViewState.cpp +++ b/src/apps/debugger/user_interface/gui/model/VariablesViewState.cpp @@ -21,7 +21,8 @@ VariablesViewNodeInfo::VariablesViewNodeInfo() : fNodeExpanded(false), - fCastedType(NULL) + fCastedType(NULL), + fRendererSettings() { } @@ -29,7 +30,8 @@ VariablesViewNodeInfo::VariablesViewNodeInfo() VariablesViewNodeInfo::VariablesViewNodeInfo(const VariablesViewNodeInfo& other) : fNodeExpanded(other.fNodeExpanded), - fCastedType(other.fCastedType) + fCastedType(other.fCastedType), + fRendererSettings(other.fRendererSettings) { if (fCastedType != NULL) fCastedType->AcquireReference(); @@ -48,6 +50,7 @@ VariablesViewNodeInfo::operator=(const VariablesViewNodeInfo& other) { fNodeExpanded = other.fNodeExpanded; SetCastedType(other.fCastedType); + fRendererSettings = other.fRendererSettings; return *this; } @@ -72,6 +75,13 @@ VariablesViewNodeInfo::SetCastedType(Type* type) } +void +VariablesViewNodeInfo::SetRendererSettings(const BMessage& settings) +{ + fRendererSettings = settings; +} + + // #pragma mark - Key diff --git a/src/apps/debugger/user_interface/gui/model/VariablesViewState.h b/src/apps/debugger/user_interface/gui/model/VariablesViewState.h index 5705d7f3d7..95b5f2996b 100644 --- a/src/apps/debugger/user_interface/gui/model/VariablesViewState.h +++ b/src/apps/debugger/user_interface/gui/model/VariablesViewState.h @@ -7,6 +7,7 @@ #define VARIABLES_VIEW_STATE_H +#include #include #include @@ -35,9 +36,15 @@ public: { return fCastedType; } void SetCastedType(Type* type); + const BMessage& GetRendererSettings() const + { return fRendererSettings; } + + void SetRendererSettings(const BMessage& settings); + private: bool fNodeExpanded; Type* fCastedType; + BMessage fRendererSettings; };