49 int maxLength()
const;
55 void setMaxLength(
int);
57 const char* description=0);
60 int currentEventID()
const;
61 int firstEventID()
const;
62 int lastEventID()
const;
64 void removeAllAfterCurrentEvent();
65 void removeAllBeforeCurrentEvent();
69 int getNextUserInteractionEnd(
int start)
const;
72 void setDesc(
int eventid,
const char* d);
78 bool unDo(
int nrtimes=1,
bool userinteraction=
true);
81 bool reDo(
int nrtimes=1,
bool userinteraction=
true);
89 void removeOldEvents();
90 void removeStartToAndIncluding(
int);
117 virtual bool unDo() = 0;
118 virtual bool reDo() = 0;
131 virtual const BinID& getBinID()
const;
#define mExpClass(module)
Definition: commondefs.h:160
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
BinID UndoEvent.
Definition: undo.h:128
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:53
BufferString getDesc() const
int maxsize_
Definition: undo.h:93
int firsteventid_
Definition: undo.h:92
Notifier< Undo > undoredochange
Definition: undo.h:84
ObjectSet< T >::size_type indexOf(const ObjectSet< T > &os, const S &val)
Locate object in set.
Definition: objectset.h:169
Class to handle undo/redo information.
Definition: undo.h:42
bool isUserInteractionEnd() const
Notifier< Undo > changenotifier
Definition: undo.h:83
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:40
BufferString * desc_
Definition: undo.h:121
int currenteventid_
Definition: undo.h:91
ObjectSet< UndoEvent > events_
Definition: undo.h:95
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
Threads::Lock addlock_
Definition: undo.h:98
int userendscount_
Definition: undo.h:96
bool isuserinteractionend_
Definition: undo.h:122
void setUserInteractionEnd(bool=true)