67 FXival nrefs()
const {
return refs; }
73 void unref(){
if(--refs<=0)
delete this; }
78 virtual void undo() = 0;
83 virtual void redo() = 0;
93 virtual FXuval size()
const;
113 virtual FXbool canMerge()
const;
125 virtual FXuint mergeWith(
FXCommand* command);
178 virtual FXuval size()
const;
181 virtual void clear();
224 long onCmdUndo(
FXObject*,FXSelector,
void*);
225 long onUpdUndo(
FXObject*,FXSelector,
void*);
226 long onCmdRedo(
FXObject*,FXSelector,
void*);
227 long onUpdRedo(
FXObject*,FXSelector,
void*);
228 long onCmdClear(
FXObject*,FXSelector,
void*);
229 long onUpdClear(
FXObject*,FXSelector,
void*);
230 long onCmdRevert(
FXObject*,FXSelector,
void*);
231 long onUpdRevert(
FXObject*,FXSelector,
void*);
232 long onCmdUndoAll(
FXObject*,FXSelector,
void*);
233 long onCmdRedoAll(
FXObject*,FXSelector,
void*);
234 long onUpdUndoCount(
FXObject*,FXSelector,
void*);
235 long onUpdRedoCount(
FXObject*,FXSelector,
void*);
236 long onCmdAltHistory(
FXObject*,FXSelector,
void*);
237 long onUpdAltHistory(
FXObject*,FXSelector,
void*);
238 long onCmdDumpStats(
FXObject*,FXSelector,
void*);
241 ID_CLEAR=FXWindow::ID_LAST,
265 FXbool
busy()
const {
return working; }
287 FXbool add(
FXCommand* cmd,FXbool doit=
false,FXbool merge=
true);
340 FXbool canUndo()
const;
345 FXbool canRedo()
const;
350 FXbool canRevert()
const;
370 virtual FXuval size()
const;
373 virtual void clear();
387 void trimCount(FXint nc);
395 void trimSize(FXuval sz);
423 FXbool marked()
const;
FXint redoCount() const
Number of redo records.
Definition: FXUndoList.h:379
FXint undoCount() const
Number of undo records.
Definition: FXUndoList.h:376
FXbool busy() const
Return true if currently inside undo or redo operation; this is useful to avoid generating another un...
Definition: FXUndoList.h:265
void setAlternateHistory(FXbool flag)
Enable or disable alternate history mode.
Definition: FXUndoList.h:432
Base class for undoable commands records.
Definition: FXUndoList.h:55
Marked pointer keeps a flag bit inside of a dynamically allocated pointer; this is possible because m...
Definition: FXMarkedPtr.h:34
Definition: FX4Splitter.h:28
FXbool getAlternateHistory() const
Returns true if alternate history mode is in effect.
Definition: FXUndoList.h:437
The UndoList class manages a list of undoable commands.
Definition: FXUndoList.h:210
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
Group of undoable commands.
Definition: FXUndoList.h:154
FXCommandGroup()
Construct initially empty undo command group.
Definition: FXUndoList.h:166
FXbool empty()
Return true if empty.
Definition: FXUndoList.h:169
FXival no() const
Return number of items.
Definition: FXArray.h:69
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42