Click here to Skip to main content
15,895,667 members
Articles / Programming Languages / C++

A Simple, Action Based, Undo/Redo Framework

Rate me:
Please Sign up or sign in to vote.
4.51/5 (38 votes)
16 Feb 2013CPOL5 min read 98K   1.9K   104  
How to use a simple, action based, undo/redo framework
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by KisActionDemo.rc
//
#define IDD_ABOUTBOX                    100
#define IDR_MAINFRAME                   128
#define IDR_KISACTIONDEMOTYPE           129
#define IDS_FMT_UNDO                    130
#define IDS_FMT_REDO                    131
#define IDS_ACTION_ADD_SEGMENT_P1_P2    132
#define IDS_ACTION_ADD_RECTANGLE_P1_P2  133
#define IDS_ACTION_ADD_ELLIPSE_P1_P2    134
#define IDS_CLEAR_DRAWING               135
#define IDD_APP_OPTIONS                 135
#define IDC_EDIT_UNDO_REDO_MEMORY_SIZE  1001
#define ID_ACTION_ADDRANDOMSEGMENT      32782
#define ID_ACTION_ADDSEGMENT            32783
#define ID_ACTION_ADDRECTANGLE          32784
#define ID_ACTION_ADDELLIPSE            32785
#define ID_Menu                         32786
#define ID_ACTION_CLEARDRAWING          32787
#define ID_ACTION_CHANGE_OPTIONS        32790

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        136
#define _APS_NEXT_COMMAND_VALUE         32791
#define _APS_NEXT_CONTROL_VALUE         1002
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
zdf
Romania Romania
Just a humble programmer.

Comments and Discussions