47 int maxLength()
const;
53 void setMaxLength(
int);
55 const char* description=0);
58 int currentEventID()
const;
59 int firstEventID()
const;
60 int lastEventID()
const;
62 void removeAllAfterCurrentEvent();
63 void removeAllBeforeCurrentEvent();
67 int getNextUserInteractionEnd(
int start)
const;
70 void setDesc(
int eventid,
const char* d);
76 bool unDo(
int nrtimes=1,
bool userinteraction=
true);
79 bool reDo(
int nrtimes=1,
bool userinteraction=
true);
88 void removeOldEvents();
89 void removeStartToAndIncluding(
int);
117 virtual bool unDo() = 0;
118 virtual bool reDo() = 0;
134 virtual const BinID& getBinID()
const;
#define mExpClass(module)
Definition: commondefs.h:157
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
BinID UndoEvent.
Definition: undo.h:130
virtual const char * getStandardDesc() const =0
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:51
BufferString getDesc() const
int maxsize_
Definition: undo.h:92
int firsteventid_
Definition: undo.h:91
Notifier< Undo > undoredochange
Definition: undo.h:82
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:173
Class to handle undo/redo information.
Definition: undo.h:40
bool isUserInteractionEnd() const
Notifier< Undo > changenotifier
Definition: undo.h:81
void setDesc(const char *)
Holds the information on how to undo/redo something.
Definition: undo.h:104
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
BufferString * desc_
Definition: undo.h:122
int currenteventid_
Definition: undo.h:90
ObjectSet< UndoEvent > events_
Definition: undo.h:94
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:28
Threads::Lock addlock_
Definition: undo.h:97
int userendscount_
Definition: undo.h:95
bool isuserinteractionend_
Definition: undo.h:123
void setUserInteractionEnd(bool=true)