~azzar1/unity/fix-1028810

« back to all changes in this revision

Viewing changes to launcher/LauncherIcon.h

  • Committer: Andrea Azzarone
  • Date: 2012-08-22 13:14:18 UTC
  • mfrom: (2516.1.92 unity)
  • Revision ID: azzaronea@gmail.com-20120822131418-mrfwx82k39xnvl9e
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
public:
55
55
  typedef nux::ObjectPtr<nux::BaseTexture> BaseTexturePtr;
56
56
 
57
 
  LauncherIcon();
 
57
  LauncherIcon(IconType type);
58
58
 
59
59
  virtual ~LauncherIcon();
60
60
 
139
139
 
140
140
  struct timespec GetQuirkTime(Quirk quirk);
141
141
 
142
 
  IconType GetIconType();
 
142
  IconType GetIconType() const;
143
143
 
144
144
  virtual nux::Color BackgroundColor() const;
145
145
 
154
154
 
155
155
  nux::BaseTexture* Emblem();
156
156
 
157
 
  std::list<DbusmenuMenuitem*> Menus();
 
157
  MenuItemsVector Menus();
158
158
 
159
159
  void InsertEntryRemote(LauncherEntryRemote::Ptr const& remote);
160
160
 
186
186
    OnDndLeave();
187
187
  }
188
188
 
189
 
  void SetIconType(IconType type);
190
 
 
191
189
  virtual std::string DesktopFile() { return std::string(""); }
192
190
 
193
191
  virtual bool IsSticky() const { return false; }
229
227
 
230
228
  void SetEmblem(BaseTexturePtr const& emblem);
231
229
 
232
 
  virtual std::list<DbusmenuMenuitem*> GetMenus();
 
230
  virtual MenuItemsVector GetMenus();
233
231
 
234
232
  virtual nux::BaseTexture* GetTextureForSize(int size) = 0;
235
233
 
298
296
  glib::Object<DbusmenuClient> _menuclient_dynamic_quicklist;
299
297
 
300
298
private:
 
299
  IconType _icon_type;
 
300
 
301
301
  nux::ObjectPtr<Tooltip> _tooltip;
302
302
  nux::ObjectPtr<QuicklistView> _quicklist;
303
303
 
323
323
 
324
324
  gint64            _shortcut;
325
325
 
326
 
  IconType                 _icon_type;
327
 
 
328
326
  std::vector<nux::Point3> _center;
329
327
  std::vector<bool> _has_visible_window;
330
328
  std::vector<bool> _is_visible_on_monitor;
336
334
 
337
335
  BaseTexturePtr _emblem;
338
336
 
339
 
  bool             _quirks[QUIRK_LAST];
340
 
  struct timespec  _quirk_times[QUIRK_LAST];
 
337
  bool             _quirks[unsigned(Quirk::LAST)];
 
338
  struct timespec  _quirk_times[unsigned(Quirk::LAST)];
 
339
 
 
340
  bool             _allow_quicklist_to_show;
341
341
 
342
342
  std::list<LauncherEntryRemote::Ptr> _entry_list;
343
343