appletundo.c File Reference

#include "appletinternal.h"

Include dependency graph for appletundo.c:

Go to the source code of this file.

Defines

#define noaction   0

Typedefs

typedef boolean(* globalscallback )(long, boolean)

Functions

static boolean initstack (short basesize, short elemsize, hdlstack *hstack)
static boolean pushstack (hdlstack hstack, ptrvoid pelem)
static boolean popstack (hdlstack hstack, ptrvoid pelem)
static void swapundostacks (void)
static boolean pushstep (undocallback pundo, Handle hundo, boolean flaction)
boolean pushundostep (undocallback pundo, Handle hundo)
static boolean pushactionstep (short ixaction, long globaldata)
static boolean popundostep (tyundorecord *pstep)
static boolean pushaction (short ixaction, long globaldata)
static void killactions (void)
boolean pushundoaction (short ixaction)
boolean popundoaction (void)
boolean undolastaction (boolean flbuildredo)
boolean redolastaction (boolean flbuildundo)
boolean getundoaction (short *ixaction)
boolean getredoaction (short *ixaction)
boolean getundomenuitem (bigstring bsundo, boolean *flenabled)
void killundo (void)
boolean newundostack (hdlundostack *hstack)
boolean disposeundostack (hdlundostack hstack)

Variables

static boolean flmultipleundo = false
hdlundostack undostack = nil
hdlundostack redostack = nil


Define Documentation

#define noaction   0
 

Definition at line 12 of file appletundo.c.


Typedef Documentation

typedef boolean(* globalscallback)(long, boolean)
 

Definition at line 23 of file appletundo.c.


Function Documentation

boolean disposeundostack hdlundostack  hstack  ) 
 

Definition at line 463 of file appletundo.c.

References alertdialog(), assert, disposehandle(), nil, and noaction.

Here is the call graph for this function:

boolean getredoaction short ixaction  ) 
 

Definition at line 389 of file appletundo.c.

References noaction.

boolean getundoaction short ixaction  ) 
 

Definition at line 381 of file appletundo.c.

References noaction.

boolean getundomenuitem bigstring  bsundo,
boolean flenabled
 

Definition at line 397 of file appletundo.c.

References app, tyappletrecord::appwindow, bigstring, cantundoitem, getredoaction(), getstringlist(), getundoaction(), nil, pushstring(), redostring, stringlength, undolistnumber, and undostring.

Referenced by adjustmenus().

Here is the call graph for this function:

static boolean initstack short  basesize,
short  elemsize,
hdlstack hstack
[static]
 

Definition at line 26 of file appletundo.c.

References tystack::basesize, tystack::elemsize, newclearhandle(), and tystack::topstack.

Here is the call graph for this function:

static void killactions void   )  [static]
 

Definition at line 206 of file appletundo.c.

References app, tyundostack::globaldata, long, popundostep(), tyappletrecord::setundoglobalscallback, and undostack.

Here is the call graph for this function:

void killundo void   ) 
 

Definition at line 436 of file appletundo.c.

References killactions(), and swapundostacks().

Here is the call graph for this function:

boolean newundostack hdlundostack hstack  ) 
 

Definition at line 452 of file appletundo.c.

References initstack(), and noaction.

Here is the call graph for this function:

static boolean popstack hdlstack  hstack,
ptrvoid  pelem
[static]
 

Definition at line 65 of file appletundo.c.

References gethandlesize(), long, moveleft(), and sethandlesize().

Here is the call graph for this function:

boolean popundoaction void   ) 
 

Definition at line 271 of file appletundo.c.

References app, long, noaction, popundostep(), tyappletrecord::setundoglobalscallback, shellsetundoglobals(), shellundostack, short, and undostack.

Here is the call graph for this function:

static boolean popundostep tyundorecord pstep  )  [static]
 

Definition at line 163 of file appletundo.c.

References popstack(), and undostack.

Here is the call graph for this function:

static boolean pushaction short  ixaction,
long  globaldata
[static]
 

Definition at line 175 of file appletundo.c.

References tyundostack::ixaction, noaction, pushactionstep(), and undostack.

Here is the call graph for this function:

static boolean pushactionstep short  ixaction,
long  globaldata
[static]
 

Definition at line 157 of file appletundo.c.

References pushstep().

Here is the call graph for this function:

static boolean pushstack hdlstack  hstack,
ptrvoid  pelem
[static]
 

Definition at line 49 of file appletundo.c.

References tystack::elemsize, and enlargehandle().

Here is the call graph for this function:

static boolean pushstep undocallback  pundo,
Handle  hundo,
boolean  flaction
[static]
 

Definition at line 116 of file appletundo.c.

References tyundorecord::flactionstep, tyundorecord::hundodata, tyundostack::ixaction, noaction, pushstack(), tyundorecord::undoroutine, and undostack.

Here is the call graph for this function:

boolean pushundoaction short  ixaction  ) 
 

Definition at line 236 of file appletundo.c.

References app, flmultipleundo, tyappletrecord::getundoglobalscallback, killactions(), nil, noaction, pushaction(), shelladjustundo(), shellgetundoglobals(), shellundostack, swapundostacks(), and undostack.

Here is the call graph for this function:

boolean pushundostep undocallback  pundo,
Handle  hundo
 

Definition at line 144 of file appletundo.c.

References pushstep().

Here is the call graph for this function:

boolean redolastaction boolean  flbuildundo  ) 
 

Definition at line 369 of file appletundo.c.

References swapundostacks(), and undolastaction().

Here is the call graph for this function:

static void swapundostacks void   )  [static]
 

Definition at line 90 of file appletundo.c.

References app, tyappletrecord::appwindow, redostack, and undostack.

boolean undolastaction boolean  flbuildredo  ) 
 

Definition at line 314 of file appletundo.c.

References app, tyundostack::ixaction, long, noaction, popundostep(), pushaction(), tyappletrecord::setundoglobalscallback, shellsetundoglobals(), shellundostack, short, swapundostacks(), and undostack.

Here is the call graph for this function:


Variable Documentation

boolean flmultipleundo = false [static]
 

Definition at line 16 of file appletundo.c.

hdlundostack redostack = nil
 

Definition at line 20 of file appletundo.c.

Referenced by newappwindow(), setappwindow(), and swapundostacks().

hdlundostack undostack = nil
 

Definition at line 18 of file appletundo.c.

Referenced by killactions(), newappwindow(), popundoaction(), popundostep(), pushaction(), pushstep(), pushundoaction(), setappwindow(), swapundostacks(), and undolastaction().


Generated on Wed May 31 21:44:54 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6