tabledisplay.c File Reference

#include "frontier.h"
#include "standard.h"
#include "bitmaps.h"
#include "cursor.h"
#include "kb.h"
#include "file.h"
#include "font.h"
#include "icon.h"
#include "mouse.h"
#include "ops.h"
#include "quickdraw.h"
#include "resources.h"
#include "strings.h"
#include "shell.h"
#include "shellhooks.h"
#include "shell.rsrc.h"
#include "op.h"
#include "opdisplay.h"
#include "opicons.h"
#include "oplineheight.h"
#include "tableformats.h"
#include "tableinternal.h"
#include "wpengine.h"
#include "tabledisplay.h"
#include "claybrowserstruc.h"
#include "claycallbacks.h"
#include "claylinelayout.h"

Include dependency graph for tabledisplay.c:

Go to the source code of this file.

Defines

#define fldisplaydebug   false
#define mincolwidth   10
#define minrowheight   10
#define maxcolwidth   1000
#define maxrowheight   1000
#define pixelsbetweencolumns   15
#define binarycharacterstomeasure   30
#define drawinset   4

Functions

static short opnodeindentpix (hdlheadrecord hnode)
static short opiconindentpix (void)
static void tableprepfordraw (Rect *r)
static void tablesetcolumnbounds (Rect *r, short col)
static void tablegettitlerect (short col, Rect *rtitle)
static void tabledisplaytitle (short col, boolean flbitmap)
void tableupdatecoltitles (boolean flupdating)
boolean tablechecksortorder (void)
static void tableupdategridlines (void)
void tableupdate (void)
static short tablewidth2cols (short width)
static void tablegetcellrect (hdlheadrecord hnode, const Rect *rrow, short col, Rect *rcell)
static void tableinverttitle (boolean flinrectnow)
boolean tabletitleclick (Point pt)
boolean tablefindcolumnguide (Point pt, short *col)
boolean tableadjustcolwidth (Point ptstart, short col)
boolean tablegettextrect (hdlheadrecord hnode, const Rect *linerect, Rect *textrect)
boolean tablegetedittextrect (hdlheadrecord hnode, const Rect *linerect, Rect *textrect)
boolean tablegeticonrect (hdlheadrecord hnode, const Rect *linerect, Rect *iconrect)
boolean tablepushnodestyle (hdlheadrecord hnode)
boolean tablegetlineheight (hdlheadrecord hnode, short *lh)
boolean tablegetlinewidth (hdlheadrecord hnode, short *lw)
boolean tablegetcellstring (hdlheadrecord hnode, short col, bigstring bs, boolean fllimitbinaries)
static boolean tablegetmaxcolwidthvisit (hdlheadrecord hnode, short col)
static boolean tablegetmaxwidthvisit (hdlheadrecord hnode, ptrvoid refcon)
boolean tablegetoutlinesize (long *width, long *height)
boolean tabledefaultdrawcell (hdlheadrecord hnode, short col, const Rect *rcell)
static void tabledrawcell (hdlheadrecord hnode, short col, const Rect *rtext, boolean flselected, boolean flinverted)
boolean tablepredrawline (hdlheadrecord hnode, const Rect *linerect, boolean flselected, boolean flinverted)
boolean tablepostdrawline (hdlheadrecord hnode, const Rect *linerect, boolean flselected, boolean flinverted)
boolean tabledrawline (hdlheadrecord hnode, const Rect *textrect, boolean flselected, boolean flinverted)
void browserdrawnodeicon (const Rect *r, boolean flhighlighted, hdlheadrecord hnode)
boolean tabledrawnodeicon (hdlheadrecord hnode, const Rect *iconrect, boolean flselected, boolean flinverted)
static short tablefindcolumn (hdlheadrecord hnode, Point pt, const Rect *textrect)
boolean tableadjustcursor (hdlheadrecord hnode, Point pt, const Rect *textrect)
boolean tablemouseinline (hdlheadrecord hnode, Point pt, const Rect *textrect, boolean *flintext)
boolean tableinitdisplay (void)

Variables

static Rect titlerect


Define Documentation

#define binarycharacterstomeasure   30
 

Definition at line 68 of file tabledisplay.c.

Referenced by tablegetcellstring().

#define drawinset   4
 

Definition at line 70 of file tabledisplay.c.

#define fldisplaydebug   false
 

Definition at line 59 of file tabledisplay.c.

#define maxcolwidth   1000
 

Definition at line 64 of file tabledisplay.c.

Referenced by tableadjustcolwidth(), and tablelimitcolwidth().

#define maxrowheight   1000
 

Definition at line 65 of file tabledisplay.c.

#define mincolwidth   10
 

Definition at line 61 of file tabledisplay.c.

Referenced by tableadjustcolwidth(), tablelimitcolwidth(), and tablerecalccolwidths().

#define minrowheight   10
 

Definition at line 62 of file tabledisplay.c.

#define pixelsbetweencolumns   15
 

Definition at line 67 of file tabledisplay.c.

Referenced by tablegetoutlinesize().


Function Documentation

void browserdrawnodeicon const Rect r,
boolean  flhighlighted,
hdlheadrecord  hnode
 

Definition at line 1085 of file tabledisplay.c.

References align(), browsergetrefcon(), hnode, opgetheadicon(), ploticonresource(), and ttLabel.

Referenced by tabledrawnodeicon().

Here is the call graph for this function:

static short opiconindentpix void   )  [static]
 

Definition at line 79 of file tabledisplay.c.

Referenced by tabledrawcell(), tablefindcolumn(), tablegetcellrect(), and tablegetoutlinesize().

static short opnodeindentpix hdlheadrecord  hnode  )  [static]
 

Definition at line 73 of file tabledisplay.c.

Referenced by tabledrawcell(), tablefindcolumn(), tablegetcellrect(), and tablegetmaxcolwidthvisit().

boolean tableadjustcolwidth Point  ptstart,
short  col
 

Definition at line 504 of file tabledisplay.c.

References getmousepoint(), graydrawline(), tyPoint::h, h, max, maxcolwidth, min, mincolwidth, mousedoubleclick(), mousestilldown(), movepento(), pointinrect(), pt, shiftkeydown(), tableavailwidth(), tableformatsdata, tablegetcolwidth(), tablegetoutlinesize(), tablesetcolumnbounds(), tablesetcolwidth(), and tablesumcolwidths().

Referenced by tableverbmousedown().

Here is the call graph for this function:

boolean tableadjustcursor hdlheadrecord  hnode,
Point  pt,
const Rect textrect
 

Definition at line 1163 of file tabledisplay.c.

References bigstring, cursorisarrow, cursorisibeam, externalvaluetype, hnode, kindcolumn, namecolumn, pt, setcursortype(), tablefindcolumn(), tablegetiteminfo(), valuecolumn, and tyvaluerecord::valuetype.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean tablechecksortorder void   ) 
 

Definition at line 233 of file tabledisplay.c.

References bigstring, nil, tableformatsdata, and tablegetcursorinfo().

Referenced by tableverbidle().

Here is the call graph for this function:

boolean tabledefaultdrawcell hdlheadrecord  hnode,
short  col,
const Rect rcell
 

Definition at line 910 of file tabledisplay.c.

References bigstring, ellipsize(), hnode, opeditingtext(), opeditupdate(), pendrawstring(), tableformatsdata, and tablegetcellstring().

Referenced by tabledrawcell().

Here is the call graph for this function:

static void tabledisplaytitle short  col,
boolean  flbitmap
[static]
 

Definition at line 164 of file tabledisplay.c.

References bigstring, bold, closebitmap(), eraserect(), getport(), nametitlestring, nil, openbitmap(), paintrect(), pendrawstring(), poppen(), popstyle(), pushpen(), pushstyle(), r, setthemepen(), tablegetcursorinfo(), tablegetstringlist(), tablegettitlerect(), tableprepfordraw(), and underline.

Referenced by tableupdatecoltitles().

Here is the call graph for this function:

static void tabledrawcell hdlheadrecord  hnode,
short  col,
const Rect rtext,
boolean  flselected,
boolean  flinverted
[static]
 

Definition at line 943 of file tabledisplay.c.

References grayframerect(), hnode, invertrect(), namecolumn, opiconindentpix(), opnodeindentpix(), popclip(), pushclip(), tabledefaultdrawcell(), tablegetcellrect(), tableprepfordraw(), tablesetcolumnbounds(), texthorizinset, and textvertinset.

Referenced by tabledrawline().

Here is the call graph for this function:

boolean tabledrawline hdlheadrecord  hnode,
const Rect textrect,
boolean  flselected,
boolean  flinverted
 

Definition at line 1058 of file tabledisplay.c.

References claydrawline(), hnode, isclaydisplay, tabledrawcell(), and tableformatsdata.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean tabledrawnodeicon hdlheadrecord  hnode,
const Rect iconrect,
boolean  flselected,
boolean  flinverted
 

Definition at line 1117 of file tabledisplay.c.

References browserdrawnodeicon(), claydrawnodeicon(), fldisplaydebug, hnode, isclaydisplay, optionkeydown(), and tableformatsdata.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

static short tablefindcolumn hdlheadrecord  hnode,
Point  pt,
const Rect textrect
[static]
 

Definition at line 1134 of file tabledisplay.c.

References hnode, kindcolumn, opiconindentpix(), opnodeindentpix(), pt, tableformatsdata, and textleftslop.

Referenced by tableadjustcursor(), and tablemouseinline().

Here is the call graph for this function:

boolean tablefindcolumnguide Point  pt,
short col
 

Definition at line 473 of file tabledisplay.c.

References abs, tytableformats::ctcols, h, isclaydisplay, NULL, outlinedata, pt, return(), tableformatsdata, and tablegetcolwidth().

Referenced by tableverbadjustcursor(), and tableverbmousedown().

Here is the call graph for this function:

static void tablegetcellrect hdlheadrecord  hnode,
const Rect rrow,
short  col,
Rect rcell
[static]
 

Definition at line 394 of file tabledisplay.c.

References hnode, opiconindentpix(), opnodeindentpix(), tablesetcolumnbounds(), and texthorizinset.

Referenced by tabledrawcell(), and tablegetedittextrect().

Here is the call graph for this function:

boolean tablegetcellstring hdlheadrecord  hnode,
short  col,
bigstring  bs,
boolean  fllimitbinaries
 

Definition at line 747 of file tabledisplay.c.

References BIGSTRING, bigstring, binarycharacterstomeasure, binaryvaluetype, chtab, claygetfilespec(), copystring(), deletestring(), falsenoop(), hashgetsizestring(), hashgettypestring(), hashgetvaluestring(), hnode, min, namecolumn, opgetheadstring(), pushchar(), pushstring(), setstringlength, shellpoperrorhook(), shellpusherrorhook(), stringlength, tablepopcontext(), tablepushcontext(), valuecolumn, and tyvaluerecord::valuetype.

Referenced by claypostdrawline(), tablecellcontentwidth(), tabledefaultdrawcell(), tabledrawcellcallback(), and tablegetmaxcolwidthvisit().

Here is the call graph for this function:

boolean tablegetedittextrect hdlheadrecord  hnode,
const Rect linerect,
Rect textrect
 

Definition at line 639 of file tabledisplay.c.

References claygetedittextrect(), tytableformats::focuscol, hnode, isclaydisplay, namecolumn, nil, tableformatsdata, tablegetcellrect(), tablegettextrect(), texthorizinset, and textvertinset.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean tablegeticonrect hdlheadrecord  hnode,
const Rect linerect,
Rect iconrect
 

Definition at line 665 of file tabledisplay.c.

References centerrect(), claygeticonrect(), hnode, isclaydisplay, opnodeindent(), r, and tableformatsdata.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean tablegetlineheight hdlheadrecord  hnode,
short lh
 

Definition at line 723 of file tabledisplay.c.

References claygetlineheight(), hnode, isclaydisplay, opdefaultgetlineheight(), and tableformatsdata.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean tablegetlinewidth hdlheadrecord  hnode,
short lw
 

Definition at line 736 of file tabledisplay.c.

References claygetlinewidth(), hnode, isclaydisplay, tableformatsdata, and tabletotalcolwidths().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

static boolean tablegetmaxcolwidthvisit hdlheadrecord  hnode,
short  col
[static]
 

Definition at line 825 of file tabledisplay.c.

References bigstring, hnode, max, namecolumn, opnodeindentpix(), stringpixels(), and tablegetcellstring().

Referenced by tablegetmaxwidthvisit().

Here is the call graph for this function:

static boolean tablegetmaxwidthvisit hdlheadrecord  hnode,
ptrvoid  refcon
[static]
 

Definition at line 847 of file tabledisplay.c.

References hnode, kindcolumn, namecolumn, and tablegetmaxcolwidthvisit().

Referenced by tablegetoutlinesize().

Here is the call graph for this function:

boolean tablegetoutlinesize long width,
long height
 

Definition at line 864 of file tabledisplay.c.

References kindcolumn, namecolumn, nil, opiconindentpix(), oppushstyle(), opsiblingvisiter(), opsumalllineheights(), outlinedata, pixelsbetweencolumns, popstyle(), tableformatsdata, tablegetmaxwidthvisit(), and tytableformats::wholerect.

Referenced by tableadjustcolwidth(), tablerecalccolwidths(), and tableverbgetcontentsize().

Here is the call graph for this function:

boolean tablegettextrect hdlheadrecord  hnode,
const Rect linerect,
Rect textrect
 

Definition at line 619 of file tabledisplay.c.

References claygettextrect(), hnode, isclaydisplay, opdefaultgettextrect(), and tableformatsdata.

Referenced by setuptableoutlinecallbacks(), and tablegetedittextrect().

Here is the call graph for this function:

static void tablegettitlerect short  col,
Rect rtitle
[static]
 

Definition at line 150 of file tabledisplay.c.

References tableformatsdata, tablesetcolumnbounds(), and tytableformats::titlerect.

Referenced by tabledisplaytitle(), tabletitleclick(), and tabletitleclickcallback().

Here is the call graph for this function:

boolean tableinitdisplay void   ) 
 

Definition at line 1275 of file tabledisplay.c.

static void tableinverttitle boolean  flinrectnow  )  [static]
 

Definition at line 421 of file tabledisplay.c.

References invertrect(), and titlerect.

Here is the call graph for this function:

boolean tablemouseinline hdlheadrecord  hnode,
Point  pt,
const Rect textrect,
boolean flintext
 

Definition at line 1196 of file tabledisplay.c.

References bigstring, externalvaluetype, hnode, mousedoubleclick(), namecolumn, pt, setmousedoubleclickstatus(), tablefindcolumn(), tableformatsdata, tablegetiteminfo(), tablezoomfromhead(), valuecolumn, and tyvaluerecord::valuetype.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean tablepostdrawline hdlheadrecord  hnode,
const Rect linerect,
boolean  flselected,
boolean  flinverted
 

Definition at line 1049 of file tabledisplay.c.

References claypostdrawline(), hnode, isclaydisplay, and tableformatsdata.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

boolean tablepredrawline hdlheadrecord  hnode,
const Rect linerect,
boolean  flselected,
boolean  flinverted
 

Definition at line 1015 of file tabledisplay.c.

References claypredrawline(), eraserect(), hnode, insetrect(), isclaydisplay, tableformatsdata, and tablesetcolumnbounds().

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

static void tableprepfordraw Rect r  )  [static]
 

Definition at line 114 of file tabledisplay.c.

References tyFontInfo::ascent, globalfontinfo, h, movepento(), texthorizinset, and v.

Referenced by tabledisplaytitle(), and tabledrawcell().

Here is the call graph for this function:

boolean tablepushnodestyle hdlheadrecord  hnode  ) 
 

Definition at line 693 of file tabledisplay.c.

References bold, browsergetrefcon(), claypushnodestyle(), hnode, info, isclaydisplay, pushstyle(), style, tableformatsdata, and underline.

Referenced by setuptableoutlinecallbacks().

Here is the call graph for this function:

static void tablesetcolumnbounds Rect r,
short  col
[static]
 

Definition at line 142 of file tabledisplay.c.

References tablegetcolwidth(), and tablesumcolwidths().

Referenced by tableadjustcolwidth(), tabledrawcell(), tablegetcellrect(), tablegettitlerect(), and tablepredrawline().

Here is the call graph for this function:

boolean tabletitleclick Point  pt  ) 
 

Definition at line 428 of file tabledisplay.c.

References bigstring, bold, insetrect(), nil, outlinedata, pointinrect(), popstyle(), pt, pushstyle(), stringpixels(), tableformatsdata, tablegetcursorinfo(), tablegettitlerect(), tablegettitlestring(), tableinverttitle(), tablesetsortorder(), tablewidth2cols(), titlerect, and trackicon().

Referenced by tableverbmousedown().

Here is the call graph for this function:

void tableupdate void   ) 
 

Definition at line 330 of file tabledisplay.c.

References isclaydisplay, NULL, opupdate(), outlinedata, shelldrawwindowmessage(), shellwindowinfo, tableformatsdata, tableupdatecoltitles(), tableupdategridlines(), tableupdatekindpopup(), and tableupdatesortpopup().

Referenced by tableverbupdate().

Here is the call graph for this function:

void tableupdatecoltitles boolean  flupdating  ) 
 

Definition at line 214 of file tabledisplay.c.

References i, shellrectneedsupdate(), tabledisplaytitle(), tableformatsdata, and titlerect.

Referenced by tableprint(), tableupdate(), and tableverbidle().

Here is the call graph for this function:

static void tableupdategridlines void   )  [static]
 

Definition at line 276 of file tabledisplay.c.

References drawscrollbar(), eraserect(), frame3sides(), h, insetrect(), kindcolumn, movepento(), namecolumn, outlinedata, pendrawline(), popbackcolor(), pushbackcolor(), pushpen(), setgraypen(), shellrectneedsupdate(), and tableformatsdata.

Referenced by tableprint(), and tableupdate().

Here is the call graph for this function:

static short tablewidth2cols short  width  )  [static]
 

Definition at line 375 of file tabledisplay.c.

References tytableformats::ctcols, and tableformatsdata.

Referenced by tabletitleclick().


Variable Documentation

Rect titlerect [static]
 

Definition at line 419 of file tabledisplay.c.


Generated on Tue Jun 13 16:36:02 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6