config.h

Go to the documentation of this file.
00001 
00002 /*  $Id: config.h 355 2005-01-11 22:48:55Z 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 #define idcommandconfig 138
00051 #define idlangerrorconfig 139
00052 #define idstatsconfig 140
00053 #define idpictconfig 141
00054 #define idcancoonconfig 142
00055 #define idlangdialogconfig 143
00056 
00057 
00058 #define typeunknown '\?\?\?\?'
00059 
00060 
00061 typedef struct tyconfigrecord {
00062 #ifdef MACVERSION   
00063     boolean flhorizscroll: 1; /*window has horiz scrollbar?*/
00064     
00065     boolean flvertscroll: 1;
00066     
00067     boolean flwindowfloats: 1; /*is it a floating palette window?*/
00068     
00069     boolean flmessagearea: 1; /*allocate space for a message area?*/
00070     
00071     boolean flinsetcontentrect: 1; /*if true we inset by 3 pixels*/
00072     
00073     boolean flnewonlaunch: 1;
00074     
00075     boolean flopenresfile: 1;
00076     
00077     boolean fldialog: 1; /*do a GetNewDialog on creating one of these windows?*/
00078     
00079     boolean flgrowable: 1; /*provide a grow box for window*/
00080     
00081     boolean flcreateonnew: 1;
00082     
00083     boolean flwindoidscrollbars: 1;
00084     
00085     boolean flstoredindatabase: 1;
00086     
00087     boolean flparentwindowhandlessave: 1;
00088     
00089     boolean fleraseonresize: 1;
00090     
00091     boolean fldontconsumefrontclicks: 1; 
00092     
00093     boolean flcolorwindow: 1; 
00094 #endif
00095     
00096 #ifdef WIN95VERSION
00097     short flhorizscroll; /*window has horiz scrollbar?*/
00098     
00099     short flvertscroll;
00100     
00101     short flwindowfloats; /*is it a floating palette window?*/
00102     
00103     short flmessagearea; /*allocate space for a message area?*/
00104     
00105     short flinsetcontentrect; /*if true we inset by 3 pixels*/
00106     
00107     short flnewonlaunch;
00108     
00109     short flopenresfile;
00110     
00111     short fldialog; /*do a GetNewDialog on creating one of these windows?*/
00112     
00113     short flgrowable; /*provide a grow box for window*/
00114     
00115     short flcreateonnew;
00116     
00117     short flwindoidscrollbars;
00118     
00119     short flstoredindatabase;
00120     
00121     short flparentwindowhandlessave;
00122     
00123     short fleraseonresize;
00124     
00125     short fldontconsumefrontclicks; 
00126     
00127     short flcolorwindow; 
00128 #endif
00129 
00130 
00131     short messageareafraction;
00132     
00133     OSType filecreator, filetype;
00134     
00135     short templateresnum; 
00136     
00137     Rect rmin; /*for growable windows, the minimum size allowed*/
00138     
00139     short defaultfont; /*version on disk indexes into a STR# list*/
00140     
00141     short defaultsize;
00142     
00143     short defaultstyle;
00144     
00145     short idbuttonstringlist; /*if 0, no buttons for this window type*/
00146     
00147     Rect defaultwindowrect; /*new windows come up in this spot*/
00148     } tyconfigrecord, *ptrconfigrecord, **hdlconfigrecord;
00149 
00150 
00151 /*global variables*/
00152 
00153 extern tyconfigrecord config; /*load from resource file on initialization*/
00154 
00155 extern short iddefaultconfig; /*the type of window a New command creates - set in main.c*/
00156 
00157 
00158 /*prototypes*/
00159 
00160 extern void loadconfigresource (short, tyconfigrecord *);
00161 
00162 extern boolean saveconfigresource (short, tyconfigrecord *);
00163 
00164 extern boolean getprogramname (bigstring);
00165 
00166 extern boolean getuntitledfilename (bigstring);
00167 
00168 extern boolean getdefaultfilename (bigstring);
00169 
00170 extern boolean getusername (bigstring);
00171 
00172 extern void initconfig (void);
00173 
00174 
00175 
00176 

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