URL:
  <http://gna.org/patch/?1054>

                 Summary: gui2 text box history
                 Project: Battle for Wesnoth
            Submitted by: cjhopman
            Submitted on: Sunday 04/13/2008 at 03:36
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

So-- a nice little history feature for the new gui.

See the change to addon.cfg to see how to give a text box a history. One
thing that could definitely be changed is to put the history_map somewhere
else, possibly in game_preferences. I don't really like the idea of the map
of pointers that nobody really takes care of... I don't know.

Saving text to the history still has to be hardcoded. See the change to
addon_connect.cpp for how that is done (For testing it may be easier to add a
similar call to the goto_end_of_line() method in text_box). 

With the history in its own class, I decided that all text_boxes would get a
history instance and then almost all the special case code could just be
offloaded to the history class.

Also, may be nice to put a limit on the size of the history.

Thoughts?



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sunday 04/13/2008 at 03:36  Name: gui2_text_box_history.patch  Size:
5kB   By: cjhopman
text box history feature for gui2
<http://gna.org/patch/download.php?file_id=4194>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?1054>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to