mail[Wesnoth-commits] r40310 - in /trunk/src/gui: dialogs/game_load.cpp widgets/listbox.cpp widgets/listbox.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on December 20, 2009 - 21:46:
Author: mordante
Date: Sun Dec 20 21:46:20 2009
New Revision: 40310

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40310&view=rev
Log:
Rename set_row_visible to set_row_shown.

Modified:
    trunk/src/gui/dialogs/game_load.cpp
    trunk/src/gui/widgets/listbox.cpp
    trunk/src/gui/widgets/listbox.hpp

Modified: trunk/src/gui/dialogs/game_load.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/dialogs/game_load.cpp?rev=40310&r1=40309&r2=40310&view=diff
==============================================================================
--- trunk/src/gui/dialogs/game_load.cpp (original)
+++ trunk/src/gui/dialogs/game_load.cpp Sun Dec 20 21:46:20 2009
@@ -155,7 +155,7 @@
                tgrid* row = list.get_row_grid(i);
 
                if (text == ""){
-                       list.set_row_visible(i, true);
+                       list.set_row_shown(i, true);
                }
                else{
                        tgrid::iterator it = row->begin();
@@ -176,7 +176,7 @@
                                }
                        }
 
-                       list.set_row_visible(i
+                       list.set_row_shown(i
                                        , !found ? twidget::VISIBLE : 
twidget::INVISIBLE);
                }
        }

Modified: trunk/src/gui/widgets/listbox.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/listbox.cpp?rev=40310&r1=40309&r2=40310&view=diff
==============================================================================
--- trunk/src/gui/widgets/listbox.cpp (original)
+++ trunk/src/gui/widgets/listbox.cpp Sun Dec 20 21:46:20 2009
@@ -91,7 +91,7 @@
        generator_->get_item(row).set_active(active);
 }
 
-void tlistbox::set_row_visible(const unsigned row, const bool visible)
+void tlistbox::set_row_shown(const unsigned row, const bool shown)
 {
        assert(generator_);
 
@@ -104,7 +104,7 @@
        {
                twindow::tinvalidate_layout_blocker 
invalidate_layout_blocker(*window);
 
-               generator_->set_item_shown(row, visible);
+               generator_->set_item_shown(row, shown);
                resize_needed = !content_resize_request();
        }
 

Modified: trunk/src/gui/widgets/listbox.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/listbox.hpp?rev=40310&r1=40309&r2=40310&view=diff
==============================================================================
--- trunk/src/gui/widgets/listbox.hpp (original)
+++ trunk/src/gui/widgets/listbox.hpp Sun Dec 20 21:46:20 2009
@@ -102,16 +102,10 @@
        /**
         * Makes a row visible or invisible.
         *
-        * @todo maybe change the name to show row due to the fact that it's
-        * different from the twidget::tvisible the row is only visible or
-        * invisible not hidden.
-        *
-        * show_row(row, show)
-        *
         * @param row                 The row to show or hide.
-        * @param visible             true visible, false invisible.
-        */
-       void set_row_visible(const unsigned row, const bool visible);
+        * @param shown               true visible, false invisible.
+        */
+       void set_row_shown(const unsigned row, const bool shown);
 
        /**
         * Returns the grid of the wanted row.




Related Messages


Powered by MHonArc, Updated Sun Dec 20 22:00:10 2009