claylinelayout.c File Reference

#include "frontier.h"
#include "standard.h"
#include "font.h"
#include "icon.h"
#include "ops.h"
#include "quickdraw.h"
#include "strings.h"
#include "timedate.h"
#include "op.h"
#include "opdisplay.h"
#include "opicons.h"
#include "opinternal.h"
#include "langinternal.h"
#include "tableformats.h"
#include "tableinternal.h"
#include "tablestructure.h"
#include "claybrowser.h"
#include "byteorder.h"

Include dependency graph for claylinelayout.c:

Go to the source code of this file.

Data Structures

struct  tydisklinelayout

Defines

#define fldisplaydebug   false
#define drawinset   4
#define spacebetweenlines   1
#define vertspacebetweenframes   5
#define disktomemcolor(rgb)
#define memtodiskcolor(rgb)

Functions

static void darkcolorof (RGBColor *rgb)
void claysmashoutlinefields (hdlwindowinfo appwindow, hdltableformats hf)
static void smashlayoutfields (hdltableformats hf)
static void setcomputedfields (hdltableformats hf)
void claybrowserinitdraw (void)
static boolean hasframe (void)
static short getframeheight (void)
static short getframewidth (void)
static boolean simpleoutlinerdisplay (void)
boolean claygettextrect (hdlheadrecord hnode, const Rect *linerect, Rect *textrect)
boolean claygetedittextrect (hdlheadrecord hnode, const Rect *linerect, Rect *textrect)
boolean claygeticonrect (hdlheadrecord hnode, const Rect *linerect, Rect *iconrect)
boolean claypushnodestyle (hdlheadrecord hnode)
boolean claygetlineheight (hdlheadrecord hnode, short *lh)
boolean claygetlinewidth (hdlheadrecord hnode, short *lw)
boolean claygetnodeframe (hdlheadrecord hnode, Rect *r)
static void getfatdatestring (long modtime, bigstring bs)
static void getfattimestring (long modtime, bigstring bs)
boolean claypredrawline (hdlheadrecord hnode, const Rect *linerect, boolean flselected, boolean flinverted)
static boolean claydrawtext (hdlheadrecord hnode, const Rect *rtext, boolean flselected, boolean flinverted)
boolean claydrawline (hdlheadrecord hnode, const Rect *textrect, boolean flselected, boolean flinverted)
boolean claypostdrawline (hdlheadrecord hnode, const Rect *linerect, boolean flselected, boolean flinverted)
boolean claydrawnodeicon (hdlheadrecord hnode, const Rect *iconrect, boolean flselected, boolean flinverted)
void claysetlinelayout (hdlwindowinfo targetwindow, tylinelayout *newlayout)
static boolean hashlookupboolean (bigstring bslookup)
static short hashlookupshort (bigstring bslookup, short defaultval)
static RGBColor hashlookupcolor (bigstring bslookup, const RGBColor *defaultrgb)
static boolean hashlookupstring (bigstring bslookup, bigstring bs)
static boolean langassigncolorvalue (hdlhashtable ht, const bigstring bs, const RGBColor *color)
boolean claytabletolayout (hdlhashtable ht, tylinelayout *layout)
boolean claylayouttotable (const tylinelayout *layout, hdlhashtable ht)
boolean clayinitlinelayout (tylinelayout *layout)
boolean claypacklinelayout (Handle hpacked)
boolean clayunpacklinelayout (Handle hpacked, long *ixhandle, hdltableformats hf)

Variables

static Rect rfilename
static Rect rframe
static Rect rdate


Define Documentation

#define disktomemcolor rgb   ) 
 

Value:

do {disktomemshort (rgb.red); \
    disktomemshort (rgb.green); \
    disktomemshort (rgb.blue); } while (0)

Definition at line 95 of file claylinelayout.c.

Referenced by clayunpacklinelayout().

#define drawinset   4
 

Definition at line 80 of file claylinelayout.c.

Referenced by claygeticonrect(), claygetnodeframe(), claygettextrect(), claypostdrawline(), getframeheight(), getframewidth(), getpalettesize(), newpalette(), and setcomputedfields().

#define fldisplaydebug   false
 

Definition at line 78 of file claylinelayout.c.

Referenced by tabledrawnodeicon().

#define memtodiskcolor rgb   ) 
 

Value:

do {memtodiskshort (rgb.red); \
    memtodiskshort (rgb.green); \
    memtodiskshort (rgb.blue); } while (0)

Definition at line 99 of file claylinelayout.c.

Referenced by claypacklinelayout().

#define spacebetweenlines   1
 

Definition at line 82 of file claylinelayout.c.

Referenced by claygettextrect(), claypostdrawline(), and getframeheight().

#define vertspacebetweenframes   5
 

Definition at line 84 of file claylinelayout.c.

Referenced by claygetlineheight().


Function Documentation

void claybrowserinitdraw void   ) 
 

Definition at line 305 of file claylinelayout.c.

References setcomputedfields(), and tableformatsdata.

Referenced by tablepostfontchange(), and tablerecalccolwidths().

Here is the call graph for this function:

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

Definition at line 799 of file claylinelayout.c.

References claydrawtext(), claypushnodestyle(), tylinelayout::filenamecolor, hnode, tytableformats::linelayout, popforecolor(), popstyle(), pushforecolor(), and tableformatsdata.

Referenced by tabledrawline().

Here is the call graph for this function:

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

Definition at line 922 of file claylinelayout.c.

References hnode, opgetheadicon(), and ploticonresource().

Referenced by tabledrawnodeicon().

Here is the call graph for this function:

static boolean claydrawtext hdlheadrecord  hnode,
const Rect rtext,
boolean  flselected,
boolean  flinverted
[static]
 

Definition at line 725 of file claylinelayout.c.

References tyFontInfo::ascent, bigstring, blackcolor, tyFontInfo::descent, ellipsize(), eraserect(), getheadstring, globalfontinfo, grayframerect(), hasframe(), hnode, insetrect(), movepento(), opeditingtext(), opeditupdate(), pendrawstring(), popbackcolor(), popforecolor(), pushbackcolor(), pushforecolor(), r, stringpixels(), texthorizinset, textvertinset, and whitecolor.

Referenced by claydrawline().

Here is the call graph for this function:

boolean claygetedittextrect hdlheadrecord  hnode,
const Rect linerect,
Rect textrect
 

Definition at line 423 of file claylinelayout.c.

References claygettextrect(), and hnode.

Referenced by tablegetedittextrect().

Here is the call graph for this function:

boolean claygeticonrect hdlheadrecord  hnode,
const Rect linerect,
Rect iconrect
 

Definition at line 435 of file claylinelayout.c.

References centerrect(), drawinset, hasframe(), hnode, offsetrect(), opnodeindent(), and r.

Referenced by tablegeticonrect().

Here is the call graph for this function:

boolean claygetlineheight hdlheadrecord  hnode,
short lh
 

Definition at line 493 of file claylinelayout.c.

References getframeheight(), hasframe(), and vertspacebetweenframes.

Referenced by tablegetlineheight().

Here is the call graph for this function:

boolean claygetlinewidth hdlheadrecord  hnode,
short lw
 

Definition at line 505 of file claylinelayout.c.

References fl, hnode, and opdefaultgetlinewidth().

Referenced by claygetnodeframe(), and tablegetlinewidth().

Here is the call graph for this function:

boolean claygetnodeframe hdlheadrecord  hnode,
Rect r
 

Definition at line 517 of file claylinelayout.c.

References claygetlinewidth(), drawinset, getframeheight(), getframewidth(), hnode, opnodeindent(), and simpleoutlinerdisplay().

Referenced by claypredrawline().

Here is the call graph for this function:

boolean claygettextrect hdlheadrecord  hnode,
const Rect linerect,
Rect textrect
 

Definition at line 375 of file claylinelayout.c.

References drawinset, getframeheight(), hasframe(), hnode, offsetrect(), opnodeindent(), r, simpleoutlinerdisplay(), spacebetweenlines, tableformatsdata, and texthorizinset.

Referenced by claygetedittextrect(), claypostdrawline(), and tablegettextrect().

Here is the call graph for this function:

boolean clayinitlinelayout tylinelayout layout  ) 
 

Definition at line 1428 of file claylinelayout.c.

References BIGSTRING, claytabletolayout(), langfastaddresstotable(), and roottable.

Referenced by tablegetdisplaysettingsverb().

Here is the call graph for this function:

boolean claylayouttotable const tylinelayout layout,
hdlhashtable  ht
 

Definition at line 1392 of file claylinelayout.c.

References bigstring, fontgetname(), langassignbooleanvalue(), langassigncolorvalue(), langassignlongvalue(), langassignstringvalue(), str_backcolor, str_claydisplay, str_cursorcolor, str_filenamebold, str_filenamecolor, str_filenamefont, str_filenamefontsize, str_fillcolor, str_framecolor, str_iconsize, str_includedate, str_includeframe, str_includeline2, str_othertextcolor, str_othertextfont, str_othertextfontsize, str_realicons, and str_statuscolor.

Referenced by tablegetdisplaysettingsverb().

Here is the call graph for this function:

boolean claypacklinelayout Handle  hpacked  ) 
 

Definition at line 1439 of file claylinelayout.c.

References tylinelayout::backcolor, BIGSTRING, tylinelayout::claydisplay, tylinelayout::cursorcolor, enlargehandle(), tylinelayout::filenamebold, tylinelayout::filenamecolor, tylinelayout::filenamefont, tylinelayout::filenamefontsize, tylinelayout::fillcolor, fontgetname(), tylinelayout::framecolor, tylinelayout::iconsize, tylinelayout::includedate, tylinelayout::includeframe, tylinelayout::includeline2, info, memtodiskcolor, tylinelayout::othertextcolor, tylinelayout::othertextfont, tylinelayout::othertextfontsize, tylinelayout::realicons, and tylinelayout::statuscolor.

Here is the call graph for this function:

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

Definition at line 818 of file claylinelayout.c.

References tyFontInfo::ascent, BIGSTRING, bigstring, browsergetrefcon(), claygettextrect(), tybrowserinfo::dirid, drawinset, ellipsize(), externalvaluetype, getfatdatestring(), getfattimestring(), globalfontinfo, hashgettypestring(), hashtablelookup(), hnode, insertstring(), movepento(), normal, opgetheadstring(), pendrawstring(), popforecolor(), popstyle(), pushforecolor(), pushstring(), pushstyle(), r, spacebetweenlines, stringpixels(), tableformatsdata, tablegetcellstring(), tybrowserinfo::timemodified, valuecolumn, and tyvaluerecord::valuetype.

Referenced by tablepostdrawline().

Here is the call graph for this function:

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

Definition at line 587 of file claylinelayout.c.

References claygetnodeframe(), darkcolorof(), dropshadowrect(), eraserect(), framerect(), hasframe(), hnode, popbackcolor(), popforecolor(), pushbackcolor(), pushforecolor(), r, and tableformatsdata.

Referenced by tablepredrawline().

Here is the call graph for this function:

boolean claypushnodestyle hdlheadrecord  hnode  ) 
 

Definition at line 465 of file claylinelayout.c.

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

Referenced by claydrawline(), and tablepushnodestyle().

Here is the call graph for this function:

void claysetlinelayout hdlwindowinfo  targetwindow,
tylinelayout newlayout
 

Definition at line 957 of file claylinelayout.c.

References claysmashoutlinefields(), currentcard, nil, setcomputedfields(), and shellwindowinval().

Referenced by tablesetdisplaysettingsverb().

Here is the call graph for this function:

void claysmashoutlinefields hdlwindowinfo  appwindow,
hdltableformats  hf
 

Definition at line 163 of file claylinelayout.c.

References nil, and oppoststylechange().

Here is the call graph for this function:

boolean claytabletolayout hdlhashtable  ht,
tylinelayout layout
 

Definition at line 1347 of file claylinelayout.c.

References bigstring, blackcolor, clearbytes(), config, tyconfigrecord::defaultfont, fontgetnumber(), hashlookupboolean(), hashlookupcolor(), hashlookupshort(), hashlookupstring(), pophashtable(), pushhashtable(), str_backcolor, str_claydisplay, str_cursorcolor, str_filenamebold, str_filenamecolor, str_filenamefont, str_filenamefontsize, str_fillcolor, str_framecolor, str_iconsize, str_includedate, str_includeframe, str_includeline2, str_othertextcolor, str_othertextfont, str_othertextfontsize, str_realicons, str_statuscolor, and whitecolor.

Referenced by clayinitlinelayout(), and tablesetdisplaysettingsverb().

Here is the call graph for this function:

boolean clayunpacklinelayout Handle  hpacked,
long ixhandle,
hdltableformats  hf
 

Definition at line 1499 of file claylinelayout.c.

References assert, tylinelayout::backcolor, BIGSTRING, boolean, tylinelayout::claydisplay, clearbytes(), tylinelayout::cursorcolor, disktomemcolor, tylinelayout::filenamebold, tylinelayout::filenamecolor, tylinelayout::filenamefont, tylinelayout::filenamefontsize, tylinelayout::fillcolor, tylinelayout::flinitted, fontgetnumber(), tylinelayout::framecolor, tylinelayout::iconsize, tylinelayout::includedate, tylinelayout::includeframe, tylinelayout::includeline2, info, loadfromhandle(), min, tylinelayout::othertextcolor, tylinelayout::othertextfont, tylinelayout::othertextfontsize, tylinelayout::realicons, sizeof(), and tylinelayout::statuscolor.

Here is the call graph for this function:

static void darkcolorof RGBColor rgb  )  [static]
 

Definition at line 139 of file claylinelayout.c.

Referenced by claypredrawline().

static void getfatdatestring long  modtime,
bigstring  bs
[static]
 

Definition at line 538 of file claylinelayout.c.

References timetodatestring().

Referenced by claypostdrawline().

Here is the call graph for this function:

static void getfattimestring long  modtime,
bigstring  bs
[static]
 

Definition at line 548 of file claylinelayout.c.

References timetotimestring().

Referenced by claypostdrawline().

Here is the call graph for this function:

static short getframeheight void   )  [static]
 

Definition at line 319 of file claylinelayout.c.

References drawinset, hasframe(), spacebetweenlines, and tableformatsdata.

Referenced by claygetlineheight(), claygetnodeframe(), and claygettextrect().

Here is the call graph for this function:

static short getframewidth void   )  [static]
 

Definition at line 347 of file claylinelayout.c.

References drawinset, and tableformatsdata.

Referenced by claygetnodeframe().

static boolean hasframe void   )  [static]
 

Definition at line 311 of file claylinelayout.c.

References tableformatsdata.

Referenced by claydrawtext(), claygeticonrect(), claygetlineheight(), claygettextrect(), claypredrawline(), and getframeheight().

static boolean hashlookupboolean bigstring  bslookup  )  [static]
 

Definition at line 1245 of file claylinelayout.c.

References coercetoboolean(), copyvaluerecord(), hashlookup(), and hnode.

Referenced by claytabletolayout().

Here is the call graph for this function:

static RGBColor hashlookupcolor bigstring  bslookup,
const RGBColor defaultrgb
[static]
 

Definition at line 1283 of file claylinelayout.c.

References coercetorgb(), copyvaluerecord(), hashlookup(), and hnode.

Referenced by claytabletolayout().

Here is the call graph for this function:

static short hashlookupshort bigstring  bslookup,
short  defaultval
[static]
 

Definition at line 1264 of file claylinelayout.c.

References coercetoint(), copyvaluerecord(), hashlookup(), and hnode.

Referenced by claytabletolayout().

Here is the call graph for this function:

static boolean hashlookupstring bigstring  bslookup,
bigstring  bs
[static]
 

Definition at line 1302 of file claylinelayout.c.

References coercetostring(), copyvaluerecord(), hashlookup(), hnode, and pullstringvalue().

Referenced by claytabletolayout().

Here is the call graph for this function:

static boolean langassigncolorvalue hdlhashtable  ht,
const bigstring  bs,
const RGBColor color
[static]
 

Definition at line 1323 of file claylinelayout.c.

References color, disposevaluerecord(), exemptfromtmpstack(), hashtableassign(), newheapvalue(), and rgbvaluetype.

Referenced by claylayouttotable().

Here is the call graph for this function:

static void setcomputedfields hdltableformats  hf  )  [static]
 

Definition at line 226 of file claylinelayout.c.

References tyFontInfo::ascent, BIGSTRING, bold, tyFontInfo::descent, drawinset, fullsizeicon, globalfontinfo, nil, normal, popstyle(), pushstyle(), smallsizeicon, smashlayoutfields(), stringpixels(), style, and verysmallsizeicon.

Referenced by claybrowserinitdraw(), and claysetlinelayout().

Here is the call graph for this function:

static boolean simpleoutlinerdisplay void   )  [static]
 

Definition at line 363 of file claylinelayout.c.

References tylinelayout::includedate, tylinelayout::includeframe, tylinelayout::includeline2, tytableformats::linelayout, and tableformatsdata.

Referenced by claygetnodeframe(), and claygettextrect().

static void smashlayoutfields hdltableformats  hf  )  [static]
 

Definition at line 196 of file claylinelayout.c.

Referenced by setcomputedfields().


Variable Documentation

Rect rdate [static]
 

Definition at line 584 of file claylinelayout.c.

Rect rfilename [static]
 

Definition at line 584 of file claylinelayout.c.

Rect rframe [static]
 

Definition at line 584 of file claylinelayout.c.

Referenced by cleanpicture(), medrawseparatorline(), opdefaultdrawtext(), pictprint(), and pictupdate().


Generated on Thu Jun 1 04:24:18 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6