miniwindow.c File Reference

#include "frontier.h"
#include "standard.h"
#include "bitmaps.h"
#include "cursor.h"
#include "frontierconfig.h"
#include "kb.h"
#include "icon.h"
#include "font.h"
#include "memory.h"
#include "mouse.h"
#include "ops.h"
#include "popup.h"
#include "quickdraw.h"
#include "scrap.h"
#include "strings.h"
#include "windowlayout.h"
#include "frontierwindows.h"
#include "zoom.h"
#include "shell.h"
#include "shellundo.h"
#include "cancoon.h"
#include "miniwindow.h"
#include "wpengine.h"

Include dependency graph for miniwindow.c:

Go to the source code of this file.

Defines

#define flmsgactive   flmassiveupdate

Functions

static boolean minisetwpglobals (short item)
static boolean minisetactivewpglobals (void)
boolean minisetstring (short item, Handle h)
boolean minigetstring (short item, Handle *h)
boolean minigetselstring (short item, bigstring bs)
void minisetselect (short startsel, short endsel)
static boolean miniselectallandactivate (short newactiveitem)
static boolean miniselectall (void)
static boolean mininextwindowvisit (WindowPtr w, ptrvoid refcon)
static boolean minisearch (void)
static boolean minicheckselectall (void)
static boolean minisavestrings (void)
static void minidirty (void)
static boolean miniloadstrings (void)
static boolean minisetvalue (void)
static void minidrawicon (boolean flpressed)
static void minidrawpopups (void)
static void minidrawtextitems (void)
static boolean minidrawmsg (void)
static boolean minimessage (bigstring bs, boolean flbackgroundmsg)
static boolean minigettargetdata (short id)
static boolean miniiconhit (boolean flanimate)
static short minifindpopup (Point pt)
static boolean minipopuphit (short popupnumber)
static short minifindtextobject (Point pt)
static void miniactivatemessage (boolean flactivate)
static boolean minimessageisactive (void)
static void miniselectnexttextitem (void)
static boolean minimousedown (Point pt, tyclickflags flags)
static boolean minikeystroke (void)
static boolean miniruncursor (void)
static boolean minigetwindowrect (Rect *rwindow)
static boolean miniclose (void)
static void miniresizetextrects (Rect rtext)
static boolean miniresizepopups (Rect *rmsg)
static void miniresize (void)
static boolean minisetfontsize (void)
static boolean mininewwindow (callback setuproutine)
static void miniupdate (void)
static void miniactivate (boolean flactivate)
static boolean minifindvisit (WindowPtr w, ptrvoid refcon)
static boolean minifindwindow (short idconfig, hdlwindowinfo *hinfo)
boolean miniinvalicon (short idconfig)
boolean minisetwindowmessage (short idconfig, bigstring bsmessage)
boolean startminidialog (short idconfig, callback setuproutine)
static boolean minidisposerecord (void)
static boolean miniadjustcursor (Point pt)
static boolean minisetfont (void)
static boolean minisetsize (void)
static boolean minisetselectioninfo (void)
static void miniidle (void)
static boolean minicopy (void)
static boolean minipaste (void)
static boolean miniclear (void)
static boolean minicut (void)
static boolean minigetundoglobals (long *globals)
static boolean minisetundoglobals (long globals, boolean flundo)
boolean ministart (short idconfig)

Variables

WindowPtr miniwindow = nil
hdlwindowinfo miniwindowinfo = nil
hdlminirecord minidata = nil


Define Documentation

#define flmsgactive   flmassiveupdate
 

Definition at line 55 of file miniwindow.c.


Function Documentation

static void miniactivate boolean  flactivate  )  [static]
 

Definition at line 1006 of file miniwindow.c.

References minicheckselectall(), minidrawicon(), minimessageisactive(), and wpactivate().

Referenced by ministart().

Here is the call graph for this function:

static void miniactivatemessage boolean  flactivate  )  [static]
 

Definition at line 580 of file miniwindow.c.

References minidata, minidrawmsg(), minisetactivewpglobals(), and wpactivate().

Referenced by minimousedown(), miniselectnexttextitem(), and minisetundoglobals().

Here is the call graph for this function:

static boolean miniadjustcursor Point  pt  )  [static]
 

Definition at line 1150 of file miniwindow.c.

References cursorisarrow, cursorisibeam, cursorispopup, minifindpopup(), minifindtextobject(), pt, and setcursortype().

Referenced by ministart().

Here is the call graph for this function:

static boolean minicheckselectall void   )  [static]
 

Definition at line 235 of file miniwindow.c.

References tyminirecord::flselectallpending, minidata, and miniselectall().

Referenced by miniactivate(), miniidle(), minikeystroke(), and minimousedown().

Here is the call graph for this function:

static boolean miniclear void   )  [static]
 

Definition at line 1242 of file miniwindow.c.

References minisetactivewpglobals(), and wpclear().

Referenced by ministart().

Here is the call graph for this function:

static boolean miniclose void   )  [static]
 

Definition at line 740 of file miniwindow.c.

References ccsubwindowclose(), killundo(), minisavestrings(), miniwindow, miniwindowinfo, and nil.

Referenced by ministart().

Here is the call graph for this function:

static boolean minicopy void   )  [static]
 

Definition at line 1214 of file miniwindow.c.

References bigstring, copystring(), disposehandle(), minimessageisactive(), newtexthandle(), nil, shellsetscrap(), textscraptype, and wpcopy().

Referenced by minicut(), and ministart().

Here is the call graph for this function:

static boolean minicut void   )  [static]
 

Definition at line 1251 of file miniwindow.c.

References minicopy(), minimessageisactive(), minisetactivewpglobals(), and wpcut().

Referenced by ministart().

Here is the call graph for this function:

static void minidirty void   )  [static]
 

Definition at line 274 of file miniwindow.c.

References miniwindow, and windowsetchanges().

Referenced by miniloadstrings().

Here is the call graph for this function:

static boolean minidisposerecord void   )  [static]
 

Definition at line 1133 of file miniwindow.c.

References disposehandle(), i, minidata, and wpdisposerecord().

Referenced by ministart().

Here is the call graph for this function:

static void minidrawicon boolean  flpressed  )  [static]
 

Definition at line 329 of file miniwindow.c.

References drawlabeledwindoidicon(), tyminirecord::fliconenabled, and minidata.

Referenced by miniactivate(), miniiconhit(), minimousedown(), and miniupdate().

Here is the call graph for this function:

static boolean minidrawmsg void   )  [static]
 

Definition at line 382 of file miniwindow.c.

References bigstring, centerstring, closebitmap(), copystring(), eraserect(), framerect(), insetrect(), invertrect(), minidata, miniwindow, msgsize, msgstyle, openbitmap(), popstyle(), pushstyle(), and r.

Referenced by miniactivatemessage(), minimessage(), and miniupdate().

Here is the call graph for this function:

static void minidrawpopups void   )  [static]
 

Definition at line 340 of file miniwindow.c.

References bigstring, copyheapstring(), drawpopup(), i, and minidata.

Referenced by miniupdate().

Here is the call graph for this function:

static void minidrawtextitems void   )  [static]
 

Definition at line 355 of file miniwindow.c.

References eraserect(), framerect(), gray3Dlook, i, minidata, minisetwpglobals(), pushbackcolor(), whitecolor, and wpupdate().

Referenced by miniupdate().

Here is the call graph for this function:

static short minifindpopup Point  pt  )  [static]
 

Definition at line 514 of file miniwindow.c.

References i, minidata, pointinrect(), popuparrowwidth, pt, and r.

Referenced by miniadjustcursor(), and minimousedown().

Here is the call graph for this function:

static short minifindtextobject Point  pt  )  [static]
 

Definition at line 558 of file miniwindow.c.

References i, minidata, pointinrect(), pt, and return().

Referenced by miniadjustcursor(), and minimousedown().

Here is the call graph for this function:

static boolean minifindvisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 1021 of file miniwindow.c.

References getwindowinfo(), and miniwindow.

Referenced by minifindwindow().

Here is the call graph for this function:

static boolean minifindwindow short  idconfig,
hdlwindowinfo hinfo
[static]
 

Definition at line 1040 of file miniwindow.c.

References ccfindrootwindow(), minifindvisit(), and visitownedwindows().

Referenced by miniinvalicon(), minisetwindowmessage(), and startminidialog().

Here is the call graph for this function:

boolean minigetselstring short  item,
bigstring  bs
 

Definition at line 122 of file miniwindow.c.

References minisetwpglobals(), and wpgetseltext().

Referenced by cmdtexthit().

Here is the call graph for this function:

boolean minigetstring short  item,
Handle h
 

Definition at line 113 of file miniwindow.c.

References minisetwpglobals(), and wpgettexthandle().

Referenced by cmdiconhit(), and minisavestrings().

Here is the call graph for this function:

static boolean minigettargetdata short  id  )  [static]
 

Definition at line 432 of file miniwindow.c.

Referenced by ministart().

static boolean minigetundoglobals long globals  )  [static]
 

Definition at line 1263 of file miniwindow.c.

References long, and return().

Referenced by ministart().

Here is the call graph for this function:

static boolean minigetwindowrect Rect rwindow  )  [static]
 

Definition at line 734 of file miniwindow.c.

References ccgetwindowrect().

Referenced by mininewwindow().

Here is the call graph for this function:

static boolean miniiconhit boolean  flanimate  )  [static]
 

Definition at line 478 of file miniwindow.c.

References delayticks(), minidata, minidrawicon(), and minisavestrings().

Referenced by minikeystroke(), minimousedown(), and miniruncursor().

Here is the call graph for this function:

static void miniidle void   )  [static]
 

Definition at line 1206 of file miniwindow.c.

References minicheckselectall(), and wpidle().

Referenced by ministart().

Here is the call graph for this function:

boolean miniinvalicon short  idconfig  ) 
 

Definition at line 1066 of file miniwindow.c.

References invalwindowrect(), minifindwindow(), miniwindow, shellpopglobals(), and shellpushwindowglobals().

Referenced by cmdprocesscallback().

Here is the call graph for this function:

static boolean minikeystroke void   )  [static]
 

Definition at line 690 of file miniwindow.c.

References chenter, tykeystrokerecord::chkb, chtab, tykeystrokerecord::flautokey, keyboardstatus, minicheckselectall(), miniiconhit(), miniselectnexttextitem(), minisetactivewpglobals(), sysbeep, and wpkeystroke().

Referenced by ministart().

Here is the call graph for this function:

static boolean miniloadstrings void   )  [static]
 

Definition at line 280 of file miniwindow.c.

References assert, disposehandle(), h, i, insetrect(), minidirty(), minisetstring(), minisetwpglobals(), nil, r, wpneverscroll, and wpnewbuffer().

Referenced by mininewwindow().

Here is the call graph for this function:

static boolean minimessage bigstring  bs,
boolean  flbackgroundmsg
[static]
 

Definition at line 423 of file miniwindow.c.

References copystring(), and minidrawmsg().

Referenced by ministart().

Here is the call graph for this function:

static boolean minimessageisactive void   )  [static]
 

Definition at line 607 of file miniwindow.c.

Referenced by miniactivate(), minicopy(), minicut(), and miniselectnexttextitem().

static boolean minimousedown Point  pt,
tyclickflags  flags
[static]
 

Definition at line 619 of file miniwindow.c.

References bundle, tyPoint::h, miniactivatemessage(), minicheckselectall(), minidata, minidrawicon(), minifindpopup(), minifindtextobject(), miniiconhit(), minipopuphit(), minisetactivewpglobals(), minisetwpglobals(), mouseup(), pointinrect(), pt, r, shellevent, trackicon(), tyPoint::v, tyEventRecord::what, tyEventRecord::when, tyEventRecord::where, wpactivate(), and wpclick().

Referenced by ministart().

Here is the call graph for this function:

static boolean mininewwindow callback  setuproutine  )  [static]
 

Definition at line 890 of file miniwindow.c.

References bigstring, ccfindrootwindow(), ccnewsubwindow(), copystring(), disposehandle(), falsenoop(), getwindowinfo(), longsizeof, minidata, minigetwindowrect(), miniloadstrings(), miniresize(), minisetfontsize(), minisetvalue(), newchildwindow(), newclearhandle(), tyminirecord::savestringroutine, setfontsizestyle(), shellpopglobals(), shellpushglobals(), truenoop(), windowsetcolor(), and windowzoom().

Referenced by startminidialog().

Here is the call graph for this function:

static boolean mininextwindowvisit WindowPtr  w,
ptrvoid  refcon
[static]
 

Definition at line 191 of file miniwindow.c.

References nil.

Referenced by minisearch().

static boolean minipaste void   )  [static]
 

Definition at line 1233 of file miniwindow.c.

References minisetactivewpglobals(), and wppaste().

Referenced by ministart().

Here is the call graph for this function:

static boolean minipopuphit short  popupnumber  )  [static]
 

Definition at line 543 of file miniwindow.c.

References minidata, popuparrowwidth, popupmenuhit(), and r.

Referenced by minimousedown().

Here is the call graph for this function:

static void miniresize void   )  [static]
 

Definition at line 820 of file miniwindow.c.

References drawthemeborder(), iconrectheight, iconrectwidth, minidata, miniresizepopups(), miniresizetextrects(), miniwindowinfo, r, and windowmargin.

Referenced by mininewwindow(), and ministart().

Here is the call graph for this function:

static boolean miniresizepopups Rect rmsg  )  [static]
 

Definition at line 796 of file miniwindow.c.

References i, minidata, r, and windowmargin.

Referenced by miniresize().

static void miniresizetextrects Rect  rtext  )  [static]
 

Definition at line 755 of file miniwindow.c.

References ct, i, insetrect(), minidata, minisetwpglobals(), r, windowmargin, and wpsetbufferrect().

Referenced by miniresize().

Here is the call graph for this function:

static boolean miniruncursor void   )  [static]
 

Definition at line 724 of file miniwindow.c.

References miniiconhit().

Referenced by ministart().

Here is the call graph for this function:

static boolean minisavestrings void   )  [static]
 

Definition at line 252 of file miniwindow.c.

References disposehandle(), h, i, and minigetstring().

Referenced by miniclose(), miniiconhit(), and ministart().

Here is the call graph for this function:

static boolean minisearch void   )  [static]
 

Definition at line 209 of file miniwindow.c.

References fl, mininextwindowvisit(), miniwindow, tyshellglobals::searchroutine, shellglobals, shellpopglobals(), shellpushglobals(), and shellvisitwindowlayer().

Referenced by ministart().

Here is the call graph for this function:

static boolean miniselectall void   )  [static]
 

Definition at line 183 of file miniwindow.c.

References miniselectallandactivate().

Referenced by minicheckselectall(), and ministart().

Here is the call graph for this function:

static boolean miniselectallandactivate short  newactiveitem  )  [static]
 

Definition at line 170 of file miniwindow.c.

References minisetwpglobals(), and wpselectall().

Referenced by miniselectall().

Here is the call graph for this function:

static void miniselectnexttextitem void   )  [static]
 

Definition at line 613 of file miniwindow.c.

References miniactivatemessage(), and minimessageisactive().

Referenced by minikeystroke().

Here is the call graph for this function:

static boolean minisetactivewpglobals void   )  [static]
 

Definition at line 95 of file miniwindow.c.

References minidata, minisetwpglobals(), and nil.

Referenced by miniactivatemessage(), miniclear(), minicut(), minikeystroke(), minimousedown(), minipaste(), minisetfontsize(), minisetselect(), and ministart().

Here is the call graph for this function:

static boolean minisetfont void   )  [static]
 

Definition at line 1172 of file miniwindow.c.

References tywindowinfo::defaultfont, minisetfontsize(), and miniwindowinfo.

Referenced by ministart().

Here is the call graph for this function:

static boolean minisetfontsize void   )  [static]
 

Definition at line 871 of file miniwindow.c.

References cccopywindowinfo(), minisetactivewpglobals(), miniwindowinfo, wpselectall(), wpsetfont(), and wpsetsize().

Referenced by mininewwindow(), minisetfont(), and minisetsize().

Here is the call graph for this function:

void minisetselect short  startsel,
short  endsel
 

Definition at line 145 of file miniwindow.c.

References minisetactivewpglobals(), and wpsetselection().

Referenced by cmderrorroutine().

Here is the call graph for this function:

static boolean minisetselectioninfo void   )  [static]
 

Definition at line 1196 of file miniwindow.c.

References shelldefaultselectioninfo().

Referenced by ministart().

Here is the call graph for this function:

static boolean minisetsize void   )  [static]
 

Definition at line 1184 of file miniwindow.c.

References tywindowinfo::defaultsize, minisetfontsize(), and miniwindowinfo.

Referenced by ministart().

Here is the call graph for this function:

boolean minisetstring short  item,
Handle  h
 

Definition at line 104 of file miniwindow.c.

References minisetwpglobals(), and wpsettexthandle().

Referenced by miniloadstrings().

Here is the call graph for this function:

static boolean minisetundoglobals long  globals,
boolean  flundo
[static]
 

Definition at line 1271 of file miniwindow.c.

References miniactivatemessage(), and minisetwpglobals().

Referenced by ministart().

Here is the call graph for this function:

static boolean minisetvalue void   )  [static]
 

Definition at line 323 of file miniwindow.c.

Referenced by mininewwindow().

boolean minisetwindowmessage short  idconfig,
bigstring  bsmessage
 

Definition at line 1083 of file miniwindow.c.

References minifindwindow(), shellpopglobals(), shellpushwindowglobals(), and shellwindowmessage().

Referenced by cmdiconhit(), and cmdthreadmain().

Here is the call graph for this function:

static boolean minisetwpglobals short  item  )  [static]
 

Definition at line 72 of file miniwindow.c.

References miniwindow, miniwindowinfo, nil, wpdata, wpwindow, and wpwindowinfo.

Referenced by minidrawtextitems(), minigetselstring(), minigetstring(), miniloadstrings(), minimousedown(), miniresizetextrects(), miniselectallandactivate(), minisetactivewpglobals(), minisetstring(), and minisetundoglobals().

boolean ministart short  idconfig  ) 
 

Definition at line 1290 of file miniwindow.c.

References loadconfigresource(), miniactivate(), miniadjustcursor(), miniclear(), miniclose(), minicopy(), minicut(), minidata, minidisposerecord(), minigettargetdata(), minigetundoglobals(), miniidle(), minikeystroke(), minimessage(), minimousedown(), minipaste(), miniresize(), miniruncursor(), minisavestrings(), minisearch(), miniselectall(), minisetactivewpglobals(), minisetfont(), minisetselectioninfo(), minisetsize(), minisetundoglobals(), miniupdate(), miniwindow, miniwindowinfo, and shellnewcallbacks().

Referenced by cmdstart().

Here is the call graph for this function:

static void miniupdate void   )  [static]
 

Definition at line 990 of file miniwindow.c.

References minidata, minidrawicon(), minidrawmsg(), minidrawpopups(), and minidrawtextitems().

Referenced by ministart().

Here is the call graph for this function:

boolean startminidialog short  idconfig,
callback  setuproutine
 

Definition at line 1106 of file miniwindow.c.

References minifindwindow(), mininewwindow(), shellbringtofront(), shellpopglobals(), and shellpushwindowglobals().

Referenced by startcmddialog().

Here is the call graph for this function:


Variable Documentation

hdlminirecord minidata = nil
 

Definition at line 61 of file miniwindow.c.

Referenced by cmdsetfields(), miniactivatemessage(), minicheckselectall(), minidisposerecord(), minidrawicon(), minidrawmsg(), minidrawpopups(), minidrawtextitems(), minifindpopup(), minifindtextobject(), miniiconhit(), minimousedown(), mininewwindow(), minipopuphit(), miniresize(), miniresizepopups(), miniresizetextrects(), minisetactivewpglobals(), ministart(), and miniupdate().

WindowPtr miniwindow = nil
 

Definition at line 57 of file miniwindow.c.

Referenced by cmderrorroutine(), miniclose(), minidirty(), minidrawmsg(), minifindvisit(), miniinvalicon(), minisearch(), minisetwpglobals(), and ministart().

hdlwindowinfo miniwindowinfo = nil
 

Definition at line 59 of file miniwindow.c.

Referenced by miniclose(), miniresize(), minisetfont(), minisetfontsize(), minisetsize(), minisetwpglobals(), and ministart().


Generated on Thu Jun 8 00:32:05 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6