~azzar1/unity/fix-trash-li-blocking

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/FilterBar.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:
28
28
#include <UnityCore/Filters.h>
29
29
 
30
30
#include "FilterFactory.h"
 
31
#include "Introspectable.h"
31
32
 
32
33
namespace unity
33
34
{
34
35
namespace dash
35
36
{
36
37
 
37
 
class FilterBar : public nux::View
 
38
class FilterExpanderLabel;
 
39
 
 
40
class FilterBar : public nux::View, public debug::Introspectable
38
41
{
39
42
  NUX_DECLARE_OBJECT_TYPE(FilterBar, nux::View);
40
43
public:
47
50
  void RemoveFilter(Filter::Ptr const& filter);
48
51
 
49
52
protected:
 
53
  virtual bool AcceptKeyNavFocus();
50
54
  virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
51
55
  virtual void DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw);
52
56
 
 
57
  // Introspection
 
58
  virtual std::string GetName() const;
 
59
  virtual void AddProperties(GVariantBuilder* builder);
 
60
 
53
61
private:
54
62
  void Init();
55
63
 
56
64
  FilterFactory factory_;
57
65
  Filters::Ptr filters_;
58
 
  std::map<Filter::Ptr, nux::View*> filter_map_;
 
66
  std::map<Filter::Ptr, FilterExpanderLabel*> filter_map_;
59
67
};
60
68
 
61
69
} // namespace dash