shellundo.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "shell.h"
#include "shellmenu.h"
#include "shellundo.h"

Include dependency graph for shellundo.c:

Go to the source code of this file.

Defines

#define noaction   0

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)
void killundo (void)
boolean newundostack (hdlundostack *hstack)
boolean disposeundostack (hdlundostack hstack)
void initundo (void)

Variables

static boolean flmultipleundo = false
hdlundostack shellundostack = nil
hdlundostack shellredostack = nil


Define Documentation

#define noaction   0
 

Definition at line 37 of file shellundo.c.

Referenced by disposeundostack(), getredoaction(), getundoaction(), newundostack(), popundoaction(), pushaction(), pushstep(), pushundoaction(), and undolastaction().


Function Documentation

boolean disposeundostack hdlundostack  hstack  ) 
 

Definition at line 459 of file shellundo.c.

boolean getredoaction short ixaction  ) 
 

Definition at line 424 of file shellundo.c.

boolean getundoaction short ixaction  ) 
 

Definition at line 416 of file shellundo.c.

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

Definition at line 50 of file shellundo.c.

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

Referenced by newundostack().

Here is the call graph for this function:

void initundo void   ) 
 

Definition at line 474 of file shellundo.c.

Referenced by shellinit().

static void killactions void   )  [static]
 

Definition at line 232 of file shellundo.c.

References tyundostack::globaldata, long, popundostep(), shellsetundoglobals(), and shellundostack.

Referenced by killundo(), and pushundoaction().

Here is the call graph for this function:

void killundo void   ) 
 

Definition at line 432 of file shellundo.c.

boolean newundostack hdlundostack hstack  ) 
 

Definition at line 448 of file shellundo.c.

static boolean popstack hdlstack  hstack,
ptrvoid  pelem
[static]
 

Definition at line 89 of file shellundo.c.

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

Referenced by popundostep().

Here is the call graph for this function:

boolean popundoaction void   ) 
 

Definition at line 306 of file shellundo.c.

static boolean popundostep tyundorecord pstep  )  [static]
 

Definition at line 189 of file shellundo.c.

References popstack(), and shellundostack.

Referenced by killactions(), popundoaction(), and undolastaction().

Here is the call graph for this function:

static boolean pushaction short  ixaction,
long  globaldata
[static]
 

Definition at line 201 of file shellundo.c.

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

Referenced by pushundoaction(), and undolastaction().

Here is the call graph for this function:

static boolean pushactionstep short  ixaction,
long  globaldata
[static]
 

Definition at line 183 of file shellundo.c.

References pushstep().

Referenced by pushaction().

Here is the call graph for this function:

static boolean pushstack hdlstack  hstack,
ptrvoid  pelem
[static]
 

Definition at line 73 of file shellundo.c.

References tystack::elemsize, and enlargehandle().

Referenced by pushstep().

Here is the call graph for this function:

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

Definition at line 140 of file shellundo.c.

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

Referenced by pushactionstep(), and pushundostep().

Here is the call graph for this function:

boolean pushundoaction short  ixaction  ) 
 

Definition at line 262 of file shellundo.c.

boolean pushundostep undocallback  pundo,
Handle  hundo
 

Definition at line 170 of file shellundo.c.

boolean redolastaction boolean  flbuildundo  ) 
 

Definition at line 404 of file shellundo.c.

static void swapundostacks void   )  [static]
 

Definition at line 114 of file shellundo.c.

References shellredostack, shellundostack, and shellwindowinfo.

Referenced by killundo(), pushundoaction(), redolastaction(), and undolastaction().

boolean undolastaction boolean  flbuildredo  ) 
 

Definition at line 349 of file shellundo.c.


Variable Documentation

boolean flmultipleundo = false [static]
 

Definition at line 41 of file shellundo.c.

Referenced by pushundoaction().

hdlundostack shellredostack = nil
 

Definition at line 45 of file shellundo.c.

Referenced by shellsetglobals(), and swapundostacks().

hdlundostack shellundostack = nil
 

Definition at line 43 of file shellundo.c.

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


Generated on Tue Jun 13 06:35:33 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6