~ps-jenkins/unity/trusty-proposed

« back to all changes in this revision

Viewing changes to shortcuts/ShortcutView.h

  • Committer: CI bot
  • Author(s): Chris Townsend, Andrea Azzarone, Alfred Neumayer, Brandon Schaefer, Marco Trevisan (Treviño)
  • Date: 2014-07-14 14:30:31 UTC
  • mfrom: (3797.1.35 unity.trusty-7.2.2)
  • Revision ID: ps-jenkins@lists.canonical.com-20140714143031-f5ky7acxlp761352
Prepare for upstream micro-release 7.2.2 that includes fixes for the following bugs:
Bug #607796: Launcher, Window management - Dragging and holding a selection over an entry in the Launcher should spread out windows belonging to that application
Bug #727902: Launcher icon highlighting should not switch off as soon the cursor moves after the app spread appears.
Bug #741869: Unity/compiz intercepts Super and Alt keypresses from grabbed windows like VMs.
Bug #754580: Cannot move tabs between multiple Firefox or Chromium windows while using Unity unless windows are both unmaximized, unminimized, and visible.
Bug #839728: Launcher - dragging a item on top of a launcher tile that is a valid drop receptacle in the Launcher should cause that launcher tile to glow
Bug #924840: Keyboard shortcuts overlay text too long
Bug #1281058: [UIFe] The system shutdowns when multiple accounts are open
Bug #1283775: Launcher: icon pips are not always updated properly
Bug #1304882: [Regression] Launcher doesn't reappear fully after hiding from DND
Bug #1305586: Lock screen is unusable when some windows have a keyboard/mouse grab
Bug #1307738: Lockscreen caps lock icon drawn under text entry, should be a white icon.
Bug #1308288: Lockscreen warning icon has no tooltip
Bug #1308323: Shutdown/reboot/login/logout dialogs not scaled after toggling UI scale Edit
Bug #1308911: Clipboard contents are accessible within lockscreen
Bug #1309739: Unity launcher icon edge illumination is offset
Bug #1310200: Indicators disappear at the panel (clementine, dropbox, skype etc)
Bug #1313280: Fullscreen window set to "Always on Top" in single-monitor will hide the lockscreen
Bug #1316005: Panel shadow appears over full screen applications w/ locally integrated menus enabled
Bug #1317348: Switcher (Alt-Tab) does not respect monitor-defined scaling factor
Bug #1317356: Shortcut hint does not respect monitor scaling factor
Bug #1317869: Keyboard shortcuts overlay does not show up when workspaces are enabled at 1366x768
Bug #1320438: Unity launcher auto hide fails on screen unlock using "Super+L"
Bug #1321043: [regression] lock screen bypass with touchpad Fixes: 607796, 727902, 741869, 754580, 839728, 924840, 1281058, 1283775, 1304882, 1305586, 1307738, 1308288, 1308323, 1308911, 1309739, 1310200, 1313280, 1316005, 1317348, 1317356, 1317869, 1320438, 1321043
Approved by: Marco Trevisan (Treviño)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
namespace unity
31
31
{
 
32
class StaticCairoText;
 
33
 
32
34
namespace shortcut
33
35
{
34
36
 
47
49
 
48
50
protected:
49
51
  // Protected methods
50
 
  void DrawOverlay(nux::GraphicsEngine& GfxContext, bool force_draw, nux::Geometry const& clip);
51
 
  nux::Geometry GetBackgroundGeometry();
 
52
  void DrawOverlay(nux::GraphicsEngine& GfxContext, bool force_draw, nux::Geometry const& clip) override;
 
53
  nux::Geometry GetBackgroundGeometry() override;
 
54
  void PreLayoutManagement() override;
52
55
 
53
56
  // Introspectable methods
54
57
  std::string GetName() const;
56
59
private:
57
60
  // Private methods
58
61
  nux::LinearLayout* CreateSectionLayout(std::string const& section_name);
59
 
  nux::View* CreateShortKeyEntryView(AbstractHint::Ptr const& hint);
 
62
  nux::View* CreateShortKeyEntryView(AbstractHint::Ptr const&, StaticCairoText* shortkey, StaticCairoText* description);
 
63
  StaticCairoText* CreateShortcutTextView(std::string const& text, bool bold);
60
64
  nux::LinearLayout* CreateIntermediateLayout();
61
65
 
62
66
  void RenderColumns();
64
68
  // Private members
65
69
  Model::Ptr model_;
66
70
  nux::HLayout* columns_layout_;
 
71
  std::vector<std::vector<StaticCairoText*>> shortkeys_;
 
72
  std::vector<std::vector<StaticCairoText*>> descriptions_;
67
73
 
68
74
  friend class TestShortcutView;
69
75
};