lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5755] Recurse through children--e.g., group boxes


From: Greg Chicares
Subject: [lmi-commits] [5755] Recurse through children--e.g., group boxes
Date: Sun, 21 Jul 2013 23:52:12 +0000

Revision: 5755
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5755
Author:   chicares
Date:     2013-07-21 23:52:12 +0000 (Sun, 21 Jul 2013)
Log Message:
-----------
Recurse through children--e.g., group boxes

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/mvc_controller.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2013-07-20 01:21:21 UTC (rev 5754)
+++ lmi/trunk/ChangeLog 2013-07-21 23:52:12 UTC (rev 5755)
@@ -32488,3 +32488,9 @@
 Remove or adjust impossibly low control widths. See:
   http://lists.nongnu.org/archive/html/lmi/2013-07/msg00021.html
 
+20130721T2352Z <address@hidden> [542]
+
+  mvc_controller.cpp
+Recurse through children--e.g., group boxes. See:
+  http://lists.nongnu.org/archive/html/lmi/2013-07/msg00038.html
+

Modified: lmi/trunk/mvc_controller.cpp
===================================================================
--- lmi/trunk/mvc_controller.cpp        2013-07-20 01:21:21 UTC (rev 5754)
+++ lmi/trunk/mvc_controller.cpp        2013-07-21 23:52:12 UTC (rev 5755)
@@ -217,8 +217,9 @@
 
 void MvcController::ConditionallyEnable()
 {
-    wxWindowList const& wl = CurrentPage().GetChildren();
-    for(wxWindowList::const_iterator i = wl.begin(); i != wl.end(); ++i)
+    typedef std::vector<wxWindow*>::const_iterator wvci;
+    std::vector<wxWindow*> page_lineage = Lineage(&CurrentPage());
+    for(wvci i = page_lineage.begin(); i != page_lineage.end(); ++i)
         {
         wxWindow* pw = *i;
         LMI_ASSERT(0 != pw);
@@ -248,7 +249,6 @@
     // date ranges fail to work, and the observable symptom is quite
     // spectacular.
 
-    typedef std::vector<wxWindow*>::const_iterator wvci;
     for(wvci i = lineage_.begin(); i != lineage_.end(); ++i)
         {
         wxWindow* pw = *i;
@@ -429,8 +429,9 @@
         }
 
     SetFocus();
-    wxWindowList const& wl = CurrentPage().GetChildren();
-    for(wxWindowList::const_iterator i = wl.begin(); i != wl.end(); ++i)
+    typedef std::vector<wxWindow*>::const_iterator wvci;
+    std::vector<wxWindow*> page_lineage = Lineage(&CurrentPage());
+    for(wvci i = page_lineage.begin(); i != page_lineage.end(); ++i)
         {
         wxWindow* w = *i;
         if(w && w->IsEnabled() && w->AcceptsFocus())




reply via email to

[Prev in Thread] Current Thread [Next in Thread]