frontierconfig.h

Go to the documentation of this file.
00001 
00002 /*  $Id: frontierconfig.h 1271 2006-04-16 17:43:49Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define configinclude /*so other includes can tell if we've been loaded*/
00029 
00030 #ifdef MACVERSION 
00031 #include <standard.h>
00032 #endif
00033 
00034 #ifdef WIN95VERSION 
00035 #include "standard.h"
00036 #endif
00037 
00038 /*resnums of 'cnfg' resources for window types*/
00039 
00040 #define idmenueditorconfig 128
00041 #define idiowaconfig 129 /*3/18/92 dmb*/
00042 #define idoutlineconfig 130 
00043 #define idscriptconfig 131
00044 #define idtableconfig 132
00045 #define xxxidtextconfig 133
00046 #define idwpconfig 134
00047 #define xxxidmailconfig 135
00048 #define xxxidprogressconfig 136
00049 #define idaboutconfig 137
00050 
00051 
00052 #if TARGET_API_MAC_CARBON == 1
00053     #define idcommandconfig 146 /*OS X uses a normal window*/
00054     #define idlangerrorconfig 145
00055 #else
00056     #define idcommandconfig 138
00057     #define idlangerrorconfig 139
00058 #endif
00059 
00060 #define idstatsconfig 140
00061 #define idpictconfig 141
00062 #define idcancoonconfig 142
00063 #define idlangdialogconfig 143
00064 
00065 #ifdef MACVERSION
00066     #define idplayerconfig 144 /*PBS 7.0b4: QuickTime Player window*/
00067 #endif
00068 
00069 
00070 #define typeunknown '\?\?\?\?'
00071 
00072 
00073 typedef struct tyconfigrecord {
00074 
00075     short flhorizscroll; /*window has horiz scrollbar?*/
00076     
00077     short flvertscroll;
00078     
00079     short flwindowfloats; /*is it a floating palette window?*/
00080     
00081     short flmessagearea; /*allocate space for a message area?*/
00082     
00083     short flinsetcontentrect; /*if true we inset by 3 pixels*/
00084     
00085     short flnewonlaunch;
00086     
00087     short flopenresfile;
00088     
00089     short fldialog; /*do a GetNewDialog on creating one of these windows?*/
00090     
00091     short flgrowable; /*provide a grow box for window*/
00092     
00093     short flcreateonnew;
00094     
00095     short flwindoidscrollbars;
00096     
00097     short flstoredindatabase;
00098     
00099     short flparentwindowhandlessave;
00100     
00101     short fleraseonresize;
00102     
00103     short fldontconsumefrontclicks; 
00104     
00105     short flcolorwindow; 
00106 
00107     short messageareafraction;
00108     
00109     OSType filecreator, filetype;
00110     
00111     short templateresnum; 
00112     
00113     Rect rmin; /*for growable windows, the minimum size allowed*/
00114     
00115     short defaultfont; /*version on disk indexes into a STR# list*/
00116     
00117     short defaultsize;
00118     
00119     short defaultstyle;
00120     
00121     short idbuttonstringlist; /*if 0, no buttons for this window type*/
00122     
00123     Rect defaultwindowrect; /*new windows come up in this spot*/
00124     } tyconfigrecord, *ptrconfigrecord, **hdlconfigrecord;
00125 
00126 
00127 /*global variables*/
00128 
00129 extern tyconfigrecord config; /*load from resource file on initialization*/
00130 
00131 extern short iddefaultconfig; /*the type of window a New command creates - set in main.c*/
00132 
00133 
00134 /*prototypes*/
00135 
00136 extern void loadconfigresource (short, tyconfigrecord *);
00137 
00138 extern boolean saveconfigresource (short, tyconfigrecord *);
00139 
00140 extern boolean getprogramname (bigstring);
00141 
00142 extern boolean getuntitledfilename (bigstring);
00143 
00144 extern boolean getdefaultfilename (bigstring);
00145 
00146 extern boolean getusername (bigstring);
00147 
00148 extern void initconfig (void);
00149 
00150 
00151 
00152 

Generated on Wed May 31 18:19:47 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6