~macslow/unity/backported-remote-add-to-5.0

« back to all changes in this revision

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

Merging with upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <memory>
23
23
 
24
24
#include <gdk/gdk.h>
25
 
#include <UnityCore/GLibSignal.h>
26
25
#include <UnityCore/Hud.h>
27
26
 
28
27
#include <NuxCore/Property.h>
49
48
  nux::BaseWindow* window() const;
50
49
 
51
50
  nux::Property<int> launcher_width;
 
51
  nux::Property<bool> launcher_locked_out;
 
52
  nux::Property<bool> multiple_launchers;
52
53
 
53
54
  void ShowHideHud();
54
55
  void ShowHud();
55
56
  void HideHud(bool restore_focus = true);
56
57
  bool IsVisible();
57
 
  void SetLauncherIsLockedOut(bool launcher_is_locked_out);
58
58
 
59
59
protected:
60
60
  std::string GetName() const;
64
64
  void EnsureHud();
65
65
  void SetupWindow();
66
66
  void SetupHudView();
67
 
  void SetupRelayoutCallbacks();
68
67
  void RegisterUBusInterests();
69
68
 
 
69
  int GetTargetMonitor();
 
70
  bool IsLockedToLauncher(int monitor);
 
71
 
70
72
  nux::Geometry GetIdealWindowGeometry();
71
 
  void Relayout(GdkScreen*screen=NULL);
 
73
  void Relayout();
72
74
 
73
75
  void OnMouseDownOutsideWindow(int x, int y, unsigned long bflags, unsigned long kflags);
74
76
  void OnScreenUngrabbed();
81
83
  void OnQueryActivated(Query::Ptr query);
82
84
  void OnQuerySelected(Query::Ptr query);
83
85
 
84
 
 
85
 
private:
86
86
  void StartShowHideTimeline();
87
87
  static gboolean OnViewShowHideFrame(Controller* self);
88
88
 
93
93
private:
94
94
  UBusManager ubus;
95
95
  Hud hud_service_;
96
 
  glib::SignalManager sig_manager_;
97
96
  nux::BaseWindow* window_;
98
97
  bool visible_;
99
98
  bool need_show_;
101
100
  guint timeline_id_;
102
101
  float last_opacity_;
103
102
  gint64 start_time_;
104
 
 
105
 
  bool launcher_is_locked_out_;
106
103
 
107
104
  View* view_;
108
105
  guint ensure_id_;