~ubuntu-branches/ubuntu/natty/unity/natty-proposed

« back to all changes in this revision

Viewing changes to src/Launcher.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-03-01 14:27:16 UTC
  • mfrom: (1.1.33 upstream)
  • Revision ID: james.westby@ubuntu.com-20110301142716-zuky11rmg555t4be
Tags: 3.6.0-0ubuntu1
* New upstream release.
  - Menu bar becomes blank periodically (LP: #683065)
  - Unity does not update when screen resolution changes (LP: #684539)
  - [dash] Keyboard navigation not implemented as specified (LP: #608132)
  - Dash - build the Desktop Dash (LP: #683719)
  - Quicklists not working (LP: #719780)
  - Launcher auto hide animation has a life of it's own / Unity launcher
    constantly sliding in and out without user interaction (LP: #717364)
  - compiz crashed with SIGSEGV in PrivateWindow::getModalTransient()
    (LP: #726235)
  - Don't show launcher number overlays on tap of super (LP: #726630)
  - Optimize texture memory usage for unexposed view icons (LP: #609994)
  - Unity should handle video-out keycodes that correspond to Super + P +
    Enter (LP: #632632)
  - dash - wrong count of remaining items to see (LP: #662605)
  - dash - x search box button visibility (LP: #662614)
  - Touch window management gesture previews (LP: #683688)
  - unity not working on rotated displays (LP: #694596)
  - unity main top bar in displays in wrong area (multi-head issue)
    (LP: #707209)
  - unity place group visual improvements (LP: #714528)
  - Implement ref_state_set for toplevel ATK objects in the panel service
    (LP: #715299)
  - Alt + F1 doesn't show the launcher if hidden (LP: #717125)
  - Keyboard navigation: Choosing a window from launcher doesn't change
    input focus. (LP: #721811)
  - Quicklists not closing when losing focus (LP: #724739)
  - wrong animation in the launcher (LP: #724956)
  - Window management - windows go below launcher and panel (LP: #725463)
  - Media and PrintScreen keys don't work (LP: #621887)
  - super-shortcuts should be "serializable" (LP: #638936)
  - Chromium icon in Unity is distorted / some scaled distored in the unity
    place applications (LP: #670169)
  - launcher stays on screen when it shouldn't | false show/hide positives
    on the launcher (LP: #711176)
  - Keyboard navigation: no public API to know the current Laucher Icon
    selected when key nav is activated (LP: #722660)
  - Require to implement AtkSelection on the Launcher (LP: #723804)
  - LauncherIcon accessibility support requires to expose the selection
    state (LP: #723806)
  - Add keyboard shortcuts for launching separate instances of applications 
    (LP: #724865)
* debian/control:
  - dep on latest nux

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#define SUPER_TAP_DURATION  250
42
42
 
43
43
#define MAX_SUPERKEY_LABELS 10
44
 
#define LAUNCHER_ICON_SIZE  54
45
44
 
46
45
class LauncherModel;
47
46
class QuicklistView;
101
100
  LauncherIcon* GetLastSpreadIcon() {return m_LastSpreadIcon;}
102
101
  void SetLastSpreadIcon(LauncherIcon *i) {m_LastSpreadIcon = i;}
103
102
 
 
103
  LauncherIcon* GetSelectedMenuIcon ();
 
104
 
104
105
  void SetIconSize(int tile_size, int icon_size);
105
106
 
106
107
  void SetModel (LauncherModel *model);
146
147
  virtual void RecvQuicklistClosed (QuicklistView *quicklist);
147
148
 
148
149
  void startKeyNavMode ();
149
 
  void exitKeyNavMode ();
150
 
  void leaveKeyNavMode ();
 
150
  void leaveKeyNavMode (bool preserve_focus = true);
 
151
 
 
152
  void exitKeyNavMode ();   // Connected to signal OnEndFocus
 
153
 
151
154
 
152
155
  sigc::signal<void, char *, LauncherIcon *> launcher_dropped;
 
156
  sigc::signal<void> selection_change;
153
157
protected:
154
158
  // Introspectable methods
155
159
  const gchar* GetName ();
213
217
 
214
218
  static gboolean AnimationTimeout (gpointer data);
215
219
  static gboolean OnAutohideTimeout (gpointer data);
 
220
  static gboolean DrawLauncherTimeout (gpointer data);
216
221
  static gboolean StrutHack (gpointer data);
 
222
  static gboolean MoveFocusToKeyNavModeTimeout (gpointer data);
217
223
  
218
224
  void SetMousePosition (int x, int y);
219
225
  
346
352
 
347
353
  void SetOffscreenRenderTarget (nux::IntrusiveSP<nux::IOpenGLBaseTexture> texture);
348
354
  void RestoreSystemRenderTarget ();
 
355
  
 
356
  gboolean TapOnSuper ();
349
357
 
350
358
  void
351
359
  DrawRoundedRectangle (cairo_t* cr,
447
455
 
448
456
  guint _autohide_handle;
449
457
  guint _autoscroll_handle;
 
458
  guint _focus_keynav_handle;
 
459
  guint _redraw_handle;
450
460
 
451
461
  nux::Point2   _mouse_position;
452
462
  nux::Point2   _trigger_mouse_position;