~3v1n0/unity/overlay-border-scale

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/ResultView.h

  • Committer: Daniel van Vugt
  • Date: 2012-03-14 06:24:18 UTC
  • mfrom: (2108 unity)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: daniel.van.vugt@canonical.com-20120314062418-nprucpbr0m7qky5e
MergedĀ latestĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <UnityCore/GLibSignal.h>
31
31
#include <UnityCore/Results.h>
32
32
 
 
33
#include "Introspectable.h"
33
34
#include "PreviewBase.h"
34
35
#include "ResultRenderer.h"
35
36
 
37
38
{
38
39
namespace dash
39
40
{
40
 
class ResultView : public nux::View
 
41
class ResultView : public nux::View, public debug::Introspectable
41
42
{
42
43
public:
43
44
  NUX_DECLARE_OBJECT_TYPE(ResultView, nux::View);
60
61
  sigc::signal<void, std::string const&> UriActivated;
61
62
  sigc::signal<void, std::string const&> ChangePreview; // request a new preview, string is the uri
62
63
 
 
64
  std::string GetName() const;
 
65
  void AddProperties(GVariantBuilder* builder);
 
66
  IntrospectableList const& GetIntrospectableChildren();
 
67
 
63
68
protected:
64
69
  virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
65
70
  virtual void DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw);
71
76
  std::string preview_result_uri_;
72
77
  ResultRenderer* renderer_;
73
78
  ResultList results_;
 
79
  IntrospectableList introspectable_children_;
 
80
 
 
81
private:
 
82
  void ClearIntrospectableWrappers();
74
83
};
75
84
 
76
85
}