home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #3 / amigamamagazinepolishissue1998.iso / blabla / showfont / showfont.history < prev    next >
Text File  |  1998-01-24  |  10KB  |  198 lines

  1. /****************************************************************************
  2.  
  3. Project:     ShowFont - History file
  4. Author:      (c)1997 by Dariusz J. Garbowski - Thufor/BlahBlah
  5.  
  6.  
  7. ver  rev    date        changes
  8.  
  9. 2.0                     o
  10.  
  11.   2.0.25ß   1997.11.14  - added: 2 new parameters: FOREGROUND and BACKGROUND;
  12.                           template is now:
  13.                           FONTNAME/A,FONTSIZE/A/N,DL=DELAY/N,TXT=TEXT/K,SV=SAVE/K,
  14.                           XW=XWIN/N/K,YW=YWIN/N/K,PUBSCR=PUBSCREEN/K,
  15.                           FOREGROUND=FG/N/K,BACKGROUND=BG/N/K
  16.                           (thx 4 Lukasz Prokulski)
  17.                         - added: process_CLI_params(),
  18.                                  SFParams{}
  19.                                  (thx 4 Lukasz Prokulski)
  20.                         - changed: all with argv[] to SFParams{} (all is now
  21.                           easier!) (thx 4 Lukasz Prokulski)
  22.                         - some cosmetics... (eg. TRUE in place of 1L, etc.)
  23.  
  24.   2.0.24ß   1997.10.03  - bug fixed: TextRastPort() is changed so now it works fine
  25.                         - bug fixed: SAVE works now, but it requires too much chip
  26.                           memory so for bigger bitmaps it can't be done...
  27.                           SaveRPortDT() will be rewritten...
  28.  
  29.   2.0.24ß   1997.10.03  - minor changes in prep_window
  30.                         - added: init_sbmp_size()
  31.                         - fixed: super-bitmap has good size now (no more 800x600!)
  32.                         - bug fixed: doNewSize() had an error that in specifical
  33.                           causes was generated division by zero!!! It was in
  34.                           modyfying prop gadgets... (doNewSize() was taken from
  35.                           Rom Kernel Manual!!!)
  36.                         - bug: founded in TextRastPort(): how to get legal size
  37.                           of RastPort???
  38.  
  39.   2.0.22ß   1997.09.06  - rewritten: COMPLETLY NOW show_font() (main function)
  40.                         - bug fixed: no ".font" postfix is needed (version
  41.                           2.0.21ß needed it...)
  42.                         - bug fixed: cli param DL=DELAY/N now works, but
  43.                           not too good because of changing GUI philosophy
  44.                           (2.0.21ß destruct it...), but it will be fixed
  45.                         - bug: cli param SAVE doesn't work yet :( It will
  46.                           be fixed in NEAREST future
  47.  
  48.   2.0.21ß   1997.09.05  - changed: style of version numbering. New format is:
  49.                           major.minor.revision
  50.                         - changed: window to SuperBitMap window with scroller
  51.                           gadgets. Now text can be bigger than screen and user
  52.                           can scroll it in window!
  53.                         - added: size gadget to window
  54.                         - added: BitMaps.c: allocBitMap()
  55.                                             disposeBitMap()
  56.                         - rewritten: show_font() (main function)
  57.                         - added: doNewSize()
  58.                                  doMsgLoop()
  59.                                  initBorderProps()
  60.                         - some little bugs is this new version yet...
  61.                         - many of these changes was possible thanks to RKM
  62.                           Libraries...
  63.  
  64. 1.3                     o BLABLA INSIDE VERSION
  65.  
  66.      1.020  1997.08.12  - added: get_txt_size()
  67.      1.019  1997.08.12  - changed: saving to iff is done after opening window
  68.                           (not after IDCMP_CLOSEWINDOW)
  69.      1.018  1997.08.12  - added: "auto '.font' postfix adding"
  70.      1.017  1997.08.11  - some fixes (window size, printing position...)
  71.      1.016  1997.08.10  - little changes (window, etc.)
  72.      1.015  1997.08.10  - some variables kicked out
  73.      1.014  1997.08.10  - GetTextRPSize()
  74.      1.013  1997.08.10  - MULTI-SOURCE now...
  75.  
  76. 1.2                     o LAST ONE-SOURCE VERSION (not spreaded)
  77.  
  78.      1.012  1997.08.05  - TextRastPort() bug fixed
  79.      1.011  1997.05.04  - SearchUByte()
  80.                         - TextRastPort()
  81.  
  82. 1.2ß                    o BLABLA INSIDE VERSION (also sended to Marko Seppannen)
  83.  
  84.      1.010  1997.05.03  - changed TEMPLATE; now it looks:
  85.                           FONTNAME/A,FONTSIZE/A/N,DL=DELAY/N,TXT=TEXT/K,SV=SAVE/K,
  86.                           XW=XWIN/N/K,YW=YWIN/N/K,PUBSCR=PUBSCREEN/K
  87.                           (thx 4 Lukasz Prokulski)
  88.                         - handle_window_events() is out! (thx 4 Luke Prokulski
  89.                           and... me ;-)
  90.                         - PrintFault() added (when bad args)
  91.                         - added prep_window()
  92.                         - changed return values to defined consts
  93.                           (eg. RETURN_ERROR)
  94.  
  95. 1.1ß                    o ONLY BLABLA INSIDE VERSION
  96.  
  97.      1.009  1997.04.27  - added SAVE=FILENAME/K keyword; it saves only window's
  98.                           RastPort now - it will be changed (thx for suggestion
  99.                           4 Marko Seppänen)
  100.      1.008  1997.04.27  - enforcer hits *2 removed (done after rev.1.04)
  101.      1.007  1997.04.27  - there was not FreeVec( vrport )...
  102.      1.006  1997.04.26  - no more resizing window! now it opens in right size
  103.      1.005  1997.04.26  - itoa() is replaced by my_sprintf()
  104.                         - changed libraries opening (diskfont last) (thx 4 Lukasz
  105.                           Prokulski)
  106.                         - changed some SCOptions for SAS (thx 4 Lukasz Prokulski)
  107.  
  108. 1.0                     o FIRST PUBLIC RELEASE
  109.  
  110.      1.004  1997.04.01  - added cli param PUBSCREEN=PUBSCREEN/K
  111.                         - added TAG_DONE in main_win_tags{} structure (it may
  112.                           cause some strange things...)
  113.      1.003  1997.03.31  - enforcer hit *1 removed
  114.                         - printf() changed to dos's Printf() - gained 3904 bytes
  115.                         - some comments in source
  116.                         - font size can't be now >255 (it was dangerous!)
  117.                         - cli param DELAY > 0 -> no close gadget
  118.                         - added cli param TEXT=TEXT/K
  119.                         - added cli param XWIN=XWIN/N/K
  120.                         - added cli param YWIN=YWIN/N/K
  121.                         - it cuts fontnames to window title bar (no possibility of
  122.                           writing something after unsigned char mainwndtitle[]
  123.      1.002  1997.03.29  - ReadArgs() added
  124.                         - added cli param DELAY=DELAY/N
  125.                         - it shows fontname and fontsize on window titlebar
  126.                         - stdlibext added (multifile source)
  127.                         - show_font() added
  128.                         - enforcer hit *1 expected
  129.      1.001  1997.03.20  - it shows all fonts (ASCII 32-255)
  130.                         - it opens window in right y size
  131.                         - it has version string
  132.             1997.03.07  - idea of ShowFont
  133.  
  134. pre         1997-02-0x  - OpenFont V1.0 - not released, tested on my system,
  135.                           works ok, but it's very primitive
  136.  
  137. ****************************************************************************/
  138. /****************************************************************************
  139.                                  TO DO / BUGS
  140.                                 --------------
  141.  
  142.     (97.04.26) 1.It can't be (?) closed before resizing! Can be? [look at resizing in show_font()]
  143.                  There is not resizing now!
  144. 2.Font requester.
  145. 3.File requester (?).
  146.     (97.03.31) 4.User's text.
  147.     (97.03.31) 5.Don't open window with CLOSEGADGET when cli param DELAY>0!
  148.     (97.04.27) 6.Bitmap saving. (Marko Seppänen)
  149. 7.Wildcards. (Marko Seppänen)
  150.     (97.10.03) 8.TextRastPort() gets strange values for rportsize_y... [function changed]
  151.     X1.Can I use struct Screen *pub_screen after opening window and UnlockPubScreen()?
  152.        Yes! Look at autodocs LockPubScreen()!
  153.  
  154. ****************************************************************************/
  155. /****************************************************************************
  156.                                     UWAGI
  157.                                    -------
  158. =============================================================================
  159. *1 - enforcer hit przy sprawdzaniu argument DELAY=DELAY/N - casting:
  160. -----------------------------------------------------------------------------
  161.  
  162.     if (*(ULONG *)argv[CLI_PARAM_DELAY]==0)     // <- ###here!###
  163.     {
  164.         while( handle_window_events( main_window ) != IDCMP_CLOSEWINDOW )
  165.         {}
  166.     }
  167.     else
  168.     {
  169.         Delay(*(ULONG *)argv[CLI_PARAM_DELAY]);
  170.     }
  171.  
  172. Enforcer Hit!  Bad Program!
  173.  
  174. 31-Mar-97  10:38:03
  175. LONG-READ from 00000000                        PC: 00426B02
  176. USP:  004238CC SR: 0014 SW: 0749  (U0)(-)(-)  TCB: 003BA6D0
  177. Data: 00000002 0000005C 0041B100 00000000 00000054 00000005 00000006 00000000
  178. Addr: 00000000 00000000 0042390C 002A0AF9 0041AFA0 0041B100 00211614 ========
  179. Stck: 0000000E 0000000E 000EED71 00000000 003BDDB4 002A0B09 00215064 00000011
  180. Stck: 00000014 00000041 B1AE0041 B1D00041 B1F20041 B2140041 B2360041 B2580234
  181. PC-8: 00202077 18264EAE FFC45286 6000FF72 206C01D0 2C6C0510 4EAEFE38 206D0008
  182. PC *: 4A906612 206C01D0 61000050 0C800000 02006710 60EE206D 00082210 2C6C04D0
  183. Name: "Shell Process"  CLI: "Proj/ShowFont10/ShowFont"  Hunk 0000 Offset 00000632
  184.  
  185. -----------------------------------------------------------------------------
  186. *2 - enforcer hity przy uûywaniu pointera main_window do okienka:
  187. -----------------------------------------------------------------------------
  188.  
  189. Nie inicjalizowaê wskaúników do okien i ekranów!!! Inicjalizacja
  190. main_window = NULL spowodowaîa nie wykrycie uûycia tego wskaúnika przed
  191. odpowiednim jego ustawieniem! Bez inicjalizacji kompilator zgîosiîby bîâd
  192. "uninitialized...".
  193.  
  194. =============================================================================
  195.  
  196. ****************************************************************************/
  197.  
  198.