Gnash  0.8.10
aos4_gnash_prefs.h
Go to the documentation of this file.
00001 //
00002 //   Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
00003 //   2011 Free Software Foundation, Inc
00004 //
00005 // This program is free software; you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation; either version 3 of the License, or
00008 // (at your option) any later version.
00009 //
00010 // This program is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with this program; if not, write to the Free Software
00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019 #ifndef __AOS4_GNASH_PREFS_H__
00020 #define __AOS4_GNASH_PREFS_H__
00021 
00022 #define ALL_REACTION_CLASSSES
00023 #include <reaction/reaction_macros.h>
00024 #include <reaction/reaction_prefs.h>
00025 
00026 #include <exec/exec.h>
00027 #include <dos/dos.h>
00028 #include <images/label.h>
00029 #include <intuition/screens.h>
00030 
00031 #include <classes/window.h>
00032 
00033 #include <gadgets/layout.h>
00034 #include <gadgets/clicktab.h>
00035 #include <gadgets/scroller.h>
00036 #include <gadgets/checkbox.h>
00037 #include <gadgets/string.h>
00038 #include <gadgets/integer.h>
00039 #include <gadgets/button.h>
00040 
00041 #include <proto/exec.h>
00042 #include <proto/intuition.h>
00043 
00044 #include <proto/window.h>
00045 #include <proto/layout.h>
00046 #include <proto/space.h>
00047 #include <proto/clicktab.h>
00048 #include <proto/scroller.h>
00049 #include <proto/label.h>
00050 #include <proto/checkbox.h>
00051 #include <proto/string.h>
00052 #include <proto/integer.h>
00053 #include <proto/button.h>
00054 
00055 #include <libraries/gadtools.h>
00056 
00057 #include <stdio.h>
00058 #include <cstdio>
00059 
00060 //#define DEBUG_GUI 1
00061 struct GnashPrefs
00062 {
00063         int verbosity;
00064         int logtofile;
00065         char logfilename[255];
00066         int logparser;
00067         int logswf;
00068         int logmalformedswf;
00069         int logactionscript;
00070         int loglocalconn;
00071         int connectlocalhost;
00072         int connectlocaldomain;
00073         int disablessl;
00074         char sharedobjdir[255];
00075         int dontwriteso;
00076         int onlylocalso;
00077         int disablelocal;
00078         int nettimeout;
00079         int usesound;
00080         int savemedia;
00081         int savedynamic;
00082         char savemediadir[255];
00083         char playerversion[32];
00084         char detectedos[32];
00085         char urlopener[255];
00086         int maxsizemovielib;
00087         int startpaused;
00088 };
00089 
00090 
00091 enum
00092 {
00093     // *** Main ***
00094     OBJ_CLICKTAB_MAIN = -1,
00095     //
00096     // *** page 1 ***
00097     OBJ_SCROLLER,
00098     OBJ_SCROLLER_VALUE,
00099     OBJ_LOGTOFILE,
00100         OBJ_LOGFILENAME_VALUE,
00101     OBJ_LOGPARSER,
00102     OBJ_LOGSWF,
00103     OBJ_LOGMALFORMEDSWF,
00104     OBJ_LOGACTIONSCRIPT,
00105     OBJ_LOGLOCALCONNECTION,
00106     // *** page 2 ***
00107     OBJ_CONNECTLOCALHOST,
00108     OBJ_CONNECTLOCALDOMAIN,
00109     OBJ_DISABLESSL,
00110     OBJ_SHAREDOBJDIR_VALUE,
00111     OBJ_DONTWRITESHAREDOBJ,
00112     OBJ_ONLYLOCALSHAREDOBJ,
00113     OBJ_DISABLELOCALCONNOBJ,
00114     // *** page 3 ***
00115     OBJ_NETWORKTIMEOUT,
00116     OBJ_LABELNETWORKTIMEOUT,
00117     // *** page 4 ***
00118     OBJ_USESOUNDHANDLER,
00119     OBJ_SAVEMEDIASTREAMS,
00120     OBJ_SEVEDYNAMICSTREAMS,
00121         OBJ_MEDIASAVEDIR_VALUE,
00122     // *** page 5 ***
00123     OBJ_PLAYERVERSION_VALUE,
00124     OBJ_OS_VALUE,
00125     OBJ_URLOPENER_VALUE,
00126         OBJ_SIZEMOVIELIB,
00127         OBJ_STARTINPAUSE,
00128     // *** other ***
00129     OBJ_OK,
00130     OBJ_CANCEL,
00131     OBJ_NUM
00132 };
00133 
00134 Object *make_window(struct GnashPrefs *preferences);
00135 
00136 #endif //__AOS4_GNASH_PREFS_H__