frontierstart.c

Go to the documentation of this file.
00001 
00002 /*  $Id: frontierstart.c 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 #include "frontier.h"
00029 #include "standard.h"
00030 
00031 #ifdef MACVERSION
00032     #include "OSXSpecifics.h"
00033     #include "player.h" /*7.0b4: QuickTime Player*/
00034 #endif
00035 
00036 #include "about.h"
00037 #include "frontierconfig.h"
00038 #include "db.h" /*stats*/
00039 #include "file.h" /*6.1b15 AR: filestart*/
00040 #include "shell.h"
00041 #include "lang.h"
00042 #include "langinternal.h"
00043 #include "langexternal.h"
00044 #include "tableverbs.h"
00045 #include "opverbs.h"
00046 #include "scripts.h"
00047 #include "menuverbs.h"
00048 #include "pictverbs.h"
00049 #include "wpverbs.h"
00050 #include "cancoon.h"
00051 #include "command.h"
00052 #ifdef flcomponent
00053     #include "osacomponent.h"
00054 #endif
00055 #ifdef fliowa
00056     #include "iowaverbs.h" /*3/18/92 dmb*/
00057 #endif
00058 #include "frontierstart.h"
00059 
00060 
00061 boolean frontierstart (void) {
00062     
00063     /*
00064     do all initialization and starting up. on failure, exit to shell; only
00065     return to caller on success
00066     
00067     3.0.4b6 dmb: call osacomponentstart from here, after the shell
00068     is more thoroughly initialized.
00069     */
00070     
00071     iddefaultconfig = idcancoonconfig;
00072 //  iddefaultconfig = idscriptconfig;
00073     
00074     if (!filestart ()) /*6.1b16*/
00075         return (false);
00076 
00077     if (!opstart ())
00078         return (false);
00079     
00080     if (!menustart ())
00081         return (false);
00082     
00083     if (!tablestart ())
00084         return (false);
00085     
00086     if (!scriptstart ())
00087         return (false);
00088         
00089     if (!pictstart ())
00090         return (false);
00091     
00092     if (!wpstart ())
00093         return (false);
00094     
00095     #ifdef version42orgreater
00096     
00097     if (!aboutstart ())
00098         return (false);
00099         
00100         #ifdef MACVERSION
00101 
00102 /*
00103         useQDText(0); // set to 1 for Quartz rendering.
00104 */
00105     
00106         if (!playerstart ()) /*7.0b4 PBS: QuickTime Player*/
00107             return (false);
00108     
00109         #endif
00110     
00111     #endif
00112     
00113     if (!cmdstart ())
00114         return (false);
00115     
00116     if (!langdialogstart ())
00117         return (false);
00118     
00119     if (!langerrorstart ())
00120         return (false);
00121     
00122     if (!statsstart ())
00123         return (false); 
00124     
00125     #ifdef iowaRuntime
00126     
00127     if (!langcardstart ())
00128         return (false);
00129 
00130     #endif
00131     
00132     if (!ccstart ())
00133         return (false);
00134     
00135     #ifdef flcomponent
00136     
00137     //#if !TARGET_API_MAC_CARBON
00138     //Code change by Timothy Paustian Saturday, July 8, 2000 9:47:28 PM
00139     //The carbon version just does not play nice with the component manager.
00140     //at some point I have to figure this out.
00141     if (!osacomponentstart ())
00142         ;   // don't quit if this doesn't work
00143     //#endif
00144 
00145     #endif
00146     
00147     if (!shellstart ())
00148         return (false);
00149     
00150     return (true);
00151     } /*frontierstart*/
00152 
00153 
00154 

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