Gnash  0.8.11dev
aos4_gnash_prefs.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 // 2011 Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 
19 #ifndef __AOS4_GNASH_PREFS_H__
20 #define __AOS4_GNASH_PREFS_H__
21 
22 #define ALL_REACTION_CLASSSES
23 #include <reaction/reaction_macros.h>
24 #include <reaction/reaction_prefs.h>
25 
26 #include <exec/exec.h>
27 #include <dos/dos.h>
28 #include <images/label.h>
29 #include <intuition/screens.h>
30 
31 #include <classes/window.h>
32 
33 #include <gadgets/layout.h>
34 #include <gadgets/clicktab.h>
35 #include <gadgets/scroller.h>
36 #include <gadgets/checkbox.h>
37 #include <gadgets/string.h>
38 #include <gadgets/integer.h>
39 #include <gadgets/button.h>
40 
41 #include <proto/exec.h>
42 #include <proto/intuition.h>
43 
44 #include <proto/window.h>
45 #include <proto/layout.h>
46 #include <proto/space.h>
47 #include <proto/clicktab.h>
48 #include <proto/scroller.h>
49 #include <proto/label.h>
50 #include <proto/checkbox.h>
51 #include <proto/string.h>
52 #include <proto/integer.h>
53 #include <proto/button.h>
54 
55 #include <libraries/gadtools.h>
56 
57 #include <stdio.h>
58 #include <cstdio>
59 
60 //#define DEBUG_GUI 1
61 struct GnashPrefs
62 {
63  int verbosity;
64  int logtofile;
65  char logfilename[255];
66  int logparser;
67  int logswf;
74  char sharedobjdir[255];
79  int usesound;
80  int savemedia;
82  char savemediadir[255];
83  char playerversion[32];
84  char detectedos[32];
85  char urlopener[255];
88 };
89 
90 
91 enum
92 {
93  // *** Main ***
95  //
96  // *** page 1 ***
106  // *** page 2 ***
114  // *** page 3 ***
117  // *** page 4 ***
122  // *** page 5 ***
128  // *** other ***
131  OBJ_NUM
132 };
133 
134 Object *make_window(struct GnashPrefs *preferences);
135 
136 #endif //__AOS4_GNASH_PREFS_H__
End
#define End
Definition: aos4sup.h:61
OBJ_OS_VALUE
@ OBJ_OS_VALUE
Definition: aos4_gnash_prefs.h:124
GnashPrefs::maxsizemovielib
int maxsizemovielib
Definition: aos4_gnash_prefs.h:86
win
Object * win
Definition: aos4_gnash_prefs.cpp:31
OBJ_SAVEMEDIASTREAMS
@ OBJ_SAVEMEDIASTREAMS
Definition: aos4_gnash_prefs.h:119
OBJ_CONNECTLOCALHOST
@ OBJ_CONNECTLOCALHOST
Definition: aos4_gnash_prefs.h:107
AppPort
struct MsgPort * AppPort
Definition: aos4_gnash_prefs.cpp:33
make_window
Object * make_window(struct GnashPrefs *preferences)
Definition: aos4_gnash_prefs.cpp:36
GnashPrefs::logparser
int logparser
Definition: aos4_gnash_prefs.h:66
OBJ
#define OBJ(x)
Definition: aos4_gnash_prefs.cpp:24
OBJ_SCROLLER_VALUE
@ OBJ_SCROLLER_VALUE
Definition: aos4_gnash_prefs.h:98
GnashPrefs::loglocalconn
int loglocalconn
Definition: aos4_gnash_prefs.h:70
OBJ_CONNECTLOCALDOMAIN
@ OBJ_CONNECTLOCALDOMAIN
Definition: aos4_gnash_prefs.h:108
GnashPrefs::savemediadir
char savemediadir[255]
Definition: aos4_gnash_prefs.h:82
OBJ_NETWORKTIMEOUT
@ OBJ_NETWORKTIMEOUT
Definition: aos4_gnash_prefs.h:115
GnashPrefs::detectedos
char detectedos[32]
Definition: aos4_gnash_prefs.h:84
GnashPrefs::verbosity
int verbosity
Definition: aos4_gnash_prefs.h:63
OBJ_SCROLLER
@ OBJ_SCROLLER
Definition: aos4_gnash_prefs.h:97
GnashPrefs::logmalformedswf
int logmalformedswf
Definition: aos4_gnash_prefs.h:68
OBJ_ONLYLOCALSHAREDOBJ
@ OBJ_ONLYLOCALSHAREDOBJ
Definition: aos4_gnash_prefs.h:112
OBJ_NUM
@ OBJ_NUM
Definition: aos4_gnash_prefs.h:131
OBJ_DONTWRITESHAREDOBJ
@ OBJ_DONTWRITESHAREDOBJ
Definition: aos4_gnash_prefs.h:111
make_window
Object * make_window(struct GnashPrefs *preferences)
Definition: aos4_gnash_prefs.cpp:36
GnashPrefs::dontwriteso
int dontwriteso
Definition: aos4_gnash_prefs.h:75
OBJ_OK
@ OBJ_OK
Definition: aos4_gnash_prefs.h:129
OBJ_LOGLOCALCONNECTION
@ OBJ_LOGLOCALCONNECTION
Definition: aos4_gnash_prefs.h:105
OBJ_URLOPENER_VALUE
@ OBJ_URLOPENER_VALUE
Definition: aos4_gnash_prefs.h:125
OBJ_STARTINPAUSE
@ OBJ_STARTINPAUSE
Definition: aos4_gnash_prefs.h:127
OBJ_DISABLESSL
@ OBJ_DISABLESSL
Definition: aos4_gnash_prefs.h:109
OBJ_LOGMALFORMEDSWF
@ OBJ_LOGMALFORMEDSWF
Definition: aos4_gnash_prefs.h:103
GnashPrefs::logfilename
char logfilename[255]
Definition: aos4_gnash_prefs.h:65
GnashPrefs::logswf
int logswf
Definition: aos4_gnash_prefs.h:67
Objects
Object * Objects[OBJ_NUM]
Definition: aos4_gnash_prefs.cpp:23
GnashPrefs::logtofile
int logtofile
Definition: aos4_gnash_prefs.h:64
OBJ_SIZEMOVIELIB
@ OBJ_SIZEMOVIELIB
Definition: aos4_gnash_prefs.h:126
OBJ_SHAREDOBJDIR_VALUE
@ OBJ_SHAREDOBJDIR_VALUE
Definition: aos4_gnash_prefs.h:110
GnashPrefs::nettimeout
int nettimeout
Definition: aos4_gnash_prefs.h:78
OBJ_SEVEDYNAMICSTREAMS
@ OBJ_SEVEDYNAMICSTREAMS
Definition: aos4_gnash_prefs.h:120
GnashPrefs::urlopener
char urlopener[255]
Definition: aos4_gnash_prefs.h:85
GnashPrefs::usesound
int usesound
Definition: aos4_gnash_prefs.h:79
OBJ_CANCEL
@ OBJ_CANCEL
Definition: aos4_gnash_prefs.h:130
GnashPrefs::connectlocalhost
int connectlocalhost
Definition: aos4_gnash_prefs.h:71
GnashPrefs::savemedia
int savemedia
Definition: aos4_gnash_prefs.h:80
GnashPrefs::connectlocaldomain
int connectlocaldomain
Definition: aos4_gnash_prefs.h:72
GnashPrefs::playerversion
char playerversion[32]
Definition: aos4_gnash_prefs.h:83
OBJ_LOGFILENAME_VALUE
@ OBJ_LOGFILENAME_VALUE
Definition: aos4_gnash_prefs.h:100
OBJ_LOGPARSER
@ OBJ_LOGPARSER
Definition: aos4_gnash_prefs.h:101
SPACE
#define SPACE
Definition: aos4_gnash_prefs.cpp:29
OBJ_PLAYERVERSION_VALUE
@ OBJ_PLAYERVERSION_VALUE
Definition: aos4_gnash_prefs.h:123
aos4_gnash_prefs.h
GnashPrefs::savedynamic
int savedynamic
Definition: aos4_gnash_prefs.h:81
OBJ_USESOUNDHANDLER
@ OBJ_USESOUNDHANDLER
Definition: aos4_gnash_prefs.h:118
PageLabels_1
CONST_STRPTR PageLabels_1[]
Definition: aos4_gnash_prefs.cpp:27
OBJ_LOGSWF
@ OBJ_LOGSWF
Definition: aos4_gnash_prefs.h:102
GnashPrefs::disablelocal
int disablelocal
Definition: aos4_gnash_prefs.h:77
OBJ_LABELNETWORKTIMEOUT
@ OBJ_LABELNETWORKTIMEOUT
Definition: aos4_gnash_prefs.h:116
GnashPrefs::logactionscript
int logactionscript
Definition: aos4_gnash_prefs.h:69
OBJ_LOGTOFILE
@ OBJ_LOGTOFILE
Definition: aos4_gnash_prefs.h:99
GnashPrefs::onlylocalso
int onlylocalso
Definition: aos4_gnash_prefs.h:76
OBJ_DISABLELOCALCONNOBJ
@ OBJ_DISABLELOCALCONNOBJ
Definition: aos4_gnash_prefs.h:113
OBJ_LOGACTIONSCRIPT
@ OBJ_LOGACTIONSCRIPT
Definition: aos4_gnash_prefs.h:104
OBJ_MEDIASAVEDIR_VALUE
@ OBJ_MEDIASAVEDIR_VALUE
Definition: aos4_gnash_prefs.h:121
GnashPrefs::disablessl
int disablessl
Definition: aos4_gnash_prefs.h:73
GnashPrefs::sharedobjdir
char sharedobjdir[255]
Definition: aos4_gnash_prefs.h:74
GnashPrefs::startpaused
int startpaused
Definition: aos4_gnash_prefs.h:87
GnashPrefs
Definition: aos4_gnash_prefs.h:62
OBJ_CLICKTAB_MAIN
@ OBJ_CLICKTAB_MAIN
Definition: aos4_gnash_prefs.h:94