diff options
| author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2012-09-13 17:12:22 +0100 |
|---|---|---|
| committer | Nick Dedekind <nicholas.dedekind@gmail.com> | 2012-09-13 17:12:22 +0100 |
| commit | 80909e4f5672b25fa017fd797e0f998b393c04c5 (patch) | |
| tree | 9f743437bb326749cc893d7a4852a7bf09d892ff | |
| parent | e4dcba289c8e899a63e1d108ce44ddb160d7f4c6 (diff) | |
Added preview action button accessors for label and extra text.
(bzr r2684.2.3)
| -rw-r--r-- | dash/previews/ActionButton.cpp | 10 | ||||
| -rw-r--r-- | dash/previews/ActionButton.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/dash/previews/ActionButton.cpp b/dash/previews/ActionButton.cpp index bdeb4260e..fd940847a 100644 --- a/dash/previews/ActionButton.cpp +++ b/dash/previews/ActionButton.cpp @@ -335,5 +335,15 @@ void ActionButton::Deactivate() QueueDraw(); } +std::string ActionButton::GetLabel() const +{ + return label_; +} + +std::string ActionButton::GetExtraText() const +{ + return extra_hint_; +} + } // namespace dash } // namespace unity diff --git a/dash/previews/ActionButton.h b/dash/previews/ActionButton.h index c40cf72f4..a87193971 100644 --- a/dash/previews/ActionButton.h +++ b/dash/previews/ActionButton.h @@ -54,6 +54,9 @@ public: void Activate(); void Deactivate(); + std::string GetLabel() const; + std::string GetExtraText() const; + protected: virtual long ComputeContentSize(); virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw); |
