pictverbs.c File Reference

#include "frontier.h"
#include "standard.h"
#include "memory.h"
#include "ops.h"
#include "quickdraw.h"
#include "resources.h"
#include "scrap.h"
#include "search.h"
#include "strings.h"
#include "shell.h"
#include "shellprint.h"
#include "shellundo.h"
#include "shell.rsrc.h"
#include "lang.h"
#include "langexternal.h"
#include "tablestructure.h"
#include "cancoon.h"
#include "pict.h"
#include "pictverbs.h"
#include "kernelverbdefs.h"

Include dependency graph for pictverbs.c:

Go to the source code of this file.

Data Structures

struct  typictvariable

Defines

#define picterrorlist   267
#define nopicterror   1
#define namenotpicterror   2

Typedefs

typedef typictvariableptrpictvariable
typedef typictvariable ** hdlpictvariable

Enumerations

enum  typicttoken {
  scheduleupdatefunc, evalfunc, getpicturefunc, setpicturefunc,
  ctpictverbs
}

Functions

static boolean newpictvariable (boolean flinmemory, long variabledata, hdlpictvariable *h)
boolean pictverbgettypestring (hdlexternalvariable hvariable, bigstring bs)
static boolean pictdisposevariable (hdlexternalvariable hvariable, boolean fldisk)
boolean pictverbdispose (hdlexternalvariable hvariable, boolean fldisk)
boolean pictverbnew (Handle hdata, hdlexternalvariable *hvariable)
static void pictverbcheckwindowrect (hdlpictrecord hpict)
static boolean pictverbinmemory (hdlpictvariable hv)
boolean pictverbmemorypack (hdlexternalvariable h, Handle *hpacked)
boolean pictverbmemoryunpack (Handle hpacked, long *ixload, hdlexternalvariable *h)
boolean pictverbpack (hdlexternalvariable h, Handle *hpacked, boolean *flnewdbaddress)
boolean pictverbunpack (Handle hpacked, long *ixload, hdlexternalvariable *hvariable)
boolean pictverbpacktotext (hdlexternalvariable h, Handle htext)
boolean pictverbgetsize (hdlexternalvariable hvariable, long *size)
boolean pictverbgetdisplaystring (hdlexternalvariable h, bigstring bs)
boolean pictverbisdirty (hdlexternalvariable hvariable)
boolean pictverbsetdirty (hdlexternalvariable hvariable, boolean fldirty)
boolean pictverbgettimes (hdlexternalvariable h, long *timecreated, long *timemodified)
boolean pictverbsettimes (hdlexternalvariable h, long timecreated, long timemodified)
boolean pictwindowopen (hdlexternalvariable hvariable, hdlwindowinfo *hinfo)
boolean pictedit (hdlexternalvariable hvariable, hdlwindowinfo hparent, ptrfilespec fs, bigstring bstitle, rectparam rzoom)
static boolean pictverbscheduleupdate (hdltreenode hparam1, tyvaluerecord *v)
static boolean pictverbevaluator (hdltreenode hparam1, tyvaluerecord *v)
static boolean pictverbgetpicture (hdltreenode hparam1, tyvaluerecord *v)
static void pictresetpicture (void)
static boolean pictverbsetpicture (hdltreenode hparam1, tyvaluerecord *v)
static boolean pictfunctionvalue (short token, hdltreenode hparam1, tyvaluerecord *vreturned, bigstring bserror)
static boolean pictinitverbs (void)
static boolean pictgetcontentsize (long *width, long *height)
static void pictresize (void)
static boolean pictundosetpict (Handle hpict, boolean flundo)
static boolean pictclear (void)
static boolean pictcopy (void)
static boolean pictcut (void)
static boolean pictpaste (void)
boolean pictverbfind (hdlexternalvariable hvariable, boolean *flzoom)
static boolean pictsearch (void)
static boolean pictgetvariable (void *refcon)
static boolean pictpagesetup (void)
static boolean pictsetprintinfo (void)
static boolean pictprint (short pagenumber)
static boolean pictclose (void)
static boolean pictkeystroke (void)
static boolean picttitleclick (Point pt)
static boolean pictgettargetdata (short id)
boolean pictstart (void)

Variables

static short errornum = 0


Define Documentation

#define namenotpicterror   2
 

Definition at line 55 of file pictverbs.c.

#define nopicterror   1
 

Definition at line 54 of file pictverbs.c.

Referenced by pictfunctionvalue().

#define picterrorlist   267
 

Definition at line 53 of file pictverbs.c.

Referenced by pictfunctionvalue().


Typedef Documentation

typedef struct typictvariable ** hdlpictvariable
 

typedef struct typictvariable * ptrpictvariable
 


Enumeration Type Documentation

enum typicttoken
 

Enumerator:
scheduleupdatefunc 
evalfunc 
getpicturefunc 
setpicturefunc 
ctpictverbs 

Definition at line 59 of file pictverbs.c.


Function Documentation

static boolean newpictvariable boolean  flinmemory,
long  variabledata,
hdlpictvariable h
[static]
 

Definition at line 103 of file pictverbs.c.

References h, and langnewexternalvariable().

Referenced by pictverbmemoryunpack(), pictverbnew(), and pictverbunpack().

Here is the call graph for this function:

static boolean pictclear void   )  [static]
 

Definition at line 972 of file pictverbs.c.

References nil, pictundosetpict(), pushundoaction(), and undoclearstring.

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictclose void   )  [static]
 

Definition at line 1101 of file pictverbs.c.

References assert, killundo(), langexternalwindowclosed(), long, nil, nildbaddress, pictdisposerecord(), and pictverbcheckwindowrect().

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictcopy void   )  [static]
 

Definition at line 982 of file pictverbs.c.

References copyhandle(), disposehandle(), nil, pictscraptype, and shellsetscrap().

Referenced by pictcut(), and pictstart().

Here is the call graph for this function:

static boolean pictcut void   )  [static]
 

Definition at line 996 of file pictverbs.c.

References nil, pictcopy(), pictundosetpict(), pushundoaction(), and undocutstring.

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictdisposevariable hdlexternalvariable  hvariable,
boolean  fldisk
[static]
 

Definition at line 117 of file pictverbs.c.

References pictdisposerecord().

Referenced by pictverbdispose().

Here is the call graph for this function:

boolean pictedit hdlexternalvariable  hvariable,
hdlwindowinfo  hparent,
ptrfilespec  fs,
bigstring  bstitle,
rectparam  rzoom
 

Definition at line 581 of file pictverbs.c.

References getwindowinfo(), idpictconfig, newchildwindow(), nil, pictgetnewwindowrect(), pictverbinmemory(), shellbringtofront(), shellfinddatawindow(), shellsetwindowchanges(), shellyield(), and windowzoom().

Referenced by langexternaledit().

Here is the call graph for this function:

static boolean pictfunctionvalue short  token,
hdltreenode  hparam1,
tyvaluerecord vreturned,
bigstring  bserror
[static]
 

Definition at line 824 of file pictverbs.c.

References error, errornum, evalfunc, fl, getpicturefunc, getstringlist(), tyshellglobals::gettargetdataroutine, idpictprocessor, langfindtargetwindow(), nil, nopicterror, picterrorlist, pictverbevaluator(), pictverbgetpicture(), pictverbscheduleupdate(), pictverbsetpicture(), pictwindowinfo, scheduleupdatefunc, setbooleanvalue(), setpicturefunc, shellglobals, shellpopglobals(), shellpushglobals(), shellupdatescrollbars(), and v.

Referenced by pictinitverbs().

Here is the call graph for this function:

static boolean pictgetcontentsize long width,
long height
[static]
 

Definition at line 930 of file pictverbs.c.

References long, and pictgetframerect().

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictgettargetdata short  id  )  [static]
 

Definition at line 1149 of file pictverbs.c.

References idpictprocessor.

Referenced by pictstart().

static boolean pictgetvariable void *  refcon  )  [static]
 

Definition at line 1046 of file pictverbs.c.

References nil, and return().

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictinitverbs void   )  [static]
 

Definition at line 924 of file pictverbs.c.

References idpictverbs, loadfunctionprocessor(), and pictfunctionvalue().

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictkeystroke void   )  [static]
 

Definition at line 1134 of file pictverbs.c.

References langexternalsurfacekey().

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictpagesetup void   )  [static]
 

Definition at line 1059 of file pictverbs.c.

Referenced by pictstart().

static boolean pictpaste void   )  [static]
 

Definition at line 1004 of file pictverbs.c.

References copyhandle(), pictscraptype, pictundosetpict(), pushundoaction(), shellconvertscrap(), and undopastestring.

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictprint short  pagenumber  )  [static]
 

Definition at line 1073 of file pictverbs.c.

References DrawPicture(), offsetrect(), typrintinfo::paperrect, pictdepatcher(), pictgetframerect(), pictupdatepatcher(), rframe, and shellprintinfo.

Referenced by pictstart().

Here is the call graph for this function:

static void pictresetpicture void   )  [static]
 

Definition at line 774 of file pictverbs.c.

References pictdirty(), pictresetscrollbars(), pictwindow, pictwindowinfo, shellinvalcontent(), and windowsetchanges().

Referenced by pictundosetpict(), and pictverbsetpicture().

Here is the call graph for this function:

static void pictresize void   )  [static]
 

Definition at line 950 of file pictverbs.c.

Referenced by pictstart().

static boolean pictsearch void   )  [static]
 

Definition at line 1033 of file pictverbs.c.

References langexternalcontinuesearch(), searchshouldcontinue(), and startingtosearch().

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictsetprintinfo void   )  [static]
 

Definition at line 1065 of file pictverbs.c.

References typrintinfo::ctpages, and shellprintinfo.

Referenced by pictstart().

boolean pictstart void   ) 
 

Definition at line 1173 of file pictverbs.c.

References assert, ccdisposefilerecord(), ccsavespecialfile(), idpictconfig, loadconfigresource(), pictclear(), pictclose(), pictcopy(), pictcut(), pictgetcontentsize(), pictgettargetdata(), pictgetvariable(), pictidle(), pictinitverbs(), pictkeystroke(), pictpagesetup(), pictpaste(), pictprint(), pictresetscrollbars(), pictresize(), pictscroll(), pictsearch(), pictsetprintinfo(), picttitleclick(), pictupdate(), pictwindow, pictwindowinfo, and shellnewcallbacks().

Referenced by frontierstart().

Here is the call graph for this function:

static boolean picttitleclick Point  pt  )  [static]
 

Definition at line 1143 of file pictverbs.c.

References langexternaltitleclick(), and pt.

Referenced by pictstart().

Here is the call graph for this function:

static boolean pictundosetpict Handle  hpict,
boolean  flundo
[static]
 

Definition at line 955 of file pictverbs.c.

References disposehandle(), pictresetpicture(), and pushundostep().

Referenced by pictclear(), pictcut(), and pictpaste().

Here is the call graph for this function:

static void pictverbcheckwindowrect hdlpictrecord  hpict  )  [static]
 

Definition at line 179 of file pictverbs.c.

References equalrects(), r, shellfinddatawindow(), and shellgetglobalwindowrect().

Referenced by pictclose(), pictverbisdirty(), pictverbmemorypack(), and pictverbpack().

Here is the call graph for this function:

boolean pictverbdispose hdlexternalvariable  hvariable,
boolean  fldisk
 

Definition at line 124 of file pictverbs.c.

References langexternaldisposevariable(), and pictdisposevariable().

Referenced by langexternaldisposevalue().

Here is the call graph for this function:

static boolean pictverbevaluator hdltreenode  hparam1,
tyvaluerecord v
[static]
 

Definition at line 707 of file pictverbs.c.

References flnextparamislast, getbooleanvalue(), and pictsetevaluate().

Referenced by pictfunctionvalue().

Here is the call graph for this function:

boolean pictverbfind hdlexternalvariable  hvariable,
boolean flzoom
 

Definition at line 1026 of file pictverbs.c.

Referenced by langexternalsearch().

boolean pictverbgetdisplaystring hdlexternalvariable  h,
bigstring  bs
 

Definition at line 468 of file pictverbs.c.

References h, parsenumberstring(), pictsizestring, pictstringlist, and pictverbgetsize().

Referenced by langexternalgetdisplaystring().

Here is the call graph for this function:

static boolean pictverbgetpicture hdltreenode  hparam1,
tyvaluerecord v
[static]
 

Definition at line 742 of file pictverbs.c.

References bigstring, copyhandle(), exemptfromtmpstack(), flnextparamislast, getvarparam(), hashtableassign(), nil, and setbinaryvalue().

Referenced by pictfunctionvalue().

Here is the call graph for this function:

boolean pictverbgetsize hdlexternalvariable  hvariable,
long size
 

Definition at line 452 of file pictverbs.c.

References gethandlesize(), and pictverbinmemory().

Referenced by langexternalgetvalsize(), and pictverbgetdisplaystring().

Here is the call graph for this function:

boolean pictverbgettimes hdlexternalvariable  h,
long timecreated,
long timemodified
 

Definition at line 529 of file pictverbs.c.

References h, pictverbinmemory(), return(), and typictrecord::timecreated.

Referenced by langexternalgettimes().

Here is the call graph for this function:

boolean pictverbgettypestring hdlexternalvariable  hvariable,
bigstring  bs
 

Definition at line 109 of file pictverbs.c.

References getstringlist(), pictstringlist, and picttypestring.

Referenced by langexternaltypestring().

Here is the call graph for this function:

static boolean pictverbinmemory hdlpictvariable  hv  )  [static]
 

Definition at line 211 of file pictverbs.c.

References dbpopdatabase(), dbpushdatabase(), dbrefhandle(), disposehandle(), fl, long, typictrecord::pictrefcon, and pictunpack().

Referenced by pictedit(), pictverbgetsize(), pictverbgettimes(), pictverbpack(), pictverbsetdirty(), and pictverbsettimes().

Here is the call graph for this function:

boolean pictverbisdirty hdlexternalvariable  hvariable  ) 
 

Definition at line 492 of file pictverbs.c.

References pictverbcheckwindowrect().

Referenced by langexternalisdirty().

Here is the call graph for this function:

boolean pictverbmemorypack hdlexternalvariable  h,
Handle hpacked
 

Definition at line 256 of file pictverbs.c.

References disposehandle(), fl, h, langexternalrefdata(), nil, pictpack(), pictverbcheckwindowrect(), and pushhandle().

Referenced by langexternalmemorypack().

Here is the call graph for this function:

boolean pictverbmemoryunpack Handle  hpacked,
long ixload,
hdlexternalvariable h
 

Definition at line 295 of file pictverbs.c.

References disposehandle(), fl, h, loadhandleremains(), long, newpictvariable(), pictdisposerecord(), and pictunpack().

Referenced by langexternalmemoryunpack().

Here is the call graph for this function:

boolean pictverbnew Handle  hdata,
hdlexternalvariable hvariable
 

Definition at line 130 of file pictverbs.c.

References copyhandle(), disposehandle(), long, newpictvariable(), nil, pictdata, pictdisposerecord(), and pictnewrecord().

Referenced by langexternalnewvalue().

Here is the call graph for this function:

boolean pictverbpack hdlexternalvariable  h,
Handle hpacked,
boolean flnewdbaddress
 

Definition at line 337 of file pictverbs.c.

References dbassignhandle(), dbcopy(), disposehandle(), fl, flconvertingolddatabase, fldatabasesaveas, h, nil, pictdisposerecord(), pictpack(), pictverbcheckwindowrect(), pictverbinmemory(), pictwindowopen(), pushlongondiskhandle(), and shellsetwindowchanges().

Referenced by langexternalpack().

Here is the call graph for this function:

boolean pictverbpacktotext hdlexternalvariable  h,
Handle  htext
 

Definition at line 437 of file pictverbs.c.

References bigstring, chreturn, getstringlist(), pictstringlist, picttextstring, pushchar(), and pushtexthandle().

Referenced by langexternalpacktotext().

Here is the call graph for this function:

static boolean pictverbscheduleupdate hdltreenode  hparam1,
tyvaluerecord v
[static]
 

Definition at line 669 of file pictverbs.c.

References flnextparamislast, getintvalue(), and pictscheduleupdate().

Referenced by pictfunctionvalue().

Here is the call graph for this function:

boolean pictverbsetdirty hdlexternalvariable  hvariable,
boolean  fldirty
 

Definition at line 512 of file pictverbs.c.

References pictverbinmemory().

Referenced by langexternalsetdirty().

Here is the call graph for this function:

static boolean pictverbsetpicture hdltreenode  hparam1,
tyvaluerecord v
[static]
 

Definition at line 786 of file pictverbs.c.

References copyhandle(), copyhandlecontents(), flnextparamislast, getbinaryvalue(), nil, pictresetpicture(), pullfromhandle(), setbooleanvalue(), and v.

Referenced by pictfunctionvalue().

Here is the call graph for this function:

boolean pictverbsettimes hdlexternalvariable  h,
long  timecreated,
long  timemodified
 

Definition at line 547 of file pictverbs.c.

References h, pictverbinmemory(), return(), and typictrecord::timecreated.

Referenced by langexternalsettimes().

Here is the call graph for this function:

boolean pictverbunpack Handle  hpacked,
long ixload,
hdlexternalvariable hvariable
 

Definition at line 426 of file pictverbs.c.

References loadlongfromdiskhandle(), and newpictvariable().

Referenced by langexternalunpack().

Here is the call graph for this function:

boolean pictwindowopen hdlexternalvariable  hvariable,
hdlwindowinfo hinfo
 

Definition at line 565 of file pictverbs.c.

References shellfinddatawindow().

Referenced by langexternalvariablewindowopen(), and pictverbpack().

Here is the call graph for this function:


Variable Documentation

short errornum = 0 [static]
 

Definition at line 99 of file pictverbs.c.


Generated on Fri Jun 9 23:17:22 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6