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

« back to all changes in this revision

Viewing changes to shortcuts/ShortcutController.h

  • Committer: smspillaz
  • Date: 2012-06-14 04:28:51 UTC
  • mfrom: (2370.2.39 unity)
  • Revision ID: sam.spilsbury@canonical.com-20120614042851-4lv563bsrh9kv54c
MergeĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <Nux/HLayout.h>
27
27
#include <NuxCore/Color.h>
28
28
#include <UnityCore/Variant.h>
 
29
#include <UnityCore/GLibSource.h>
29
30
 
30
31
#include "unity-shared/Animator.h"
31
32
#include "unity-shared/Introspectable.h"
43
44
public:
44
45
  typedef std::shared_ptr<Controller> Ptr;
45
46
 
46
 
  // Ctor and dtor
 
47
  // Ctor
47
48
  Controller(std::list<AbstractHint::Ptr>& hints);
48
 
  ~Controller();
49
49
 
50
50
  // Public Methods
51
51
  bool Show();
70
70
  void OnFadeInEnded();
71
71
  void OnFadeOutUpdated(double opacity);
72
72
  void OnFadeOutEnded();
73
 
 
74
 
  static gboolean OnShowTimer(gpointer data);
 
73
  bool OnShowTimer();
75
74
 
76
75
  // Private Members
77
76
  View::Ptr view_;
78
77
  Model::Ptr model_;
79
78
 
80
79
  nux::Geometry workarea_;
81
 
  nux::BaseWindow* view_window_;
 
80
  nux::ObjectPtr<nux::BaseWindow> view_window_;
82
81
  nux::HLayout* main_layout_;
83
82
 
84
83
  bool visible_;
85
84
  bool enabled_;
86
85
  nux::Color bg_color_;
87
 
  guint show_timer_;
88
86
 
89
87
  Animator fade_in_animator_;
90
88
  Animator fade_out_animator_;
91
89
 
 
90
  glib::Source::UniquePtr show_timer_;
92
91
  UBusManager ubus_manager_;
93
92
};
94
93