wiki:PRO_CHANGE_UNDO_MANAGER_R0
Last modified 3 years ago Last modified on 02/17/09 00:11:27

Ticket Summary Owner Status Type Component Priority Effort Importance
#155 PRO_CHANGE_UNDO_MANAGER_R0 gogov closed planned_task PRO_LIB_ENTITIES 3 1 25

Reported by Astea, 4 years ago.

Description

wiki page: PRO_CHANGE_UNDO_MANAGER_R0 - effort: 1d

Analysis_owners

sriggins,gogov

Analysis_reviewers

gogov

Analysis_score

2

Design_owners

meddle

Design_score

0

Imp._owners

meddle

Imp._score

0

Test_score

0

Analysis

Overview

The PRO_LIB change manager tracks undo/redo changes made to properties.

The goal of this task is to provide an end user interface to the change manager. Add a user interface via the Edit menu for Undo and Redo. I don't think we should expose skipping, as that would be confusing to the user.

Task requirements

  • Add menu items to the edit menu that tracks the state of the change manager
    • Undo works down the stack
    • Redo works up the stack
  • Add key commands (control-z, control-shift-z for redo) to the menu items
  • Disable the menu items if you are at the proper end of the stack

Task result

The result of this task is code

Implementation idea

  • Look at:
    • org.sophie2.core.prolib.util.UndoManager
    • org.sophie2.core.prolib.events.ProChange
  • See the related tasks for the APIs to talk to

PRO_CHANGE_INFOS_R0 PRO_CHANGE_MANAGER_R0

How to demo

Demo the user interface for undo/redo

Design

Implementation

(Implementation results should be described and linked here (from the wiki or the repository))

Testing

Comments

(Write comments for this or later revisions here.)