~smspillaz/unity/untiy.less-paint-insanity

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/LensView.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:
50
50
 
51
51
public:
52
52
  LensView();
53
 
  LensView(Lens::Ptr lens);
54
 
  virtual ~LensView();
 
53
  LensView(Lens::Ptr lens, nux::Area* show_filters);
 
54
  ~LensView();
55
55
 
 
56
  CategoryGroups& categories() { return categories_; }
 
57
  FilterBar* filter_bar() const { return filter_bar_; }
56
58
  Lens::Ptr lens() const;
 
59
  nux::Area* fscroll_view() const;
 
60
 
 
61
  int GetNumRows();
57
62
 
58
63
  virtual void ActivateFirst();
59
64
 
64
69
 
65
70
  sigc::signal<void, std::string const&> uri_activated;
66
71
 
 
72
  void CheckNoResults(Lens::Hints const& hints);
 
73
  void HideResultsMessage();
 
74
 
67
75
private:
68
 
  void SetupViews();
 
76
  void SetupViews(nux::Area* show_filters);
69
77
  void SetupCategories();
70
78
  void SetupResults();
71
79
  void SetupFilters();
96
104
  CategoryGroups categories_;
97
105
  ResultCounts counts_;
98
106
  bool initial_activation_;
 
107
  bool no_results_active_;
99
108
 
100
109
  nux::HLayout* layout_;
101
110
  LensScrollView* scroll_view_;
103
112
  LensScrollView* fscroll_view_;
104
113
  nux::VLayout* fscroll_layout_;
105
114
  FilterBar* filter_bar_;
 
115
  nux::StaticCairoText* no_results_;
106
116
 
107
117
  guint fix_renderering_id_;
108
118