~3v1n0/unity/overlay-border-scale

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/LauncherController.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:
24
24
#include <memory>
25
25
#include <vector>
26
26
#include <sigc++/sigc++.h>
27
 
#include <core/core.h>
28
27
 
29
28
#include "SoftwareCenterLauncherIcon.h"
30
29
 
36
35
class Launcher;
37
36
class LauncherModel;
38
37
 
39
 
class Controller : public sigc::trackable
 
38
class Controller : public unity::debug::Introspectable, public sigc::trackable
40
39
{
41
40
public:
42
41
  typedef std::shared_ptr<Controller> Ptr;
 
42
  typedef std::vector<nux::ObjectPtr<Launcher> > LauncherList;
 
43
 
 
44
  nux::Property<Options::Ptr> options;
 
45
  nux::Property<bool> multiple_launchers;
43
46
 
44
47
  Controller(Display* display);
45
48
  ~Controller();
46
49
 
47
 
  Launcher& launcher();
48
 
  Window launcher_input_window_id();
 
50
  Launcher& launcher() const;
 
51
  LauncherList& launchers() const;
 
52
  Window LauncherWindowId(int launcher) const;
 
53
  Window KeyNavLauncherInputWindowId() const;
49
54
 
50
55
  void UpdateNumWorkspaces(int workspaces);
51
 
  std::vector<char> GetAllShortcuts();
52
 
  std::vector<AbstractLauncherIcon*> GetAltTabIcons();
 
56
  std::vector<char> GetAllShortcuts() const;
 
57
  std::vector<AbstractLauncherIcon::Ptr> GetAltTabIcons(bool current) const;
53
58
 
54
 
  void PrimaryMonitorGeometryChanged(nux::Geometry const& geo);
55
59
  void PushToFront();
56
60
 
57
61
  void SetShowDesktopIcon(bool show_desktop_icon);
58
62
 
 
63
  void HandleLauncherKeyPress();
 
64
  void HandleLauncherKeyRelease(bool was_tap);
 
65
  bool HandleLauncherKeyEvent(Display *display, 
 
66
                              unsigned int key_sym, 
 
67
                              unsigned long key_code, 
 
68
                              unsigned long key_state, 
 
69
                              char* key_string);
 
70
 
 
71
  void KeyNavActivate();
 
72
  void KeyNavGrab();
 
73
  void KeyNavTerminate(bool activate = true);
 
74
  void KeyNavNext();
 
75
  void KeyNavPrevious();
 
76
  bool KeyNavIsActive() const;
 
77
 
 
78
protected:
 
79
  // Introspectable methods
 
80
  std::string GetName() const;
 
81
  void AddProperties(GVariantBuilder* builder);
 
82
 
59
83
private:
60
84
  class Impl;
61
85
  Impl* pimpl;