~apinheiro/nux/fix-event-inspector

« back to all changes in this revision

Viewing changes to Nux/VLayout.cpp

  • Committer: Gord Allott
  • Date: 2011-03-10 15:20:36 UTC
  • mfrom: (255.3.7 keynav-fixes-11-03-7)
  • Revision ID: gord.allott@canonical.com-20110310152036-qgez83boyj3qqr35
bugfixes for keynav and a bunch of other cool stuff, woo

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
  {
66
66
  }
67
67
 
 
68
  //left and right in a vlayout should pass event to parent
 
69
  long VLayout::DoFocusLeft (IEvent &ievent, long TraverseInfo, long ProcessEventInfo)
 
70
  {
 
71
    Area *parent = GetParentObject ();
 
72
    if (parent != NULL)
 
73
      return SendEventToArea (parent, ievent, TraverseInfo, ProcessEventInfo);
 
74
    else
 
75
      FocusFirstChild ();
 
76
    
 
77
    return TraverseInfo;
 
78
  }
 
79
  long VLayout::DoFocusRight (IEvent &ievent, long TraverseInfo, long ProcessEventInfo)
 
80
  {
 
81
    Area *parent = GetParentObject ();
 
82
    if (parent != NULL)
 
83
      return SendEventToArea (parent, ievent, TraverseInfo, ProcessEventInfo);
 
84
    else
 
85
      FocusLastChild ();
 
86
    return TraverseInfo;
 
87
  }
 
88
 
68
89
  void VLayout::GetCompositeList (std::list<Area *> *ViewList)
69
90
  {
70
91
    std::list<Area *>::iterator it;