tablepopup.c File Reference

#include "frontier.h"
#include "standard.h"
#include "cursor.h"
#include "dialogs.h"
#include "kb.h"
#include "memory.h"
#include "menu.h"
#include "ops.h"
#include "popup.h"
#include "quickdraw.h"
#include "resources.h"
#include "strings.h"
#include "threads.h"
#include "frontierwindows.h"
#include "shellhooks.h"
#include "shell.rsrc.h"
#include "langexternal.h"
#include "langinternal.h"
#include "windowlayout.h"
#include "tableinternal.h"
#include "tablestructure.h"
#include "tableverbs.h"
#include "claybrowser.h"
#include "iowaverbs.h"

Include dependency graph for tablepopup.c:

Go to the source code of this file.

Data Structures

struct  tykindmenuinfo
struct  typopupkindinfo
struct  tyancestor

Defines

#define sortpopuplist   156
#define ctsorts   3
#define sortpopuptitlestring   (ctsorts + 1)
#define kindpopuplist   157
#define ctkinds   25
#define kindpopuptitlestring   (ctkinds + 1)
#define ixfirstefptype   16
#define ixbinarytype   24
#define firstefptype   outlinevaluetype
#define ctkindmenuitems   25

Typedefs

typedef tyancestor tyancestry []
typedef tyancestryptrancestry
typedef tyancestry ** hdlancestry

Functions

static boolean tablemapmenutovaluetype (short ixmenu, tyvaluetype *valuetype)
static boolean tablemapvaluetypetomenu (tyvaluerecord val, short *ixmenu)
static boolean coercionpossible (hdlhashtable ht, tyvaluerecord val1, tyvaluetype valuetype2)
static boolean getcoercionstring (tyvaluetype valuetype, bigstring bs)
static boolean tablefillkindpopup (hdlmenu hmenu, short *checkeditem)
static boolean tablekindrecalc (tyvaluetype valuetype)
static boolean tablekindpopupselect (hdlmenu hmenu, short itemselected)
boolean tablekindpopuphit (Point pt)
void tableupdatekindpopup (void)
static boolean tablefillsortpopup (hdlmenu hmenu, short *checkeditem)
static boolean tablesortpopupselect (hdlmenu hmenu, short itemselected)
boolean tablesortpopuphit (Point pt)
void tableupdatesortpopup (void)
boolean tablesetitemname (hdlhashtable ht, bigstring bsname, hdlheadrecord headnode, boolean flediting)
static boolean showpopupkinddialog (typopupkindinfo *pki)
boolean tablepopupkinddialog (void)
static boolean ancestorroutine (hdlhashtable htable, hdlhashnode hnode)
static boolean tablefilltitlepopup (hdlmenu hmenu, short *checkeditem)
static boolean tabletitlepopupselect (hdlmenu hmenu, short itemselected)
static void localtoscreenrect (WindowPtr w, Rect *r)
boolean tableclienttitlepopuphit (Point pt, hdlexternalvariable hvariable)

Variables

static tykindmenuinfo kindmenuinfo []
static hdlancestry hancestry
static boolean flinhibitmenupush
static hdlexternalvariable clientvariable
static boolean flmenubarscript


Define Documentation

#define ctkindmenuitems   25
 

Definition at line 143 of file tablepopup.c.

Referenced by tablemapmenutovaluetype().

#define ctkinds   25
 

Definition at line 69 of file tablepopup.c.

Referenced by tablefillkindpopup(), and tablemapvaluetypetomenu().

#define ctsorts   3
 

Definition at line 62 of file tablepopup.c.

Referenced by tablefillsortpopup().

#define firstefptype   outlinevaluetype
 

Definition at line 78 of file tablepopup.c.

Referenced by coercionpossible(), tablekindrecalc(), and tablemapvaluetypetomenu().

#define ixbinarytype   24
 

Definition at line 76 of file tablepopup.c.

Referenced by tablefillkindpopup().

#define ixfirstefptype   16
 

Definition at line 74 of file tablepopup.c.

Referenced by tablepopupkinddialog().

#define kindpopuplist   157
 

Definition at line 67 of file tablepopup.c.

Referenced by tableupdatekindpopup().

#define kindpopuptitlestring   (ctkinds + 1)
 

Definition at line 71 of file tablepopup.c.

Referenced by tableupdatekindpopup().

#define sortpopuplist   156
 

Definition at line 60 of file tablepopup.c.

Referenced by tablefillsortpopup(), and tableupdatesortpopup().

#define sortpopuptitlestring   (ctsorts + 1)
 

Definition at line 64 of file tablepopup.c.

Referenced by tableupdatesortpopup().


Typedef Documentation

typedef tyancestry ** hdlancestry
 

Definition at line 836 of file tablepopup.c.

typedef tyancestry* ptrancestry
 

Definition at line 836 of file tablepopup.c.

typedef struct tyancestor tyancestry[]
 


Function Documentation

static boolean ancestorroutine hdlhashtable  htable,
hdlhashnode  hnode
[static]
 

Definition at line 848 of file tablepopup.c.

References enlargehandle(), filewindowtable, hnode, tyancestor::hnode, and tyancestor::htable.

Referenced by tablefilltitlepopup().

Here is the call graph for this function:

static boolean coercionpossible hdlhashtable  ht,
tyvaluerecord  val1,
tyvaluetype  valuetype2
[static]
 

Definition at line 183 of file tablepopup.c.

References binaryvaluetype, cleartmpstack(), coercevalue(), copyvaluerecord(), disablelangerror(), enablelangerror(), externalvaluetype, falsenoop(), firstefptype, fl, getbinarytypeid(), langexternalgettype(), langgetvaluetype(), outlinevaluetype, scriptvaluetype, shellpoperrorhook(), shellpusherrorhook(), stringvaluetype, tablepopcontext(), tablepushcontext(), tyvaluerecord::valuetype, and wordvaluetype.

Referenced by tablefillkindpopup().

Here is the call graph for this function:

static boolean getcoercionstring tyvaluetype  valuetype,
bigstring  bs
[static]
 

Definition at line 253 of file tablepopup.c.

References enumstring, langgetmiscstring(), and langgettypestring().

Referenced by tablekindrecalc().

Here is the call graph for this function:

static void localtoscreenrect WindowPtr  w,
Rect r
[static]
 

Definition at line 961 of file tablepopup.c.

References localtoglobalrect(), and offsetrect().

Referenced by tableclienttitlepopuphit().

Here is the call graph for this function:

static boolean showpopupkinddialog typopupkindinfo pki  )  [static]
 

Definition at line 771 of file tablepopup.c.

References typopupkindinfo::bstitle, customdialog(), typopupkindinfo::flkindok, grabthreadglobals(), hInst, hwndMDIClient, IDD_DIALOGTABLEENTRY, newvaluedialogid, nullterminate, and releasethreadglobals().

Referenced by tablepopupkinddialog().

Here is the call graph for this function:

boolean tableclienttitlepopuphit Point  pt,
hdlexternalvariable  hvariable
 

Definition at line 984 of file tablepopup.c.

References bigstring, clientvariable, disposehandle(), doctitlebarheight, fl, getlocalwindowrect(), globaltolocalpoint(), localtoglobalpoint(), localtoscreenrect(), newemptyhandle(), nil, pointinrect(), popdesktopport(), popupmenuhit(), pt, pushdesktopport(), r, shellwindow, short, stringpixels(), tablefilltitlepopup(), tabletitlepopupselect(), and windowgettitle().

Referenced by langexternaltitleclick(), scripttitleclick(), and tableverbtitleclick().

Here is the call graph for this function:

static boolean tablefillkindpopup hdlmenu  hmenu,
short checkeditem
[static]
 

Definition at line 262 of file tablepopup.c.

References bigstring, coercionpossible(), ctkinds, hnode, i, ixbinarytype, novaluetype, tablegetcursorinfo(), tablemapmenutovaluetype(), and tyvaluerecord::valuetype.

Referenced by tablekindpopuphit().

Here is the call graph for this function:

static boolean tablefillsortpopup hdlmenu  hmenu,
short checkeditem
[static]
 

Definition at line 466 of file tablepopup.c.

References bigstring, ctsorts, getstringlist(), i, nil, pushpopupitem(), sortpopuplist, tablegetcursorinfo(), and tablegetsortorder().

Referenced by tablesortpopuphit().

Here is the call graph for this function:

static boolean tablefilltitlepopup hdlmenu  hmenu,
short checkeditem
[static]
 

Definition at line 875 of file tablepopup.c.

References ancestorroutine(), bigstring, clientvariable, findvariablesearch(), gethandlesize(), gethashkey, hnode, i, pushpopupitem(), roottable, and rootvariable.

Referenced by tableclienttitlepopuphit().

Here is the call graph for this function:

boolean tablekindpopuphit Point  pt  ) 
 

Definition at line 439 of file tablepopup.c.

References popupmenuhit(), r, tablefillkindpopup(), tableformatsdata, and tablekindpopupselect().

Referenced by tableverbmousedown().

Here is the call graph for this function:

static boolean tablekindpopupselect hdlmenu  hmenu,
short  itemselected
[static]
 

Definition at line 427 of file tablepopup.c.

References tablekindrecalc(), and tablemapmenutovaluetype().

Referenced by tablekindpopuphit(), and tablepopupkinddialog().

Here is the call graph for this function:

static boolean tablekindrecalc tyvaluetype  valuetype  )  [static]
 

Definition at line 305 of file tablepopup.c.

References assert, BIGSTRING, bigstring, binaryvaluetype, copystring(), externalvaluetype, firstefptype, fl, getcoercionstring(), hnode, idoutlineprocessor, idscriptprocessor, idwordprocessor, langexternalbracketname(), langgettypestring(), langrunstring(), nil, novaluetype, outlinevaluetype, parsedialogstring(), pushstring(), stringvaluetype, tableexiteditmode(), tablegetcursorinfo(), tablepopcontext(), tablepushcontext(), and tyvaluerecord::valuetype.

Referenced by tablekindpopupselect().

Here is the call graph for this function:

static boolean tablemapmenutovaluetype short  ixmenu,
tyvaluetype valuetype
[static]
 

Definition at line 145 of file tablepopup.c.

References ctkindmenuitems, kindmenuinfo, novaluetype, and tykindmenuinfo::type.

Referenced by tablefillkindpopup(), and tablekindpopupselect().

static boolean tablemapvaluetypetomenu tyvaluerecord  val,
short ixmenu
[static]
 

Definition at line 160 of file tablepopup.c.

References ctkinds, externalvaluetype, firstefptype, kindmenuinfo, langexternalgettype(), return(), and tyvaluerecord::valuetype.

Here is the call graph for this function:

boolean tablepopupkinddialog void   ) 
 

Definition at line 803 of file tablepopup.c.

References typopupkindinfo::bstitle, hnode, ixfirstefptype, nil, opsetheadstring(), opupdatenow(), opvisibarcursor(), showpopupkinddialog(), tablegetcursorinfo(), tablekindpopupselect(), and typopupkindinfo::zoomkind.

Referenced by tablezoomfromhead().

Here is the call graph for this function:

boolean tablesetitemname hdlhashtable  ht,
bigstring  bsname,
hdlheadrecord  headnode,
boolean  flediting
 

Definition at line 567 of file tablepopup.c.

References alertstring(), assert, bigstring, equalidentifiers(), equalstrings(), gethandlesize(), gethashkey, hashresort(), hashsetnodekey(), hashtablelookupnode(), hashtablesymbolexists(), hnode, isemptystring, itemnameinusestring, itemnametoolongstring, nil, opgetheadstring(), and tableresort().

Referenced by clayrenamefile().

Here is the call graph for this function:

boolean tablesortpopuphit Point  pt  ) 
 

Definition at line 544 of file tablepopup.c.

References popupmenuhit(), r, tablefillsortpopup(), tableformatsdata, and tablesortpopupselect().

Referenced by tableverbmousedown().

Here is the call graph for this function:

static boolean tablesortpopupselect hdlmenu  hmenu,
short  itemselected
[static]
 

Definition at line 510 of file tablepopup.c.

References bigstring, nil, sortbykind, sortbyname, sortbyvalue, tablegetcursorinfo(), and tablesetsortorder().

Referenced by tablesortpopuphit().

Here is the call graph for this function:

static boolean tabletitlepopupselect hdlmenu  hmenu,
short  itemselected
[static]
 

Definition at line 908 of file tablepopup.c.

References bigstring, clientvariable, tyvaluerecord::data, tyvaluedata::externalvalue, externalvaluetype, tykeystrokerecord::floptionkey, gethashkey, tyancestor::hnode, tyancestor::htable, keyboardstatus, langexternalwindowopen(), shellbringtofront(), shellclosewindow(), shellwindow, tablezoomfromtable(), tablezoomtoname(), and tyvaluerecord::valuetype.

Referenced by tableclienttitlepopuphit().

Here is the call graph for this function:

void tableupdatekindpopup void   ) 
 

Definition at line 455 of file tablepopup.c.

References bigstring, drawpopup(), getstringlist(), kindpopuplist, kindpopuptitlestring, and tableformatsdata.

Referenced by tableupdate().

Here is the call graph for this function:

void tableupdatesortpopup void   ) 
 

Definition at line 556 of file tablepopup.c.

References bigstring, drawpopup(), getstringlist(), sortpopuplist, sortpopuptitlestring, and tableformatsdata.

Referenced by tableupdate().

Here is the call graph for this function:


Variable Documentation

hdlexternalvariable clientvariable [static]
 

Definition at line 843 of file tablepopup.c.

Referenced by tableclienttitlepopuphit(), tablefilltitlepopup(), and tabletitlepopupselect().

boolean flinhibitmenupush [static]
 

Definition at line 841 of file tablepopup.c.

boolean flmenubarscript [static]
 

Definition at line 845 of file tablepopup.c.

hdlancestry hancestry [static]
 

Definition at line 839 of file tablepopup.c.

tykindmenuinfo kindmenuinfo[] [static]
 

Definition at line 90 of file tablepopup.c.

Referenced by tablemapmenutovaluetype(), and tablemapvaluetypetomenu().


Generated on Tue Jun 13 22:16:27 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6