[Commits] [wesnoth/wesnoth] 744dd6: editor: Add Recent Files menu with recently loaded...

GitHub noreply at github.com
Sat Oct 17 05:42:10 UTC 2015


  Branch: refs/heads/1.12
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 744dd6cd39e8b530bc31ba0b8e65ed368ebd42b7
      https://github.com/wesnoth/wesnoth/commit/744dd6cd39e8b530bc31ba0b8e65ed368ebd42b7
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-10-09 (Fri, 09 Oct 2015)

  Changed paths:
    M data/themes/editor.cfg
    M src/editor/editor_controller.cpp
    M src/editor/editor_controller.hpp
    M src/editor/editor_preferences.cpp
    M src/editor/editor_preferences.hpp
    M src/editor/map/context_manager.cpp
    M src/editor/map/context_manager.hpp
    M src/editor/map/map_context.cpp
    M src/editor/map/map_context.hpp

  Log Message:
  -----------
  editor: Add Recent Files menu with recently loaded/saved files

File paths are recorded into the game preferences up to a (currently
hardcoded) limit of 6 and opening or saving maps adds or bumps existing
entries to the top. We may allow users to change the MRU limit in
Advanced Preferences in a later commit.

Adds two translatable strings.

In order to fit file paths in the menu without filling up the whole
screen sideways, we use only the file names for now. Because identical
file names could prove to be an actual issue later, I intend to look
into ellipsizing paths correctly in a later step.

(Note that I'm piggybacking on the crummy submenu support we already had
in the themable UI so that this can be safely backported to 1.12. It's
decidedly not optimal usability-wise, but it'll have to do for now.)


  Commit: cb7b2173aad8eaa5a5c8c558595a7e65b0b11eb7
      https://github.com/wesnoth/wesnoth/commit/cb7b2173aad8eaa5a5c8c558595a7e65b0b11eb7
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-10-09 (Fri, 09 Oct 2015)

  Changed paths:
    M data/advanced_preferences.cfg
    M src/editor/editor_preferences.cpp

  Log Message:
  -----------
  editor: Make Recent Files limit customizable and increase default to 10


  Commit: 80dedf7cbcfb72b638cd1547dca3a834cd7dd66c
      https://github.com/wesnoth/wesnoth/commit/80dedf7cbcfb72b638cd1547dca3a834cd7dd66c
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-10-09 (Fri, 09 Oct 2015)

  Changed paths:
    M src/hotkey/command_executor.cpp

  Log Message:
  -----------
  hotkeys: Use a matching arrow icon style for submenus


  Commit: f136c87210eab8887b837f940fdd03b55002d4d4
      https://github.com/wesnoth/wesnoth/commit/f136c87210eab8887b837f940fdd03b55002d4d4
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-10-17 (Sat, 17 Oct 2015)

  Changed paths:
    M data/advanced_preferences.cfg
    M data/themes/editor.cfg
    M src/editor/editor_controller.cpp
    M src/editor/editor_controller.hpp
    M src/editor/editor_preferences.cpp
    M src/editor/editor_preferences.hpp
    M src/editor/map/context_manager.cpp
    M src/editor/map/context_manager.hpp
    M src/editor/map/map_context.cpp
    M src/editor/map/map_context.hpp
    M src/hotkey/command_executor.cpp

  Log Message:
  -----------
  Merge branch 'feature/editor-mru-1.12' into 1.12


  Commit: 7ce73bd302052fd28773c75856224bbf1165274c
      https://github.com/wesnoth/wesnoth/commit/7ce73bd302052fd28773c75856224bbf1165274c
  Author: Ignacio R. Morelle <shadowm at wesnoth.org>
  Date:   2015-10-17 (Sat, 17 Oct 2015)

  Changed paths:
    M changelog

  Log Message:
  -----------
  Update changelog


Compare: https://github.com/wesnoth/wesnoth/compare/cafd94f18d46...7ce73bd30205


More information about the Commits mailing list