2009-06-21 02:29:43 +04:00
|
|
|
/*
|
2012-05-06 21:55:35 +04:00
|
|
|
* Copyright 2009 - 2012 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
2009-06-21 02:29:43 +04:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
2009-06-21 18:42:01 +04:00
|
|
|
#include <string.h>
|
2009-06-21 02:29:43 +04:00
|
|
|
#include <proto/exec.h>
|
|
|
|
#include <proto/intuition.h>
|
2009-06-24 22:54:48 +04:00
|
|
|
#include <proto/utility.h>
|
2011-01-07 02:17:17 +03:00
|
|
|
#ifdef __amigaos4__
|
2010-01-25 15:41:05 +03:00
|
|
|
#include <proto/application.h>
|
2011-01-07 02:17:17 +03:00
|
|
|
#endif
|
2009-06-27 20:15:42 +04:00
|
|
|
#include <libraries/gadtools.h>
|
2009-08-18 19:38:09 +04:00
|
|
|
#include <exec/types.h>
|
|
|
|
#include <intuition/classusr.h>
|
2011-01-07 21:21:01 +03:00
|
|
|
#include <graphics/gfxbase.h>
|
2009-06-21 02:29:43 +04:00
|
|
|
|
|
|
|
#include "amiga/object.h"
|
2010-10-30 15:20:53 +04:00
|
|
|
#include "amiga/font.h"
|
2009-06-21 02:29:43 +04:00
|
|
|
#include "amiga/gui.h"
|
|
|
|
#include "amiga/gui_options.h"
|
|
|
|
#include "utils/messages.h"
|
2012-03-22 13:34:34 +04:00
|
|
|
#include "desktop/options.h"
|
2009-06-21 17:32:50 +04:00
|
|
|
#include "amiga/utf8.h"
|
2009-12-23 16:29:10 +03:00
|
|
|
#include "desktop/searchweb.h"
|
2009-06-21 02:29:43 +04:00
|
|
|
|
|
|
|
#include <proto/window.h>
|
|
|
|
#include <proto/layout.h>
|
|
|
|
#include <proto/button.h>
|
2009-06-21 17:32:50 +04:00
|
|
|
#include <proto/clicktab.h>
|
|
|
|
#include <proto/label.h>
|
|
|
|
#include <proto/string.h>
|
|
|
|
#include <proto/checkbox.h>
|
2009-06-21 18:42:01 +04:00
|
|
|
#include <proto/radiobutton.h>
|
|
|
|
#include <proto/getscreenmode.h>
|
|
|
|
#include <proto/getfile.h>
|
2009-06-22 22:17:41 +04:00
|
|
|
#include <proto/chooser.h>
|
|
|
|
#include <proto/integer.h>
|
2009-06-24 22:54:48 +04:00
|
|
|
#include <proto/getfont.h>
|
2009-06-21 02:29:43 +04:00
|
|
|
#include <classes/window.h>
|
2009-06-21 17:32:50 +04:00
|
|
|
#include <images/label.h>
|
2009-06-21 02:29:43 +04:00
|
|
|
#include <gadgets/button.h>
|
2009-06-21 17:32:50 +04:00
|
|
|
#include <gadgets/clicktab.h>
|
|
|
|
#include <gadgets/string.h>
|
|
|
|
#include <gadgets/checkbox.h>
|
2009-06-21 18:42:01 +04:00
|
|
|
#include <gadgets/radiobutton.h>
|
|
|
|
#include <gadgets/getscreenmode.h>
|
|
|
|
#include <gadgets/getfile.h>
|
2009-06-22 22:17:41 +04:00
|
|
|
#include <gadgets/chooser.h>
|
|
|
|
#include <gadgets/integer.h>
|
2009-06-24 22:54:48 +04:00
|
|
|
#include <gadgets/getfont.h>
|
2009-06-21 02:29:43 +04:00
|
|
|
#include <reaction/reaction.h>
|
|
|
|
#include <reaction/reaction_macros.h>
|
|
|
|
|
2009-08-18 19:38:09 +04:00
|
|
|
enum
|
|
|
|
{
|
2010-02-13 21:03:05 +03:00
|
|
|
GID_OPTS_MAIN = GID_MAIN,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_HOMEPAGE,
|
|
|
|
GID_OPTS_HOMEPAGE_DEFAULT,
|
|
|
|
GID_OPTS_HOMEPAGE_CURRENT,
|
2011-03-05 02:19:24 +03:00
|
|
|
GID_OPTS_HOMEPAGE_BLANK,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_HIDEADS,
|
|
|
|
GID_OPTS_CONTENTLANG,
|
|
|
|
GID_OPTS_FROMLOCALE,
|
|
|
|
GID_OPTS_HISTORY,
|
2012-07-29 01:27:53 +04:00
|
|
|
GID_OPTS_JAVASCRIPT,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_REFERRAL,
|
2012-05-20 21:53:07 +04:00
|
|
|
GID_OPTS_DONOTTRACK,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_FASTSCROLL,
|
|
|
|
GID_OPTS_SCREEN,
|
|
|
|
GID_OPTS_SCREENMODE,
|
|
|
|
GID_OPTS_SCREENNAME,
|
|
|
|
GID_OPTS_THEME,
|
|
|
|
GID_OPTS_PTRTRUE,
|
|
|
|
GID_OPTS_PTROS,
|
|
|
|
GID_OPTS_PROXY,
|
|
|
|
GID_OPTS_PROXY_HOST,
|
|
|
|
GID_OPTS_PROXY_PORT,
|
|
|
|
GID_OPTS_PROXY_USER,
|
|
|
|
GID_OPTS_PROXY_PASS,
|
|
|
|
GID_OPTS_FETCHMAX,
|
|
|
|
GID_OPTS_FETCHHOST,
|
|
|
|
GID_OPTS_FETCHCACHE,
|
|
|
|
GID_OPTS_NATIVEBM,
|
|
|
|
GID_OPTS_SCALEQ,
|
|
|
|
GID_OPTS_ANIMSPEED,
|
|
|
|
GID_OPTS_ANIMDISABLE,
|
2011-05-02 20:18:00 +04:00
|
|
|
GID_OPTS_DPI_Y,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_FONT_SANS,
|
|
|
|
GID_OPTS_FONT_SERIF,
|
|
|
|
GID_OPTS_FONT_MONO,
|
|
|
|
GID_OPTS_FONT_CURSIVE,
|
|
|
|
GID_OPTS_FONT_FANTASY,
|
2010-05-06 14:02:58 +04:00
|
|
|
GID_OPTS_FONT_UNICODE,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_FONT_DEFAULT,
|
|
|
|
GID_OPTS_FONT_SIZE,
|
|
|
|
GID_OPTS_FONT_MINSIZE,
|
|
|
|
GID_OPTS_CACHE_MEM,
|
|
|
|
GID_OPTS_CACHE_DISC,
|
|
|
|
GID_OPTS_OVERWRITE,
|
2009-12-23 16:29:10 +03:00
|
|
|
GID_OPTS_NOTIFY,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_DLDIR,
|
|
|
|
GID_OPTS_TAB_ACTIVE,
|
|
|
|
GID_OPTS_TAB_2,
|
2011-07-03 02:04:51 +04:00
|
|
|
GID_OPTS_TAB_LAST,
|
2009-12-23 16:29:10 +03:00
|
|
|
GID_OPTS_SEARCH_PROV,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_CLIPBOARD,
|
2012-05-20 21:53:07 +04:00
|
|
|
GID_OPTS_CONTEXTMENU,
|
2009-09-29 22:24:19 +04:00
|
|
|
GID_OPTS_STARTUP_NO_WIN,
|
|
|
|
GID_OPTS_CLOSE_NO_QUIT,
|
2009-12-23 16:29:10 +03:00
|
|
|
GID_OPTS_DOCKY,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_MARGIN_TOP,
|
|
|
|
GID_OPTS_MARGIN_LEFT,
|
|
|
|
GID_OPTS_MARGIN_BOTTOM,
|
|
|
|
GID_OPTS_MARGIN_RIGHT,
|
|
|
|
GID_OPTS_EXPORT_SCALE,
|
|
|
|
GID_OPTS_EXPORT_NOIMAGES,
|
|
|
|
GID_OPTS_EXPORT_NOBKG,
|
|
|
|
GID_OPTS_EXPORT_LOOSEN,
|
|
|
|
GID_OPTS_EXPORT_COMPRESS,
|
|
|
|
GID_OPTS_EXPORT_PASSWORD,
|
|
|
|
GID_OPTS_SAVE,
|
|
|
|
GID_OPTS_USE,
|
|
|
|
GID_OPTS_CANCEL,
|
|
|
|
GID_OPTS_LAST
|
|
|
|
};
|
|
|
|
|
2009-06-27 16:54:00 +04:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
GRP_OPTS_HOMEPAGE = GID_OPTS_LAST,
|
|
|
|
GRP_OPTS_CONTENTBLOCKING,
|
|
|
|
GRP_OPTS_CONTENTLANGUAGE,
|
|
|
|
GRP_OPTS_HISTORY,
|
2012-07-29 01:27:53 +04:00
|
|
|
GRP_OPTS_SCRIPTING,
|
2012-05-20 21:53:07 +04:00
|
|
|
GRP_OPTS_PRIVACY,
|
2009-06-27 16:54:00 +04:00
|
|
|
GRP_OPTS_MISC,
|
|
|
|
GRP_OPTS_SCREEN,
|
|
|
|
GRP_OPTS_THEME,
|
|
|
|
GRP_OPTS_MOUSE,
|
|
|
|
GRP_OPTS_PROXY,
|
|
|
|
GRP_OPTS_FETCHING,
|
|
|
|
GRP_OPTS_IMAGES,
|
|
|
|
GRP_OPTS_ANIMS,
|
2011-05-02 20:18:00 +04:00
|
|
|
GRP_OPTS_DPI,
|
2009-06-27 16:54:00 +04:00
|
|
|
GRP_OPTS_FONTFACES,
|
|
|
|
GRP_OPTS_FONTSIZE,
|
|
|
|
GRP_OPTS_MEMCACHE,
|
|
|
|
GRP_OPTS_DISCCACHE,
|
|
|
|
GRP_OPTS_DOWNLOADS,
|
|
|
|
GRP_OPTS_TABS,
|
2009-12-23 16:29:10 +03:00
|
|
|
GRP_OPTS_SEARCH,
|
2009-06-27 16:54:00 +04:00
|
|
|
GRP_OPTS_CLIPBOARD,
|
2009-09-29 22:24:19 +04:00
|
|
|
GRP_OPTS_BEHAVIOUR,
|
2009-06-27 16:54:00 +04:00
|
|
|
GRP_OPTS_MARGINS,
|
|
|
|
GRP_OPTS_SCALING,
|
|
|
|
GRP_OPTS_APPEARANCE,
|
|
|
|
GRP_OPTS_ADVANCED,
|
|
|
|
GRP_OPTS_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
LAB_OPTS_WINTITLE = GRP_OPTS_LAST,
|
|
|
|
LAB_OPTS_RESTART,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAB_OPTS_DAYS,
|
|
|
|
LAB_OPTS_SECS,
|
|
|
|
LAB_OPTS_PT,
|
|
|
|
LAB_OPTS_MB,
|
|
|
|
LAB_OPTS_MM,
|
2011-05-02 20:18:00 +04:00
|
|
|
LAB_OPTS_DPI,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAB_OPTS_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
#define OPTS_LAST LAB_OPTS_LAST
|
|
|
|
#define OPTS_MAX_TABS 9
|
|
|
|
#define OPTS_MAX_SCREEN 4
|
|
|
|
#define OPTS_MAX_PROXY 5
|
|
|
|
#define OPTS_MAX_NATIVEBM 3
|
|
|
|
|
2009-08-18 19:38:09 +04:00
|
|
|
struct ami_gui_opts_window {
|
2010-04-10 02:38:51 +04:00
|
|
|
struct nsObject *node;
|
2009-08-18 19:38:09 +04:00
|
|
|
struct Window *win;
|
2010-02-13 21:03:05 +03:00
|
|
|
Object *objects[GID_OPTS_LAST];
|
2009-08-18 19:38:09 +04:00
|
|
|
};
|
|
|
|
|
2009-06-21 02:29:43 +04:00
|
|
|
static struct ami_gui_opts_window *gow = NULL;
|
|
|
|
|
2009-06-27 16:54:00 +04:00
|
|
|
CONST_STRPTR tabs[OPTS_MAX_TABS];
|
|
|
|
static STRPTR screenopts[OPTS_MAX_SCREEN];
|
|
|
|
CONST_STRPTR proxyopts[OPTS_MAX_PROXY];
|
|
|
|
CONST_STRPTR nativebmopts[OPTS_MAX_NATIVEBM];
|
2009-06-24 22:54:48 +04:00
|
|
|
CONST_STRPTR fontopts[6];
|
2009-06-27 16:54:00 +04:00
|
|
|
CONST_STRPTR gadlab[OPTS_LAST];
|
2009-12-23 16:29:10 +03:00
|
|
|
STRPTR *websearch_list;
|
|
|
|
|
|
|
|
STRPTR *ami_gui_opts_websearch(void);
|
|
|
|
void ami_gui_opts_websearch_free(STRPTR *websearchlist);
|
2009-06-21 17:32:50 +04:00
|
|
|
|
|
|
|
void ami_gui_opts_setup(void)
|
|
|
|
{
|
2009-06-27 20:15:42 +04:00
|
|
|
tabs[0] = (char *)ami_utf8_easy((char *)messages_get("con_general"));
|
2009-06-21 17:32:50 +04:00
|
|
|
tabs[1] = (char *)ami_utf8_easy((char *)messages_get("Display"));
|
2009-06-27 20:15:42 +04:00
|
|
|
tabs[2] = (char *)ami_utf8_easy((char *)messages_get("con_connect"));
|
|
|
|
tabs[3] = (char *)ami_utf8_easy((char *)messages_get("con_rendering"));
|
|
|
|
tabs[4] = (char *)ami_utf8_easy((char *)messages_get("con_fonts"));
|
|
|
|
tabs[5] = (char *)ami_utf8_easy((char *)messages_get("con_cache"));
|
|
|
|
tabs[6] = (char *)ami_utf8_easy((char *)messages_get("con_advanced"));
|
2010-05-03 21:15:03 +04:00
|
|
|
#ifdef WITH_PDF_EXPORT
|
2009-06-21 17:32:50 +04:00
|
|
|
tabs[7] = (char *)ami_utf8_easy((char *)messages_get("Export"));
|
|
|
|
tabs[8] = NULL;
|
2010-05-03 21:15:03 +04:00
|
|
|
#else
|
|
|
|
tabs[7] = NULL;
|
|
|
|
#endif
|
2009-06-21 17:32:50 +04:00
|
|
|
|
2009-06-27 20:15:42 +04:00
|
|
|
screenopts[0] = (char *)ami_utf8_easy((char *)messages_get("ScreenOwn"));
|
|
|
|
screenopts[1] = (char *)ami_utf8_easy((char *)messages_get("ScreenWB"));
|
|
|
|
screenopts[2] = (char *)ami_utf8_easy((char *)messages_get("ScreenPublic"));
|
2009-06-21 18:42:01 +04:00
|
|
|
screenopts[3] = NULL;
|
|
|
|
|
2009-06-27 20:15:42 +04:00
|
|
|
proxyopts[0] = (char *)ami_utf8_easy((char *)messages_get("ProxyNone"));
|
|
|
|
proxyopts[1] = (char *)ami_utf8_easy((char *)messages_get("ProxyNoAuth"));
|
|
|
|
proxyopts[2] = (char *)ami_utf8_easy((char *)messages_get("ProxyBasic"));
|
|
|
|
proxyopts[3] = (char *)ami_utf8_easy((char *)messages_get("ProxyNTLM"));
|
2009-06-22 22:17:41 +04:00
|
|
|
proxyopts[4] = NULL;
|
|
|
|
|
2009-06-24 01:29:44 +04:00
|
|
|
nativebmopts[0] = (char *)ami_utf8_easy((char *)messages_get("None"));
|
|
|
|
nativebmopts[1] = (char *)ami_utf8_easy((char *)messages_get("Scaled"));
|
|
|
|
nativebmopts[2] = (char *)ami_utf8_easy((char *)messages_get("All"));
|
|
|
|
nativebmopts[3] = NULL;
|
|
|
|
|
2009-12-23 16:29:10 +03:00
|
|
|
websearch_list = ami_gui_opts_websearch();
|
|
|
|
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_HOMEPAGE] = (char *)ami_utf8_easy((char *)messages_get("HomePageURL"));
|
|
|
|
gadlab[GID_OPTS_HOMEPAGE_DEFAULT] = (char *)ami_utf8_easy((char *)messages_get("HomePageDefault"));
|
|
|
|
gadlab[GID_OPTS_HOMEPAGE_CURRENT] = (char *)ami_utf8_easy((char *)messages_get("HomePageCurrent"));
|
2011-03-05 02:19:24 +03:00
|
|
|
gadlab[GID_OPTS_HOMEPAGE_BLANK] = (char *)ami_utf8_easy((char *)messages_get("HomePageBlank"));
|
2009-06-21 17:32:50 +04:00
|
|
|
gadlab[GID_OPTS_HIDEADS] = (char *)ami_utf8_easy((char *)messages_get("BlockAds"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_FROMLOCALE] = (char *)ami_utf8_easy((char *)messages_get("LocaleLang"));
|
2009-06-25 22:14:47 +04:00
|
|
|
gadlab[GID_OPTS_HISTORY] = (char *)ami_utf8_easy((char *)messages_get("HistoryAge"));
|
2012-07-29 01:27:53 +04:00
|
|
|
gadlab[GID_OPTS_JAVASCRIPT] = (char *)ami_utf8_easy((char *)messages_get("EnableJS"));
|
2009-06-21 17:32:50 +04:00
|
|
|
gadlab[GID_OPTS_REFERRAL] = (char *)ami_utf8_easy((char *)messages_get("SendReferer"));
|
2012-05-20 21:53:07 +04:00
|
|
|
gadlab[GID_OPTS_DONOTTRACK] = (char *)ami_utf8_easy((char *)messages_get("DoNotTrack"));
|
2009-06-21 17:32:50 +04:00
|
|
|
gadlab[GID_OPTS_FASTSCROLL] = (char *)ami_utf8_easy((char *)messages_get("FastScrolling"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_PTRTRUE] = (char *)ami_utf8_easy((char *)messages_get("TrueColour"));
|
2009-06-21 19:05:25 +04:00
|
|
|
gadlab[GID_OPTS_PTROS] = (char *)ami_utf8_easy((char *)messages_get("OSPointers"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_PROXY] = (char *)ami_utf8_easy((char *)messages_get("ProxyType"));
|
2009-06-22 22:17:41 +04:00
|
|
|
gadlab[GID_OPTS_PROXY_HOST] = (char *)ami_utf8_easy((char *)messages_get("Host"));
|
|
|
|
gadlab[GID_OPTS_PROXY_USER] = (char *)ami_utf8_easy((char *)messages_get("Username"));
|
|
|
|
gadlab[GID_OPTS_PROXY_PASS] = (char *)ami_utf8_easy((char *)messages_get("Password"));
|
|
|
|
gadlab[GID_OPTS_FETCHMAX] = (char *)ami_utf8_easy((char *)messages_get("FetchesMax"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_FETCHHOST] = (char *)ami_utf8_easy((char *)messages_get("FetchesHost"));
|
2009-06-22 22:17:41 +04:00
|
|
|
gadlab[GID_OPTS_FETCHCACHE] = (char *)ami_utf8_easy((char *)messages_get("FetchesCached"));
|
2009-06-24 01:29:44 +04:00
|
|
|
gadlab[GID_OPTS_NATIVEBM] = (char *)ami_utf8_easy((char *)messages_get("CacheNative"));
|
|
|
|
gadlab[GID_OPTS_SCALEQ] = (char *)ami_utf8_easy((char *)messages_get("ScaleQuality"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_ANIMSPEED] = (char *)ami_utf8_easy((char *)messages_get("AnimSpeedLimit"));
|
2011-05-02 20:18:00 +04:00
|
|
|
gadlab[GID_OPTS_DPI_Y] = (char *)ami_utf8_easy((char *)messages_get("ResolutionY"));
|
2009-06-24 01:29:44 +04:00
|
|
|
gadlab[GID_OPTS_ANIMDISABLE] = (char *)ami_utf8_easy((char *)messages_get("AnimDisable"));
|
2009-06-24 22:54:48 +04:00
|
|
|
gadlab[GID_OPTS_FONT_SANS] = (char *)ami_utf8_easy((char *)messages_get("FontSans"));
|
|
|
|
gadlab[GID_OPTS_FONT_SERIF] = (char *)ami_utf8_easy((char *)messages_get("FontSerif"));
|
|
|
|
gadlab[GID_OPTS_FONT_MONO] = (char *)ami_utf8_easy((char *)messages_get("FontMono"));
|
|
|
|
gadlab[GID_OPTS_FONT_CURSIVE] = (char *)ami_utf8_easy((char *)messages_get("FontCursive"));
|
|
|
|
gadlab[GID_OPTS_FONT_FANTASY] = (char *)ami_utf8_easy((char *)messages_get("FontFantasy"));
|
2010-05-06 14:02:58 +04:00
|
|
|
gadlab[GID_OPTS_FONT_UNICODE] = (char *)ami_utf8_easy((char *)messages_get("FontFallback"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_FONT_DEFAULT] = (char *)ami_utf8_easy((char *)messages_get("Default"));
|
|
|
|
gadlab[GID_OPTS_FONT_SIZE] = (char *)ami_utf8_easy((char *)messages_get("Default"));
|
|
|
|
gadlab[GID_OPTS_FONT_MINSIZE] = (char *)ami_utf8_easy((char *)messages_get("Minimum"));
|
2009-06-25 22:14:47 +04:00
|
|
|
gadlab[GID_OPTS_CACHE_MEM] = (char *)ami_utf8_easy((char *)messages_get("Size"));
|
|
|
|
gadlab[GID_OPTS_CACHE_DISC] = (char *)ami_utf8_easy((char *)messages_get("Duration"));
|
2009-06-26 02:40:20 +04:00
|
|
|
gadlab[GID_OPTS_OVERWRITE] = (char *)ami_utf8_easy((char *)messages_get("ConfirmOverwrite"));
|
2009-12-23 16:29:10 +03:00
|
|
|
gadlab[GID_OPTS_NOTIFY] = (char *)ami_utf8_easy((char *)messages_get("DownloadNotify"));
|
2009-06-26 02:40:20 +04:00
|
|
|
gadlab[GID_OPTS_DLDIR] = (char *)ami_utf8_easy((char *)messages_get("DownloadDir"));
|
|
|
|
gadlab[GID_OPTS_TAB_ACTIVE] = (char *)ami_utf8_easy((char *)messages_get("TabActive"));
|
|
|
|
gadlab[GID_OPTS_TAB_2] = (char *)ami_utf8_easy((char *)messages_get("TabMiddle"));
|
2011-07-03 02:04:51 +04:00
|
|
|
gadlab[GID_OPTS_TAB_LAST] = (char *)ami_utf8_easy((char *)messages_get("TabLast"));
|
2009-12-23 16:29:10 +03:00
|
|
|
gadlab[GID_OPTS_SEARCH_PROV] = (char *)ami_utf8_easy((char *)messages_get("SearchProvider"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_CLIPBOARD] = (char *)ami_utf8_easy((char *)messages_get("ClipboardUTF8"));
|
2012-05-20 21:53:07 +04:00
|
|
|
gadlab[GID_OPTS_CONTEXTMENU] = (char *)ami_utf8_easy((char *)messages_get("ContextMenu"));
|
2009-09-29 22:24:19 +04:00
|
|
|
gadlab[GID_OPTS_STARTUP_NO_WIN] = (char *)ami_utf8_easy((char *)messages_get("OptionNoWindow"));
|
|
|
|
gadlab[GID_OPTS_CLOSE_NO_QUIT] = (char *)ami_utf8_easy((char *)messages_get("OptionNoQuit"));
|
2009-12-23 16:29:10 +03:00
|
|
|
gadlab[GID_OPTS_DOCKY] = (char *)ami_utf8_easy((char *)messages_get("OptionDocky"));
|
2009-06-27 02:01:37 +04:00
|
|
|
gadlab[GID_OPTS_MARGIN_TOP] = (char *)ami_utf8_easy((char *)messages_get("Top"));
|
|
|
|
gadlab[GID_OPTS_MARGIN_LEFT] = (char *)ami_utf8_easy((char *)messages_get("Left"));
|
|
|
|
gadlab[GID_OPTS_MARGIN_RIGHT] = (char *)ami_utf8_easy((char *)messages_get("Right"));
|
|
|
|
gadlab[GID_OPTS_MARGIN_BOTTOM] = (char *)ami_utf8_easy((char *)messages_get("Bottom"));
|
|
|
|
gadlab[GID_OPTS_EXPORT_SCALE] = (char *)ami_utf8_easy((char *)messages_get("Scale"));
|
|
|
|
gadlab[GID_OPTS_EXPORT_NOIMAGES] = (char *)ami_utf8_easy((char *)messages_get("SuppressImages"));
|
|
|
|
gadlab[GID_OPTS_EXPORT_NOBKG] = (char *)ami_utf8_easy((char *)messages_get("RemoveBackground"));
|
|
|
|
gadlab[GID_OPTS_EXPORT_LOOSEN] = (char *)ami_utf8_easy((char *)messages_get("FitPage"));
|
|
|
|
gadlab[GID_OPTS_EXPORT_COMPRESS] = (char *)ami_utf8_easy((char *)messages_get("CompressPDF"));
|
|
|
|
gadlab[GID_OPTS_EXPORT_PASSWORD] = (char *)ami_utf8_easy((char *)messages_get("SetPassword"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GID_OPTS_SAVE] = (char *)ami_utf8_easy((char *)messages_get("SelSave"));
|
2009-06-21 17:32:50 +04:00
|
|
|
gadlab[GID_OPTS_USE] = (char *)ami_utf8_easy((char *)messages_get("Use"));
|
|
|
|
gadlab[GID_OPTS_CANCEL] = (char *)ami_utf8_easy((char *)messages_get("Cancel"));
|
|
|
|
|
2009-06-27 16:54:00 +04:00
|
|
|
gadlab[LAB_OPTS_WINTITLE] = (char *)ami_utf8_easy((char *)messages_get("Preferences"));
|
|
|
|
gadlab[LAB_OPTS_RESTART] = (char *)ami_utf8_easy((char *)messages_get("NeedRestart"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[LAB_OPTS_DAYS] = (char *)ami_utf8_easy((char *)messages_get("Days"));
|
|
|
|
gadlab[LAB_OPTS_SECS] = (char *)ami_utf8_easy((char *)messages_get("AnimSpeedFrames"));
|
|
|
|
gadlab[LAB_OPTS_PT] = (char *)ami_utf8_easy((char *)messages_get("Pt"));
|
|
|
|
gadlab[LAB_OPTS_MM] = (char *)ami_utf8_easy((char *)messages_get("MM"));
|
|
|
|
gadlab[LAB_OPTS_MB] = (char *)ami_utf8_easy((char *)messages_get("MBytes"));
|
2011-05-02 20:18:00 +04:00
|
|
|
gadlab[LAB_OPTS_DPI] = (char *)ami_utf8_easy((char *)messages_get("DPI"));
|
2009-06-27 16:54:00 +04:00
|
|
|
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GRP_OPTS_HOMEPAGE] = (char *)ami_utf8_easy((char *)messages_get("Home"));
|
2009-06-27 16:54:00 +04:00
|
|
|
gadlab[GRP_OPTS_CONTENTBLOCKING] = (char *)ami_utf8_easy((char *)messages_get("ContentBlocking"));
|
|
|
|
gadlab[GRP_OPTS_CONTENTLANGUAGE] = (char *)ami_utf8_easy((char *)messages_get("ContentLanguage"));
|
|
|
|
gadlab[GRP_OPTS_HISTORY] = (char *)ami_utf8_easy((char *)messages_get("History"));
|
2012-07-29 01:27:53 +04:00
|
|
|
gadlab[GRP_OPTS_SCRIPTING] = (char *)ami_utf8_easy((char *)messages_get("Scripting"));
|
2009-06-27 16:54:00 +04:00
|
|
|
gadlab[GRP_OPTS_MISC] = (char *)ami_utf8_easy((char *)messages_get("Miscellaneous"));
|
|
|
|
gadlab[GRP_OPTS_SCREEN] = (char *)ami_utf8_easy((char *)messages_get("Screen"));
|
|
|
|
gadlab[GRP_OPTS_THEME] = (char *)ami_utf8_easy((char *)messages_get("Theme"));
|
|
|
|
gadlab[GRP_OPTS_MOUSE] = (char *)ami_utf8_easy((char *)messages_get("MousePointers"));
|
|
|
|
gadlab[GRP_OPTS_PROXY] = (char *)ami_utf8_easy((char *)messages_get("Proxy"));
|
|
|
|
gadlab[GRP_OPTS_FETCHING] = (char *)ami_utf8_easy((char *)messages_get("Fetching"));
|
|
|
|
gadlab[GRP_OPTS_IMAGES] = (char *)ami_utf8_easy((char *)messages_get("Images"));
|
|
|
|
gadlab[GRP_OPTS_ANIMS] = (char *)ami_utf8_easy((char *)messages_get("Animations"));
|
2011-05-02 20:18:00 +04:00
|
|
|
gadlab[GRP_OPTS_DPI] = (char *)ami_utf8_easy((char *)messages_get("Resolution"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GRP_OPTS_FONTFACES] = (char *)ami_utf8_easy((char *)messages_get("FontFamilies"));
|
2009-06-27 16:54:00 +04:00
|
|
|
gadlab[GRP_OPTS_FONTSIZE] = (char *)ami_utf8_easy((char *)messages_get("FontSize"));
|
|
|
|
gadlab[GRP_OPTS_MEMCACHE] = (char *)ami_utf8_easy((char *)messages_get("CacheMemory"));
|
|
|
|
gadlab[GRP_OPTS_DISCCACHE] = (char *)ami_utf8_easy((char *)messages_get("CacheDisc"));
|
|
|
|
gadlab[GRP_OPTS_DOWNLOADS] = (char *)ami_utf8_easy((char *)messages_get("Downloads"));
|
|
|
|
gadlab[GRP_OPTS_TABS] = (char *)ami_utf8_easy((char *)messages_get("TabbedBrowsing"));
|
2009-12-23 16:29:10 +03:00
|
|
|
gadlab[GRP_OPTS_SEARCH] = (char *)ami_utf8_easy((char *)messages_get("SearchWeb"));
|
2009-06-27 16:54:00 +04:00
|
|
|
gadlab[GRP_OPTS_CLIPBOARD] = (char *)ami_utf8_easy((char *)messages_get("Clipboard"));
|
2012-05-20 21:53:07 +04:00
|
|
|
gadlab[GRP_OPTS_PRIVACY] = (char *)ami_utf8_easy((char *)messages_get("Privacy"));
|
2009-09-29 22:24:19 +04:00
|
|
|
gadlab[GRP_OPTS_BEHAVIOUR] = (char *)ami_utf8_easy((char *)messages_get("Behaviour"));
|
2009-06-27 16:54:00 +04:00
|
|
|
gadlab[GRP_OPTS_MARGINS] = (char *)ami_utf8_easy((char *)messages_get("Margins"));
|
|
|
|
gadlab[GRP_OPTS_SCALING] = (char *)ami_utf8_easy((char *)messages_get("Scaling"));
|
|
|
|
gadlab[GRP_OPTS_APPEARANCE] = (char *)ami_utf8_easy((char *)messages_get("Appearance"));
|
2009-06-27 20:15:42 +04:00
|
|
|
gadlab[GRP_OPTS_ADVANCED] = (char *)ami_utf8_easy((char *)messages_get("con_advanced"));
|
2009-06-24 22:54:48 +04:00
|
|
|
|
|
|
|
fontopts[0] = gadlab[GID_OPTS_FONT_SANS];
|
|
|
|
fontopts[1] = gadlab[GID_OPTS_FONT_SERIF];
|
|
|
|
fontopts[2] = gadlab[GID_OPTS_FONT_MONO];
|
|
|
|
fontopts[3] = gadlab[GID_OPTS_FONT_CURSIVE];
|
|
|
|
fontopts[4] = gadlab[GID_OPTS_FONT_FANTASY];
|
|
|
|
fontopts[5] = NULL;
|
2009-06-27 16:54:00 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
void ami_gui_opts_free(void)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for(i = 0; i++; i < OPTS_LAST)
|
|
|
|
if(gadlab[i]) FreeVec((APTR)gadlab[i]);
|
|
|
|
|
|
|
|
for(i = 0; i++; i < OPTS_MAX_TABS)
|
|
|
|
if(tabs[i]) FreeVec((APTR)tabs[i]);
|
|
|
|
|
|
|
|
for(i = 0; i++; i < OPTS_MAX_SCREEN)
|
|
|
|
if(screenopts[i]) FreeVec((APTR)screenopts[i]);
|
|
|
|
|
|
|
|
for(i = 0; i++; i < OPTS_MAX_PROXY)
|
|
|
|
if(proxyopts[i]) FreeVec((APTR)proxyopts[i]);
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2009-06-27 16:54:00 +04:00
|
|
|
for(i = 0; i++; i < OPTS_MAX_NATIVEBM)
|
|
|
|
if(nativebmopts[i]) FreeVec((APTR)nativebmopts[i]);
|
2009-12-23 16:29:10 +03:00
|
|
|
|
|
|
|
ami_gui_opts_websearch_free(websearch_list);
|
2009-06-21 17:32:50 +04:00
|
|
|
}
|
|
|
|
|
2009-06-21 02:29:43 +04:00
|
|
|
void ami_gui_opts_open(void)
|
|
|
|
{
|
2009-06-21 18:42:01 +04:00
|
|
|
uint16 screenoptsselected;
|
|
|
|
ULONG screenmodeid = 0;
|
2009-06-22 22:17:41 +04:00
|
|
|
ULONG proxytype = 0;
|
2009-06-21 18:42:01 +04:00
|
|
|
BOOL screenmodedisabled = FALSE, screennamedisabled = FALSE;
|
2009-06-22 22:17:41 +04:00
|
|
|
BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE;
|
2011-09-11 18:53:33 +04:00
|
|
|
BOOL disableanims, animspeeddisabled = FALSE, acceptlangdisabled = FALSE;
|
2012-03-22 13:34:34 +04:00
|
|
|
BOOL scaleselected = nsoption_bool(scale_quality), scaledisabled = FALSE;
|
2010-01-25 15:41:05 +03:00
|
|
|
BOOL download_notify_disabled = FALSE;
|
2009-06-24 01:29:44 +04:00
|
|
|
char animspeed[10];
|
2010-05-06 14:02:58 +04:00
|
|
|
struct TextAttr fontsans, fontserif, fontmono, fontcursive, fontfantasy, fontunicode;
|
2009-06-21 18:42:01 +04:00
|
|
|
|
2011-09-13 20:56:59 +04:00
|
|
|
if(gow && gow->win)
|
|
|
|
{
|
|
|
|
WindowToFront(gow->win);
|
|
|
|
ActivateWindow(gow->win);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
if(nsoption_charp(use_pubscreen))
|
2009-06-21 18:42:01 +04:00
|
|
|
{
|
2012-03-22 13:34:34 +04:00
|
|
|
if(strcmp(nsoption_charp(use_pubscreen),"Workbench") == 0)
|
2009-06-21 18:42:01 +04:00
|
|
|
{
|
|
|
|
screenoptsselected = 1;
|
|
|
|
screennamedisabled = TRUE;
|
|
|
|
screenmodedisabled = TRUE;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
screenoptsselected = 2;
|
|
|
|
screenmodedisabled = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
screenoptsselected = 0;
|
|
|
|
screennamedisabled = TRUE;
|
|
|
|
}
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
if((nsoption_charp(modeid)) && (strncmp(nsoption_charp(modeid),"0x",2) == 0))
|
2009-06-21 18:42:01 +04:00
|
|
|
{
|
2012-03-22 13:34:34 +04:00
|
|
|
screenmodeid = strtoul(nsoption_charp(modeid),NULL,0);
|
2009-06-21 18:42:01 +04:00
|
|
|
}
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
if(nsoption_bool(http_proxy))
|
2009-06-22 22:17:41 +04:00
|
|
|
{
|
2012-03-22 13:34:34 +04:00
|
|
|
proxytype = nsoption_int(http_proxy_auth) + 1;
|
|
|
|
switch(nsoption_int(http_proxy_auth))
|
2009-06-22 22:17:41 +04:00
|
|
|
{
|
|
|
|
case OPTION_HTTP_PROXY_AUTH_BASIC:
|
|
|
|
case OPTION_HTTP_PROXY_AUTH_NTLM:
|
|
|
|
proxyauthdisabled = FALSE;
|
|
|
|
case OPTION_HTTP_PROXY_AUTH_NONE:
|
|
|
|
proxyhostdisabled = FALSE;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
sprintf(animspeed,"%.2f",(float)(nsoption_int(minimum_gif_delay)/100.0));
|
2009-06-24 01:29:44 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
if(nsoption_bool(animate_images))
|
2009-06-26 01:36:54 +04:00
|
|
|
{
|
|
|
|
disableanims = FALSE;
|
|
|
|
animspeeddisabled = FALSE;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
disableanims = TRUE;
|
|
|
|
animspeeddisabled = TRUE;
|
|
|
|
}
|
2009-06-24 01:29:44 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
if(nsoption_bool(accept_lang_locale))
|
2011-09-11 18:53:33 +04:00
|
|
|
acceptlangdisabled = TRUE;
|
|
|
|
else
|
|
|
|
acceptlangdisabled = FALSE;
|
|
|
|
|
2011-01-07 21:21:01 +03:00
|
|
|
if(GfxBase->LibNode.lib_Version < 53)
|
2009-07-12 22:10:14 +04:00
|
|
|
{
|
|
|
|
scaledisabled = TRUE;
|
|
|
|
scaleselected = FALSE;
|
|
|
|
}
|
|
|
|
|
2010-01-25 15:41:05 +03:00
|
|
|
if(ApplicationBase->lib_Version < 53)
|
|
|
|
{
|
|
|
|
download_notify_disabled = TRUE;
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_bool(download_notify, FALSE);
|
2010-01-25 15:41:05 +03:00
|
|
|
}
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
fontsans.ta_Name = ASPrintf("%s.font", nsoption_charp(font_sans));
|
|
|
|
fontserif.ta_Name = ASPrintf("%s.font", nsoption_charp(font_serif));
|
|
|
|
fontmono.ta_Name = ASPrintf("%s.font", nsoption_charp(font_mono));
|
|
|
|
fontcursive.ta_Name = ASPrintf("%s.font", nsoption_charp(font_cursive));
|
|
|
|
fontfantasy.ta_Name = ASPrintf("%s.font", nsoption_charp(font_fantasy));
|
|
|
|
fontunicode.ta_Name = ASPrintf("%s.font", nsoption_charp(font_unicode));
|
2009-06-24 22:54:48 +04:00
|
|
|
|
|
|
|
fontsans.ta_Style = 0;
|
|
|
|
fontserif.ta_Style = 0;
|
|
|
|
fontmono.ta_Style = 0;
|
|
|
|
fontcursive.ta_Style = 0;
|
|
|
|
fontfantasy.ta_Style = 0;
|
2010-05-06 14:02:58 +04:00
|
|
|
fontunicode.ta_Style = 0;
|
2009-06-24 22:54:48 +04:00
|
|
|
|
|
|
|
fontsans.ta_YSize = 0;
|
|
|
|
fontserif.ta_YSize = 0;
|
|
|
|
fontmono.ta_YSize = 0;
|
|
|
|
fontcursive.ta_YSize = 0;
|
|
|
|
fontfantasy.ta_YSize = 0;
|
2010-05-06 14:02:58 +04:00
|
|
|
fontunicode.ta_YSize = 0;
|
2009-06-24 22:54:48 +04:00
|
|
|
|
|
|
|
fontsans.ta_Flags = 0;
|
|
|
|
fontserif.ta_Flags = 0;
|
|
|
|
fontmono.ta_Flags = 0;
|
|
|
|
fontcursive.ta_Flags = 0;
|
|
|
|
fontfantasy.ta_Flags = 0;
|
2010-05-06 14:02:58 +04:00
|
|
|
fontunicode.ta_Flags = 0;
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2009-06-21 02:29:43 +04:00
|
|
|
if(!gow)
|
|
|
|
{
|
2009-06-21 17:32:50 +04:00
|
|
|
ami_gui_opts_setup();
|
|
|
|
|
2009-06-21 02:29:43 +04:00
|
|
|
gow = AllocVec(sizeof(struct ami_gui_opts_window),MEMF_CLEAR | MEMF_PRIVATE);
|
|
|
|
|
|
|
|
gow->objects[OID_MAIN] = WindowObject,
|
|
|
|
WA_ScreenTitle,nsscreentitle,
|
2009-06-27 16:54:00 +04:00
|
|
|
WA_Title, gadlab[LAB_OPTS_WINTITLE],
|
2009-06-21 02:29:43 +04:00
|
|
|
WA_Activate, TRUE,
|
|
|
|
WA_DepthGadget, TRUE,
|
|
|
|
WA_DragBar, TRUE,
|
2011-03-05 02:19:24 +03:00
|
|
|
WA_CloseGadget, TRUE,
|
2009-06-21 02:29:43 +04:00
|
|
|
WA_SizeGadget, FALSE,
|
|
|
|
WA_CustomScreen,scrn,
|
|
|
|
WINDOW_SharedPort,sport,
|
|
|
|
WINDOW_UserData,gow,
|
|
|
|
WINDOW_IconifyGadget, FALSE,
|
|
|
|
WINDOW_Position, WPOS_CENTERSCREEN,
|
2011-03-05 02:19:24 +03:00
|
|
|
WA_IDCMP, IDCMP_GADGETUP | IDCMP_CLOSEWINDOW,
|
2010-02-13 21:03:05 +03:00
|
|
|
WINDOW_ParentGroup, gow->objects[GID_OPTS_MAIN] = VGroupObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
LAYOUT_AddChild, ClickTabObject,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, tabs,
|
|
|
|
CLICKTAB_PageGroup, PageObject,
|
|
|
|
/*
|
|
|
|
** General
|
|
|
|
*/
|
|
|
|
PAGE_Add, LayoutObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_HOMEPAGE],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HOMEPAGE] = StringObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID, GID_OPTS_HOMEPAGE,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
STRINGA_TextVal, nsoption_charp(homepage_url),
|
2009-06-21 17:32:50 +04:00
|
|
|
STRINGA_BufferPos,0,
|
|
|
|
StringEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_HOMEPAGE],
|
|
|
|
LabelEnd,
|
|
|
|
LAYOUT_AddChild,HGroupObject,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HOMEPAGE_DEFAULT] = ButtonObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID,GID_OPTS_HOMEPAGE_DEFAULT,
|
|
|
|
GA_Text,gadlab[GID_OPTS_HOMEPAGE_DEFAULT],
|
|
|
|
GA_RelVerify,TRUE,
|
|
|
|
ButtonEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HOMEPAGE_CURRENT] = ButtonObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID,GID_OPTS_HOMEPAGE_CURRENT,
|
|
|
|
GA_Text,gadlab[GID_OPTS_HOMEPAGE_CURRENT],
|
|
|
|
GA_RelVerify,TRUE,
|
|
|
|
ButtonEnd,
|
2011-03-05 02:19:24 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HOMEPAGE_BLANK] = ButtonObject,
|
|
|
|
GA_ID,GID_OPTS_HOMEPAGE_BLANK,
|
|
|
|
GA_Text,gadlab[GID_OPTS_HOMEPAGE_BLANK],
|
|
|
|
GA_RelVerify,TRUE,
|
|
|
|
ButtonEnd,
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd,
|
|
|
|
LayoutEnd, //homepage
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
LAYOUT_AddChild,HGroupObject,
|
|
|
|
LAYOUT_AddChild, VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_CONTENTBLOCKING],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HIDEADS] = CheckBoxObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID, GID_OPTS_HIDEADS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_HIDEADS],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(block_ads),
|
2009-06-21 17:32:50 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // content blocking
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_CONTENTLANGUAGE],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CONTENTLANG] = StringObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID, GID_OPTS_CONTENTLANG,
|
|
|
|
GA_RelVerify, TRUE,
|
2011-09-11 18:53:33 +04:00
|
|
|
GA_Disabled, acceptlangdisabled,
|
2012-03-22 13:34:34 +04:00
|
|
|
STRINGA_TextVal, nsoption_charp(accept_language),
|
2009-06-21 17:32:50 +04:00
|
|
|
STRINGA_BufferPos,0,
|
|
|
|
StringEnd,
|
2011-09-11 18:53:33 +04:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FROMLOCALE] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_FROMLOCALE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_FROMLOCALE],
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(accept_lang_locale),
|
2009-06-21 17:32:50 +04:00
|
|
|
ButtonEnd,
|
|
|
|
// CHILD_WeightedWidth, 0,
|
|
|
|
LayoutEnd, // content language
|
|
|
|
LayoutEnd, // content
|
2012-07-29 01:27:53 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_AddChild, VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_HISTORY],
|
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HISTORY] = IntegerObject,
|
|
|
|
GA_ID, GID_OPTS_HISTORY,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
INTEGER_Number, nsoption_int(expire_url),
|
|
|
|
INTEGER_Minimum, 0,
|
|
|
|
INTEGER_Maximum, 366,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_DAYS],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-27 20:15:42 +04:00
|
|
|
CHILD_WeightedWidth, 0,
|
2012-07-29 01:27:53 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_HISTORY],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // history
|
2012-07-29 01:32:32 +04:00
|
|
|
#if defined(WITH_JS) || defined(WITH_MOZJS)
|
2012-07-29 01:27:53 +04:00
|
|
|
LAYOUT_AddChild, VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_SCRIPTING],
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_JAVASCRIPT] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_JAVASCRIPT,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_JAVASCRIPT],
|
|
|
|
GA_Selected, nsoption_bool(enable_javascript),
|
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // scripting
|
|
|
|
#endif
|
|
|
|
LayoutEnd,
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2012-05-20 21:53:07 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_PRIVACY],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_REFERRAL] = CheckBoxObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID, GID_OPTS_REFERRAL,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_REFERRAL],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(send_referer),
|
2009-06-21 17:32:50 +04:00
|
|
|
CheckBoxEnd,
|
2012-05-20 21:53:07 +04:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DONOTTRACK] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_DONOTTRACK,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_RelVerify, TRUE,
|
2012-05-20 21:53:07 +04:00
|
|
|
GA_Text, gadlab[GID_OPTS_DONOTTRACK],
|
|
|
|
GA_Selected, nsoption_bool(do_not_track),
|
2009-06-21 17:32:50 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // misc
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd, // page vgroup
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
PageEnd, // pageadd
|
|
|
|
/*
|
|
|
|
** Display
|
|
|
|
*/
|
|
|
|
PAGE_Add, LayoutObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
2009-06-21 18:42:01 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_SCREEN],
|
2009-06-21 18:42:01 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SCREEN] = RadioButtonObject,
|
2009-06-21 18:42:01 +04:00
|
|
|
GA_ID, GID_OPTS_SCREEN,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, screenopts,
|
|
|
|
RADIOBUTTON_Selected, screenoptsselected,
|
|
|
|
RadioButtonEnd,
|
|
|
|
CHILD_WeightedWidth,0,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SCREENMODE] = GetScreenModeObject,
|
2009-06-21 18:42:01 +04:00
|
|
|
GA_ID, GID_OPTS_SCREENMODE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled,screenmodedisabled,
|
|
|
|
GETSCREENMODE_DisplayID,screenmodeid,
|
2009-07-05 22:15:55 +04:00
|
|
|
GETSCREENMODE_MinDepth, 16,
|
2009-06-21 18:42:01 +04:00
|
|
|
GETSCREENMODE_MaxDepth, 32,
|
|
|
|
GetScreenModeEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SCREENNAME] = StringObject,
|
2009-06-21 18:42:01 +04:00
|
|
|
GA_ID, GID_OPTS_SCREENNAME,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled,screennamedisabled,
|
2012-03-22 13:34:34 +04:00
|
|
|
STRINGA_TextVal, nsoption_bool(use_pubscreen),
|
2009-06-21 18:42:01 +04:00
|
|
|
STRINGA_BufferPos,0,
|
|
|
|
StringEnd,
|
|
|
|
LayoutEnd,
|
|
|
|
CHILD_WeightedHeight,0,
|
|
|
|
LayoutEnd,
|
|
|
|
LayoutEnd, // screen
|
2009-06-21 19:05:25 +04:00
|
|
|
CHILD_WeightedHeight,0,
|
2009-06-21 18:42:01 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_THEME],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_THEME] = GetFileObject,
|
2009-06-21 18:42:01 +04:00
|
|
|
GA_ID, GID_OPTS_THEME,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
GETFILE_Drawer, nsoption_charp(theme),
|
2009-06-21 18:42:01 +04:00
|
|
|
GETFILE_DrawersOnly, TRUE,
|
|
|
|
GETFILE_ReadOnly, TRUE,
|
2009-06-22 02:12:52 +04:00
|
|
|
GETFILE_FullFileExpand, FALSE,
|
2009-06-21 18:42:01 +04:00
|
|
|
GetFileEnd,
|
|
|
|
LayoutEnd, // theme
|
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 19:05:25 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_MOUSE],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PTRTRUE] = CheckBoxObject,
|
2009-06-21 19:05:25 +04:00
|
|
|
GA_ID, GID_OPTS_PTRTRUE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_PTRTRUE],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(truecolour_mouse_pointers),
|
2009-06-21 19:05:25 +04:00
|
|
|
CheckBoxEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PTROS] = CheckBoxObject,
|
2009-06-21 19:05:25 +04:00
|
|
|
GA_ID, GID_OPTS_PTROS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_PTROS],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(use_os_pointers),
|
2009-06-21 19:05:25 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // mouse
|
|
|
|
CHILD_WeightedHeight,0,
|
2009-06-24 22:54:48 +04:00
|
|
|
LAYOUT_AddImage, LabelObject,
|
2009-06-27 16:54:00 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_RESTART],
|
2009-06-24 22:54:48 +04:00
|
|
|
LabelEnd,
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd, // page vgroup
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
PageEnd, // pageadd
|
|
|
|
/*
|
|
|
|
** Network
|
|
|
|
*/
|
|
|
|
PAGE_Add, LayoutObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_PROXY],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY] = ChooserObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_PROXY,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
CHOOSER_PopUp, TRUE,
|
|
|
|
CHOOSER_LabelArray, proxyopts,
|
|
|
|
CHOOSER_Selected, proxytype,
|
|
|
|
ChooserEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY],
|
|
|
|
LabelEnd,
|
|
|
|
LAYOUT_AddChild,HGroupObject,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_HOST] = StringObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_PROXY_HOST,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled, proxyhostdisabled,
|
2012-03-22 13:34:34 +04:00
|
|
|
STRINGA_TextVal, nsoption_charp(http_proxy_host),
|
2009-06-22 22:17:41 +04:00
|
|
|
STRINGA_BufferPos,0,
|
|
|
|
StringEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_PORT] = IntegerObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_PROXY_PORT,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled, proxyhostdisabled,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_charp(http_proxy_port),
|
2009-06-22 22:17:41 +04:00
|
|
|
INTEGER_Minimum, 1,
|
|
|
|
INTEGER_Maximum, 65535,
|
|
|
|
INTEGER_Arrows, FALSE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, ":",
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, //host:port group
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY_HOST],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_USER] = StringObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_PROXY_USER,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled, proxyauthdisabled,
|
2012-03-22 13:34:34 +04:00
|
|
|
STRINGA_TextVal, nsoption_charp(http_proxy_auth_user),
|
2009-06-22 22:17:41 +04:00
|
|
|
STRINGA_BufferPos,0,
|
|
|
|
StringEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY_USER],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_PASS] = StringObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_PROXY_PASS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled, proxyauthdisabled,
|
2012-03-22 13:34:34 +04:00
|
|
|
STRINGA_TextVal, nsoption_charp(http_proxy_auth_pass),
|
2009-06-22 22:17:41 +04:00
|
|
|
STRINGA_BufferPos,0,
|
|
|
|
StringEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY_PASS],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // proxy
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_FETCHING],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FETCHMAX] = IntegerObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_FETCHMAX,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(max_fetchers),
|
2009-06-22 22:17:41 +04:00
|
|
|
INTEGER_Minimum, 1,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FETCHMAX],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FETCHHOST] = IntegerObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_FETCHHOST,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(max_fetchers_per_host),
|
2009-06-22 22:17:41 +04:00
|
|
|
INTEGER_Minimum, 1,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FETCHHOST],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FETCHCACHE] = IntegerObject,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_FETCHCACHE,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(max_cached_fetch_handles),
|
2009-06-22 22:17:41 +04:00
|
|
|
INTEGER_Minimum, 1,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FETCHCACHE],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd, // page vgroup
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
PageEnd, // page object
|
|
|
|
/*
|
|
|
|
** Rendering
|
|
|
|
*/
|
|
|
|
PAGE_Add, LayoutObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
2009-06-24 01:29:44 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_IMAGES],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_NATIVEBM] = ChooserObject,
|
2009-06-24 01:29:44 +04:00
|
|
|
GA_ID, GID_OPTS_NATIVEBM,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
CHOOSER_PopUp, TRUE,
|
|
|
|
CHOOSER_LabelArray, nativebmopts,
|
2012-03-22 13:34:34 +04:00
|
|
|
CHOOSER_Selected, nsoption_int(cache_bitmaps),
|
2009-06-24 01:29:44 +04:00
|
|
|
ChooserEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_NATIVEBM],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SCALEQ] = CheckBoxObject,
|
2009-06-24 01:29:44 +04:00
|
|
|
GA_ID, GID_OPTS_SCALEQ,
|
2009-07-12 22:10:14 +04:00
|
|
|
GA_Disabled, scaledisabled,
|
2009-06-24 01:29:44 +04:00
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_SCALEQ],
|
2009-07-12 22:10:14 +04:00
|
|
|
GA_Selected, scaleselected,
|
2009-06-24 01:29:44 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // images
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_ANIMS],
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_ANIMSPEED] = StringObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_ANIMSPEED,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled, animspeeddisabled,
|
|
|
|
STRINGA_HookType, SHK_FLOAT,
|
|
|
|
STRINGA_TextVal, animspeed,
|
|
|
|
STRINGA_BufferPos,0,
|
|
|
|
StringEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_SECS],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-24 01:29:44 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_ANIMSPEED],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_ANIMDISABLE] = CheckBoxObject,
|
2009-06-24 01:29:44 +04:00
|
|
|
GA_ID, GID_OPTS_ANIMDISABLE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_ANIMDISABLE],
|
|
|
|
GA_Selected, disableanims,
|
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, //animations
|
|
|
|
CHILD_WeightedHeight, 0,
|
2011-05-02 20:18:00 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_DPI],
|
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DPI_Y] = IntegerObject,
|
|
|
|
GA_ID, GID_OPTS_DPI_Y,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(amiga_ydpi),
|
2011-05-02 20:18:00 +04:00
|
|
|
INTEGER_Minimum, 60,
|
|
|
|
INTEGER_Maximum, 150,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_DPI],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_DPI_Y],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, //animations
|
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd, // page vgroup
|
2009-06-24 01:29:44 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
PageEnd, // page object
|
|
|
|
/*
|
|
|
|
** Fonts
|
|
|
|
*/
|
|
|
|
PAGE_Add, LayoutObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
2009-06-24 22:54:48 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_FONTFACES],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_SANS] = GetFontObject,
|
2009-06-24 22:54:48 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_SANS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GETFONT_TextAttr, &fontsans,
|
|
|
|
GETFONT_OTagOnly, TRUE,
|
2012-05-05 20:00:14 +04:00
|
|
|
GETFONT_ScalableOnly, TRUE,
|
2009-06-24 22:54:48 +04:00
|
|
|
GetFontEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_SANS],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_SERIF] = GetFontObject,
|
2009-06-24 22:54:48 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_SERIF,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GETFONT_TextAttr, &fontserif,
|
|
|
|
GETFONT_OTagOnly, TRUE,
|
2012-05-05 20:00:14 +04:00
|
|
|
GETFONT_ScalableOnly, TRUE,
|
2009-06-24 22:54:48 +04:00
|
|
|
GetFontEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_SERIF],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_MONO] = GetFontObject,
|
2009-06-24 22:54:48 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_MONO,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GETFONT_TextAttr, &fontmono,
|
|
|
|
GETFONT_OTagOnly, TRUE,
|
2012-05-05 20:00:14 +04:00
|
|
|
GETFONT_ScalableOnly, TRUE,
|
2009-06-24 22:54:48 +04:00
|
|
|
GETFONT_FixedWidthOnly, TRUE,
|
|
|
|
GetFontEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_MONO],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_CURSIVE] = GetFontObject,
|
2009-06-24 22:54:48 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_CURSIVE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GETFONT_TextAttr, &fontcursive,
|
|
|
|
GETFONT_OTagOnly, TRUE,
|
2012-05-05 20:00:14 +04:00
|
|
|
GETFONT_ScalableOnly, TRUE,
|
2009-06-24 22:54:48 +04:00
|
|
|
GetFontEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_CURSIVE],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_FANTASY] = GetFontObject,
|
2009-06-24 22:54:48 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_FANTASY,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GETFONT_TextAttr, &fontfantasy,
|
|
|
|
GETFONT_OTagOnly, TRUE,
|
2012-05-05 20:00:14 +04:00
|
|
|
GETFONT_ScalableOnly, TRUE,
|
2009-06-24 22:54:48 +04:00
|
|
|
GetFontEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_FANTASY],
|
|
|
|
LabelEnd,
|
2010-05-06 14:02:58 +04:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_UNICODE] = GetFontObject,
|
|
|
|
GA_ID, GID_OPTS_FONT_UNICODE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GETFONT_TextAttr, &fontunicode,
|
|
|
|
GETFONT_OTagOnly, TRUE,
|
2012-05-05 20:00:14 +04:00
|
|
|
GETFONT_ScalableOnly, TRUE,
|
2010-05-06 14:02:58 +04:00
|
|
|
GetFontEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_UNICODE],
|
|
|
|
LabelEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_DEFAULT] = ChooserObject,
|
2009-06-24 22:54:48 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_DEFAULT,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
CHOOSER_PopUp, TRUE,
|
|
|
|
CHOOSER_LabelArray, fontopts,
|
2012-03-22 13:34:34 +04:00
|
|
|
CHOOSER_Selected, nsoption_int(font_default) - PLOT_FONT_FAMILY_SANS_SERIF,
|
2009-06-24 22:54:48 +04:00
|
|
|
ChooserEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_DEFAULT],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // font faces
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_FONTSIZE],
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_SIZE] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_SIZE,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(font_size) / 10,
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 1,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_PT],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_SIZE],
|
|
|
|
LabelEnd,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_MINSIZE] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_MINSIZE,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(font_min_size) / 10,
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 1,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_PT],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_MINSIZE],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd, // page vgroup
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
PageEnd, // page object
|
|
|
|
/*
|
|
|
|
** Cache
|
|
|
|
*/
|
|
|
|
PAGE_Add, LayoutObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
2009-06-25 22:14:47 +04:00
|
|
|
LAYOUT_AddChild, VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_MEMCACHE],
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CACHE_MEM] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_CACHE_MEM,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(memory_cache_size) / 1048576,
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 0,
|
|
|
|
INTEGER_Maximum, 2048,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MB],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-25 22:14:47 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_CACHE_MEM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // memory cache
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
LAYOUT_AddChild, VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_DISCCACHE],
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CACHE_DISC] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_CACHE_DISC,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(disc_cache_age),
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 0,
|
|
|
|
INTEGER_Maximum, 366,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_DAYS],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-25 22:14:47 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_CACHE_DISC],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // disc cache
|
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd, // page vgroup
|
2009-06-25 22:14:47 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
PageEnd, // page object
|
|
|
|
/*
|
|
|
|
** Advanced
|
|
|
|
*/
|
|
|
|
PAGE_Add, LayoutObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
2009-06-26 02:40:20 +04:00
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_DOWNLOADS],
|
2009-12-23 16:29:10 +03:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_OVERWRITE] = CheckBoxObject,
|
2011-03-27 01:35:41 +03:00
|
|
|
GA_ID, GID_OPTS_OVERWRITE,
|
2009-12-23 16:29:10 +03:00
|
|
|
GA_RelVerify, TRUE,
|
2011-03-27 01:35:41 +03:00
|
|
|
GA_Disabled, FALSE,
|
2009-12-23 16:29:10 +03:00
|
|
|
GA_Text, gadlab[GID_OPTS_OVERWRITE],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(ask_overwrite),
|
2009-12-23 16:29:10 +03:00
|
|
|
CheckBoxEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_NOTIFY] = CheckBoxObject,
|
2009-12-23 16:29:10 +03:00
|
|
|
GA_ID, GID_OPTS_NOTIFY,
|
|
|
|
GA_RelVerify, TRUE,
|
2010-01-25 15:41:05 +03:00
|
|
|
GA_Disabled, download_notify_disabled,
|
2009-12-23 16:29:10 +03:00
|
|
|
GA_Text, gadlab[GID_OPTS_NOTIFY],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(download_notify),
|
2009-12-23 16:29:10 +03:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DLDIR] = GetFileObject,
|
2009-06-26 02:40:20 +04:00
|
|
|
GA_ID, GID_OPTS_DLDIR,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
GETFILE_Drawer, nsoption_charp(download_dir),
|
2009-06-27 01:10:02 +04:00
|
|
|
GETFILE_DrawersOnly, TRUE,
|
2009-06-26 02:40:20 +04:00
|
|
|
GETFILE_ReadOnly, TRUE,
|
|
|
|
GETFILE_FullFileExpand, FALSE,
|
|
|
|
GetFileEnd,
|
2009-06-27 01:10:02 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_DLDIR],
|
|
|
|
LabelEnd,
|
2009-06-26 02:40:20 +04:00
|
|
|
LayoutEnd, // downloads
|
|
|
|
CHILD_WeightedHeight, 0,
|
2009-09-29 22:24:19 +04:00
|
|
|
LAYOUT_AddChild,HGroupObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_TABS],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_TAB_ACTIVE] = CheckBoxObject,
|
2009-09-29 22:24:19 +04:00
|
|
|
GA_ID, GID_OPTS_TAB_ACTIVE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_TAB_ACTIVE],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, !nsoption_bool(new_tab_active),
|
2011-07-03 02:04:51 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_TAB_LAST] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_TAB_LAST,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_TAB_LAST],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(new_tab_last),
|
2009-09-29 22:24:19 +04:00
|
|
|
CheckBoxEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_TAB_2] = CheckBoxObject,
|
2009-09-29 22:24:19 +04:00
|
|
|
GA_ID, GID_OPTS_TAB_2,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_TAB_2],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(button_2_tab),
|
2009-09-29 22:24:19 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // tabbed browsing
|
2011-09-07 00:49:48 +04:00
|
|
|
|
|
|
|
LAYOUT_AddChild, VGroupObject,
|
2009-09-29 22:24:19 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
2011-09-07 00:49:48 +04:00
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_BEHAVIOUR],
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_STARTUP_NO_WIN] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_STARTUP_NO_WIN,
|
2009-09-29 22:24:19 +04:00
|
|
|
GA_RelVerify, TRUE,
|
2011-09-07 00:49:48 +04:00
|
|
|
GA_Text, gadlab[GID_OPTS_STARTUP_NO_WIN],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(startup_no_window),
|
2011-09-07 00:49:48 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CLOSE_NO_QUIT] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_CLOSE_NO_QUIT,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_CLOSE_NO_QUIT],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(close_no_quit),
|
2011-09-07 00:49:48 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DOCKY] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_DOCKY,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_DOCKY],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, !nsoption_bool(hide_docky_icon),
|
2011-09-07 00:49:48 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // behaviour
|
2011-07-03 02:04:51 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2011-09-07 00:49:48 +04:00
|
|
|
|
2009-09-29 22:24:19 +04:00
|
|
|
LayoutEnd, // hgroup
|
2009-06-26 02:40:20 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2011-03-25 03:34:00 +03:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
2011-03-27 01:35:41 +03:00
|
|
|
LAYOUT_AddChild,HGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_CLIPBOARD],
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CLIPBOARD] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_CLIPBOARD,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_CLIPBOARD],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(utf8_clipboard),
|
2011-03-27 01:35:41 +03:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // clipboard
|
|
|
|
CHILD_WeightedHeight, 0,
|
2011-03-25 03:34:00 +03:00
|
|
|
LAYOUT_AddChild,HGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_SEARCH],
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SEARCH_PROV] = ChooserObject,
|
|
|
|
GA_ID, GID_OPTS_SEARCH_PROV,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
CHOOSER_PopUp, TRUE,
|
|
|
|
CHOOSER_LabelArray, websearch_list,
|
2012-03-22 13:34:34 +04:00
|
|
|
CHOOSER_Selected, nsoption_int(search_provider),
|
2011-03-25 03:34:00 +03:00
|
|
|
CHOOSER_MaxLabels, 40,
|
|
|
|
ChooserEnd,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_SEARCH_PROV],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // search
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
LayoutEnd, // hgroup
|
2009-06-26 02:40:20 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2011-09-07 00:49:48 +04:00
|
|
|
|
2012-05-20 21:53:07 +04:00
|
|
|
LAYOUT_AddChild,HGroupObject,
|
2011-09-07 00:49:48 +04:00
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2012-05-20 21:53:07 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_MISC],
|
2009-06-26 02:40:20 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
2012-05-20 21:53:07 +04:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CONTEXTMENU] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_CONTEXTMENU,
|
2011-09-07 00:49:48 +04:00
|
|
|
GA_RelVerify, TRUE,
|
2012-05-20 21:53:07 +04:00
|
|
|
GA_Text, gadlab[GID_OPTS_CONTEXTMENU],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(context_menu),
|
2011-09-07 00:49:48 +04:00
|
|
|
CheckBoxEnd,
|
2012-05-20 21:53:07 +04:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FASTSCROLL] = CheckBoxObject,
|
|
|
|
GA_ID, GID_OPTS_FASTSCROLL,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_FASTSCROLL],
|
|
|
|
GA_Selected, nsoption_bool(faster_scroll),
|
|
|
|
CheckBoxEnd,
|
2011-09-07 00:49:48 +04:00
|
|
|
LayoutEnd, // context menus
|
2009-06-26 02:40:20 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2011-09-07 00:49:48 +04:00
|
|
|
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd, // page vgroup
|
2009-06-26 02:40:20 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
PageEnd, // page object
|
|
|
|
/*
|
|
|
|
** Export
|
|
|
|
*/
|
2010-04-25 14:31:52 +04:00
|
|
|
#ifdef WITH_PDF_EXPORT
|
2009-06-21 17:32:50 +04:00
|
|
|
PAGE_Add, LayoutObject,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
2009-06-27 02:01:37 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_MARGINS],
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_MARGIN_TOP] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_MARGIN_TOP,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(margin_top),
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 0,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-27 02:01:37 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_MARGIN_TOP],
|
|
|
|
LabelEnd,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_MARGIN_LEFT] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_MARGIN_LEFT,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(margin_left),
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 0,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-27 02:01:37 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_MARGIN_LEFT],
|
|
|
|
LabelEnd,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_MARGIN_BOTTOM] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_MARGIN_BOTTOM,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(margin_bottom),
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 0,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-27 02:01:37 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_MARGIN_BOTTOM],
|
|
|
|
LabelEnd,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_MARGIN_RIGHT] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_MARGIN_RIGHT,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(margin_right),
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 0,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-27 02:01:37 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_MARGIN_RIGHT],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // margins
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
LAYOUT_AddChild, VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_SCALING],
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_AddChild, HGroupObject,
|
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_SCALE] = IntegerObject,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_EXPORT_SCALE,
|
|
|
|
GA_RelVerify, TRUE,
|
2012-03-22 13:34:34 +04:00
|
|
|
INTEGER_Number, nsoption_int(export_scale),
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 0,
|
|
|
|
INTEGER_Maximum, 100,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, "%",
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-27 02:01:37 +04:00
|
|
|
CHILD_Label, LabelObject,
|
|
|
|
LABEL_Text, gadlab[GID_OPTS_EXPORT_SCALE],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // scaling
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_APPEARANCE],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_NOIMAGES] = CheckBoxObject,
|
2009-06-27 02:01:37 +04:00
|
|
|
GA_ID, GID_OPTS_EXPORT_NOIMAGES,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_EXPORT_NOIMAGES],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(suppress_images),
|
2009-06-27 02:01:37 +04:00
|
|
|
CheckBoxEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_NOBKG] = CheckBoxObject,
|
2009-06-27 02:01:37 +04:00
|
|
|
GA_ID, GID_OPTS_EXPORT_NOBKG,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_EXPORT_NOBKG],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(remove_backgrounds),
|
2009-06-27 02:01:37 +04:00
|
|
|
CheckBoxEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_LOOSEN] = CheckBoxObject,
|
2009-06-27 02:01:37 +04:00
|
|
|
GA_ID, GID_OPTS_EXPORT_LOOSEN,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_EXPORT_LOOSEN],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(enable_loosening),
|
2009-06-27 02:01:37 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // appearance
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
LAYOUT_AddChild,VGroupObject,
|
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_ADVANCED],
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_COMPRESS] = CheckBoxObject,
|
2009-06-27 02:01:37 +04:00
|
|
|
GA_ID, GID_OPTS_EXPORT_COMPRESS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_EXPORT_COMPRESS],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(enable_PDF_compression),
|
2009-06-27 02:01:37 +04:00
|
|
|
CheckBoxEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_PASSWORD] = CheckBoxObject,
|
2009-06-27 02:01:37 +04:00
|
|
|
GA_ID, GID_OPTS_EXPORT_PASSWORD,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_EXPORT_PASSWORD],
|
2012-03-22 13:34:34 +04:00
|
|
|
GA_Selected, nsoption_bool(enable_PDF_password),
|
2009-06-27 02:01:37 +04:00
|
|
|
CheckBoxEnd,
|
2010-04-25 14:31:52 +04:00
|
|
|
LayoutEnd, // export
|
2009-06-27 02:01:37 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
LayoutEnd, // page vgroup
|
2009-06-27 02:01:37 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-06-21 17:32:50 +04:00
|
|
|
PageEnd, // page object
|
2010-04-25 14:31:52 +04:00
|
|
|
#endif
|
2009-06-21 17:32:50 +04:00
|
|
|
End, // pagegroup
|
|
|
|
ClickTabEnd,
|
|
|
|
LAYOUT_AddChild, HGroupObject,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SAVE] = ButtonObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID,GID_OPTS_SAVE,
|
|
|
|
GA_Text,gadlab[GID_OPTS_SAVE],
|
|
|
|
GA_RelVerify,TRUE,
|
|
|
|
ButtonEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_USE] = ButtonObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID,GID_OPTS_USE,
|
|
|
|
GA_Text,gadlab[GID_OPTS_USE],
|
|
|
|
GA_RelVerify,TRUE,
|
|
|
|
ButtonEnd,
|
2010-02-13 21:03:05 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CANCEL] = ButtonObject,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID,GID_OPTS_CANCEL,
|
|
|
|
GA_Text,gadlab[GID_OPTS_CANCEL],
|
|
|
|
GA_RelVerify,TRUE,
|
|
|
|
ButtonEnd,
|
|
|
|
EndGroup, // save/use/cancel
|
|
|
|
EndGroup, // main
|
2009-06-21 02:29:43 +04:00
|
|
|
EndWindow;
|
|
|
|
|
|
|
|
gow->win = (struct Window *)RA_OpenWindow(gow->objects[OID_MAIN]);
|
|
|
|
gow->node = AddObject(window_list,AMINS_GUIOPTSWINDOW);
|
|
|
|
gow->node->objstruct = gow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-05-06 21:55:35 +04:00
|
|
|
void ami_gui_opts_use(bool save)
|
2009-06-21 17:32:50 +04:00
|
|
|
{
|
2011-05-02 20:18:00 +04:00
|
|
|
ULONG data, id = 0;
|
2009-06-24 01:29:44 +04:00
|
|
|
float animspeed;
|
2009-06-24 22:54:48 +04:00
|
|
|
struct TextAttr *tattr;
|
|
|
|
char *dot;
|
2012-05-06 21:55:35 +04:00
|
|
|
bool rescan_fonts = false;
|
|
|
|
|
|
|
|
SetWindowPointer(gow->win,
|
|
|
|
WA_BusyPointer, TRUE,
|
|
|
|
WA_PointerDelay, TRUE,
|
|
|
|
TAG_DONE);
|
2009-06-21 17:32:50 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(STRINGA_TextVal,gow->objects[GID_OPTS_HOMEPAGE],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(homepage_url, (char *)strdup((char *)data));
|
2009-06-21 17:32:50 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(STRINGA_TextVal,gow->objects[GID_OPTS_CONTENTLANG],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(accept_language, (char *)strdup((char *)data));
|
2009-06-21 17:32:50 +04:00
|
|
|
|
2011-09-11 18:53:33 +04:00
|
|
|
GetAttr(GA_Selected, gow->objects[GID_OPTS_FROMLOCALE],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(accept_lang_locale, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(accept_lang_locale, false);
|
|
|
|
}
|
2011-09-11 18:53:33 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_HIDEADS],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(block_ads, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(block_ads, false);
|
|
|
|
}
|
2009-06-21 17:32:50 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_HISTORY],(ULONG *)&nsoption_int(expire_url));
|
2009-06-25 22:14:47 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_REFERRAL],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(send_referer, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(send_referer, false);
|
|
|
|
}
|
2009-06-21 17:32:50 +04:00
|
|
|
|
2012-07-29 01:32:32 +04:00
|
|
|
#if defined(WITH_JS) || defined(WITH_MOZJS)
|
2012-07-29 01:27:53 +04:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_JAVASCRIPT],(ULONG *)&data);
|
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(enable_javascript, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(enable_javascript, false);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-05-20 21:53:07 +04:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_DONOTTRACK],(ULONG *)&data);
|
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(do_not_track, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(do_not_track, false);
|
|
|
|
}
|
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_FASTSCROLL],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(faster_scroll, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(faster_scroll, false);
|
|
|
|
}
|
2009-06-21 18:42:01 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(RADIOBUTTON_Selected,gow->objects[GID_OPTS_SCREEN],(ULONG *)&data);
|
2009-06-21 18:42:01 +04:00
|
|
|
switch(data)
|
|
|
|
{
|
|
|
|
case 0:
|
2012-05-01 22:51:05 +04:00
|
|
|
nsoption_set_charp(use_pubscreen, strdup("\0"));
|
2012-03-22 13:34:34 +04:00
|
|
|
break;
|
2009-06-21 18:42:01 +04:00
|
|
|
|
|
|
|
case 1:
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(use_pubscreen, (char *)strdup("Workbench"));
|
|
|
|
break;
|
2009-06-21 18:42:01 +04:00
|
|
|
|
|
|
|
case 2:
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(STRINGA_TextVal,gow->objects[GID_OPTS_SCREENNAME],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(use_pubscreen, (char *)strdup((char *)data));
|
|
|
|
break;
|
2009-06-21 18:42:01 +04:00
|
|
|
}
|
|
|
|
|
2011-05-02 20:18:00 +04:00
|
|
|
GetAttr(GETSCREENMODE_DisplayID, gow->objects[GID_OPTS_SCREENMODE], (ULONG *)&id);
|
|
|
|
if(id)
|
2009-06-28 03:01:51 +04:00
|
|
|
{
|
2012-03-22 13:34:34 +04:00
|
|
|
char *modeid = malloc(20);
|
|
|
|
sprintf(modeid,"0x%lx", id);
|
|
|
|
nsoption_set_charp(modeid, modeid);
|
2009-06-28 03:01:51 +04:00
|
|
|
}
|
2009-06-21 18:42:01 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GETFILE_Drawer,gow->objects[GID_OPTS_THEME],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(theme, (char *)strdup((char *)data));
|
2009-06-21 19:05:25 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_PTRTRUE],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(truecolour_mouse_pointers, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(truecolour_mouse_pointers, false);
|
|
|
|
}
|
2009-06-21 19:05:25 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_PTROS],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(use_os_pointers, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(use_os_pointers, false);
|
|
|
|
}
|
2009-06-22 22:17:41 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_PROXY],(ULONG *)&data);
|
2009-06-22 22:17:41 +04:00
|
|
|
if(data)
|
|
|
|
{
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_bool(http_proxy, true);
|
|
|
|
nsoption_set_int(http_proxy_auth, data - 1);
|
2009-06-22 22:17:41 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_bool(http_proxy, false);
|
2009-06-22 22:17:41 +04:00
|
|
|
}
|
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(STRINGA_TextVal,gow->objects[GID_OPTS_PROXY_HOST],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(http_proxy_host, (char *)strdup((char *)data));
|
2009-06-22 22:17:41 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_PROXY_PORT],(ULONG *)&nsoption_int(http_proxy_port));
|
2009-06-22 22:17:41 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(STRINGA_TextVal,gow->objects[GID_OPTS_PROXY_USER],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(http_proxy_auth_user, (char *)strdup((char *)data));
|
2009-06-22 22:17:41 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(STRINGA_TextVal,gow->objects[GID_OPTS_PROXY_PASS],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(http_proxy_auth_pass, (char *)strdup((char *)data));
|
2009-06-24 01:29:44 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_FETCHMAX],(ULONG *)&nsoption_int(max_fetchers));
|
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_FETCHHOST],(ULONG *)&nsoption_int(max_fetchers_per_host));
|
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_FETCHCACHE],(ULONG *)&nsoption_int(max_cached_fetch_handles));
|
2009-08-18 19:38:09 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_NATIVEBM],(ULONG *)&nsoption_int(cache_bitmaps));
|
2009-06-24 01:29:44 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_SCALEQ],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(scale_quality, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(scale_quality, false);
|
|
|
|
}
|
2009-06-24 01:29:44 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(STRINGA_TextVal,gow->objects[GID_OPTS_ANIMSPEED],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
animspeed = strtof((char *)data, NULL);
|
|
|
|
nsoption_set_int(minimum_gif_delay, (int)(animspeed * 100));
|
2009-06-24 01:29:44 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_ANIMDISABLE],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if(data) {
|
|
|
|
nsoption_set_bool(animate_images, false);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(animate_images, true);
|
|
|
|
}
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_DPI_Y],(ULONG *)&nsoption_int(amiga_ydpi));
|
2011-05-02 20:18:00 +04:00
|
|
|
ami_font_setdevicedpi(id); // id set above
|
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_SANS],(ULONG *)&data);
|
2009-06-24 22:54:48 +04:00
|
|
|
tattr = (struct TextAttr *)data;
|
2012-03-22 13:34:34 +04:00
|
|
|
|
2009-06-24 22:54:48 +04:00
|
|
|
if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0';
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(font_sans, (char *)strdup((char *)tattr->ta_Name));
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_SERIF],(ULONG *)&data);
|
2009-06-24 22:54:48 +04:00
|
|
|
tattr = (struct TextAttr *)data;
|
2012-03-22 13:34:34 +04:00
|
|
|
|
2009-06-24 22:54:48 +04:00
|
|
|
if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0';
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(font_serif, (char *)strdup((char *)tattr->ta_Name));
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_MONO],(ULONG *)&data);
|
2009-06-24 22:54:48 +04:00
|
|
|
tattr = (struct TextAttr *)data;
|
2012-03-22 13:34:34 +04:00
|
|
|
|
2009-06-24 22:54:48 +04:00
|
|
|
if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0';
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(font_mono, (char *)strdup((char *)tattr->ta_Name));
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_CURSIVE],(ULONG *)&data);
|
2009-06-24 22:54:48 +04:00
|
|
|
tattr = (struct TextAttr *)data;
|
2012-03-22 13:34:34 +04:00
|
|
|
|
2009-06-24 22:54:48 +04:00
|
|
|
if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0';
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(font_cursive, (char *)strdup((char *)tattr->ta_Name));
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_FANTASY],(ULONG *)&data);
|
2009-06-24 22:54:48 +04:00
|
|
|
tattr = (struct TextAttr *)data;
|
2012-03-22 13:34:34 +04:00
|
|
|
|
2009-06-24 22:54:48 +04:00
|
|
|
if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0';
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(font_fantasy, (char *)strdup((char *)tattr->ta_Name));
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2010-05-06 14:02:58 +04:00
|
|
|
GetAttr(GETFONT_TextAttr,gow->objects[GID_OPTS_FONT_UNICODE],(ULONG *)&data);
|
|
|
|
tattr = (struct TextAttr *)data;
|
2012-03-22 13:34:34 +04:00
|
|
|
|
2010-05-06 14:02:58 +04:00
|
|
|
if(dot = strrchr(tattr->ta_Name,'.')) *dot = '\0';
|
2012-05-06 21:55:35 +04:00
|
|
|
|
|
|
|
if(strcmp(tattr->ta_Name, nsoption_charp(font_unicode)) != 0) {
|
|
|
|
rescan_fonts = true;
|
|
|
|
}
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(font_unicode, (char *)strdup((char *)tattr->ta_Name));
|
2010-05-06 14:02:58 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_FONT_DEFAULT],(ULONG *)&nsoption_int(font_default));
|
|
|
|
nsoption_set_int(font_default, nsoption_int(font_default) + PLOT_FONT_FAMILY_SANS_SERIF);
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_FONT_SIZE],(ULONG *)&nsoption_int(font_size));
|
|
|
|
nsoption_set_int(font_size, nsoption_int(font_size) * 10);
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_FONT_MINSIZE],(ULONG *)&nsoption_int(font_min_size));
|
|
|
|
nsoption_set_int(font_min_size, nsoption_int(font_min_size) * 10);
|
2009-06-25 22:14:47 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_MEM],(ULONG *)&nsoption_int(memory_cache_size));
|
|
|
|
nsoption_set_int(memory_cache_size, nsoption_int(memory_cache_size) * 1048576);
|
2009-06-25 22:14:47 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_DISC],(ULONG *)&nsoption_int(disc_cache_age));
|
2009-06-25 22:14:47 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_OVERWRITE],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(ask_overwrite, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(ask_overwrite, false);
|
|
|
|
}
|
2009-06-27 01:10:02 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_NOTIFY],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(download_notify, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(download_notify, false);
|
|
|
|
}
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GETFILE_Drawer,gow->objects[GID_OPTS_DLDIR],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
nsoption_set_charp(download_dir, (char *)strdup((char *)data));
|
2009-06-27 01:10:02 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_TAB_ACTIVE],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(new_tab_active, false);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(new_tab_active, true);
|
|
|
|
}
|
2009-06-27 01:10:02 +04:00
|
|
|
|
2011-07-03 02:04:51 +04:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_TAB_LAST],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(new_tab_last, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(new_tab_last, false);
|
|
|
|
}
|
2011-07-03 02:04:51 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_TAB_2],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(button_2_tab, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(button_2_tab, false);
|
|
|
|
}
|
2009-06-27 01:10:02 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_SEARCH_PROV],(ULONG *)&nsoption_int(search_provider));
|
|
|
|
search_web_provider_details(nsoption_int(search_provider));
|
2009-12-23 16:29:10 +03:00
|
|
|
search_web_retrieve_ico(false);
|
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_CLIPBOARD],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(utf8_clipboard, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(utf8_clipboard, false);
|
|
|
|
}
|
2009-06-27 01:10:02 +04:00
|
|
|
|
2012-05-20 21:53:07 +04:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_CONTEXTMENU],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(context_menu, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(context_menu, false);
|
|
|
|
}
|
2009-06-27 01:10:02 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_STARTUP_NO_WIN],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(startup_no_window, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(startup_no_window, false);
|
|
|
|
}
|
2009-09-29 22:24:19 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_CLOSE_NO_QUIT],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(close_no_quit, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(close_no_quit, false);
|
|
|
|
}
|
2009-09-29 22:24:19 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_DOCKY],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(hide_docky_icon, false);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(hide_docky_icon, true);
|
|
|
|
}
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_MARGIN_TOP],(ULONG *)&nsoption_int(margin_top));
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_MARGIN_LEFT],(ULONG *)&nsoption_int(margin_left));
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_MARGIN_BOTTOM],(ULONG *)&nsoption_int(margin_bottom));
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_MARGIN_RIGHT],(ULONG *)&nsoption_int(margin_right));
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_EXPORT_SCALE],(ULONG *)&nsoption_int(export_scale));
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_EXPORT_NOIMAGES],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(suppress_images, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(suppress_images, false);
|
|
|
|
}
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_EXPORT_NOBKG],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(remove_backgrounds, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(remove_backgrounds, false);
|
|
|
|
}
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_EXPORT_LOOSEN],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(enable_loosening, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(enable_loosening, false);
|
|
|
|
}
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_EXPORT_COMPRESS],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(enable_PDF_compression, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(enable_PDF_compression, false);
|
|
|
|
}
|
2009-06-27 02:01:37 +04:00
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_EXPORT_PASSWORD],(ULONG *)&data);
|
2012-03-22 13:34:34 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(enable_PDF_password, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(enable_PDF_password, false);
|
|
|
|
}
|
2012-05-06 21:55:35 +04:00
|
|
|
|
|
|
|
if(rescan_fonts == true) {
|
|
|
|
ami_font_finiscanner();
|
|
|
|
ami_font_initscanner(true, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(save == true) {
|
|
|
|
nsoption_write(current_user_options);
|
|
|
|
ami_font_savescanner(); /* just in case it has changed and been used only */
|
|
|
|
}
|
|
|
|
|
|
|
|
SetWindowPointer(gow->win,
|
|
|
|
WA_Pointer, NULL,
|
|
|
|
TAG_DONE);
|
2009-06-21 17:32:50 +04:00
|
|
|
}
|
|
|
|
|
2009-06-21 02:29:43 +04:00
|
|
|
void ami_gui_opts_close(void)
|
|
|
|
{
|
|
|
|
DisposeObject(gow->objects[OID_MAIN]);
|
|
|
|
DelObject(gow->node);
|
|
|
|
gow = NULL;
|
2009-06-27 16:54:00 +04:00
|
|
|
ami_gui_opts_free();
|
2009-06-21 02:29:43 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOL ami_gui_opts_event(void)
|
|
|
|
{
|
|
|
|
/* return TRUE if window destroyed */
|
2009-06-22 22:17:41 +04:00
|
|
|
ULONG result,data = 0;
|
2009-06-21 02:29:43 +04:00
|
|
|
uint16 code;
|
2009-06-22 02:12:52 +04:00
|
|
|
STRPTR text;
|
2009-06-21 02:29:43 +04:00
|
|
|
|
|
|
|
while((result = RA_HandleInput(gow->objects[OID_MAIN],&code)) != WMHI_LASTMSG)
|
|
|
|
{
|
|
|
|
switch(result & WMHI_CLASSMASK) // class
|
|
|
|
{
|
2011-03-05 02:19:24 +03:00
|
|
|
case WMHI_CLOSEWINDOW:
|
|
|
|
ami_gui_opts_close();
|
|
|
|
return TRUE;
|
|
|
|
break;
|
|
|
|
|
2009-06-21 02:29:43 +04:00
|
|
|
case WMHI_GADGETUP:
|
|
|
|
switch(result & WMHI_GADGETMASK)
|
|
|
|
{
|
2009-06-21 17:32:50 +04:00
|
|
|
case GID_OPTS_SAVE:
|
2012-05-06 21:55:35 +04:00
|
|
|
ami_gui_opts_use(true);
|
2009-06-21 17:32:50 +04:00
|
|
|
ami_gui_opts_close();
|
|
|
|
return TRUE;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_USE:
|
2012-05-06 21:55:35 +04:00
|
|
|
ami_gui_opts_use(false);
|
2009-06-21 17:32:50 +04:00
|
|
|
// fall through
|
|
|
|
|
2009-06-21 02:29:43 +04:00
|
|
|
case GID_OPTS_CANCEL:
|
|
|
|
ami_gui_opts_close();
|
|
|
|
return TRUE;
|
|
|
|
break;
|
2009-06-22 02:12:52 +04:00
|
|
|
|
|
|
|
case GID_OPTS_HOMEPAGE_DEFAULT:
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_HOMEPAGE],
|
2009-06-22 02:12:52 +04:00
|
|
|
gow->win,NULL,STRINGA_TextVal,NETSURF_HOMEPAGE,
|
|
|
|
TAG_DONE);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_HOMEPAGE_CURRENT:
|
2010-02-13 21:03:05 +03:00
|
|
|
if(curbw) RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_HOMEPAGE],
|
2010-03-28 19:51:05 +04:00
|
|
|
gow->win, NULL, STRINGA_TextVal,
|
2011-12-04 18:55:23 +04:00
|
|
|
nsurl_access(hlcache_handle_get_url(curbw->current_content)), TAG_DONE);
|
2009-06-22 02:12:52 +04:00
|
|
|
break;
|
|
|
|
|
2011-03-05 02:19:24 +03:00
|
|
|
case GID_OPTS_HOMEPAGE_BLANK:
|
|
|
|
if(curbw) RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_HOMEPAGE],
|
|
|
|
gow->win, NULL, STRINGA_TextVal,
|
|
|
|
"about:blank", TAG_DONE);
|
|
|
|
break;
|
|
|
|
|
2009-06-22 02:12:52 +04:00
|
|
|
case GID_OPTS_FROMLOCALE:
|
2011-09-11 18:53:33 +04:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_CONTENTLANG],
|
|
|
|
gow->win, NULL, GA_Disabled, code, TAG_DONE);
|
|
|
|
|
|
|
|
if(code && (text = ami_locale_langs()))
|
2009-06-22 02:12:52 +04:00
|
|
|
{
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_CONTENTLANG],
|
2011-09-11 18:53:33 +04:00
|
|
|
gow->win, NULL, STRINGA_TextVal, text, TAG_DONE);
|
2009-06-22 02:12:52 +04:00
|
|
|
FreeVec(text);
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_SCREEN:
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(RADIOBUTTON_Selected,gow->objects[GID_OPTS_SCREEN],(ULONG *)&data);
|
2009-06-22 02:12:52 +04:00
|
|
|
switch(data)
|
|
|
|
{
|
|
|
|
case 0:
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_SCREENMODE],
|
2009-06-22 02:12:52 +04:00
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_SCREENNAME],
|
2009-06-22 02:12:52 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 1:
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_SCREENMODE],
|
2009-06-22 02:12:52 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_SCREENNAME],
|
2009-06-22 02:12:52 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_SCREENMODE],
|
2009-06-22 02:12:52 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_SCREENNAME],
|
2009-06-22 02:12:52 +04:00
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_SCREENMODE:
|
2010-02-13 21:03:05 +03:00
|
|
|
IDoMethod(gow->objects[GID_OPTS_SCREENMODE],
|
2009-06-22 02:12:52 +04:00
|
|
|
GSM_REQUEST,gow->win);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_THEME:
|
2010-02-13 21:03:05 +03:00
|
|
|
IDoMethod(gow->objects[GID_OPTS_THEME],
|
2009-06-22 02:12:52 +04:00
|
|
|
GFILE_REQUEST,gow->win);
|
|
|
|
break;
|
2009-06-22 22:17:41 +04:00
|
|
|
|
|
|
|
case GID_OPTS_PROXY:
|
2010-02-13 21:03:05 +03:00
|
|
|
GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_PROXY],(ULONG *)&data);
|
2009-06-22 22:17:41 +04:00
|
|
|
switch(data)
|
|
|
|
{
|
|
|
|
case 0:
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_HOST],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_PORT],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_USER],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_PASS],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
|
|
|
break;
|
|
|
|
case 1:
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_HOST],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_PORT],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_USER],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_PASS],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
case 3:
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_HOST],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_PORT],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
|
|
|
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_USER],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_PASS],
|
2009-06-22 22:17:41 +04:00
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2009-06-26 01:36:54 +04:00
|
|
|
case GID_OPTS_ANIMDISABLE:
|
2010-02-13 21:03:05 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_ANIMSPEED],
|
2009-06-26 01:36:54 +04:00
|
|
|
gow->win,NULL, GA_Disabled, code, TAG_DONE);
|
|
|
|
break;
|
|
|
|
|
2009-06-24 22:54:48 +04:00
|
|
|
case GID_OPTS_FONT_SANS:
|
2010-02-13 21:03:05 +03:00
|
|
|
IDoMethod(gow->objects[GID_OPTS_FONT_SANS],
|
2009-06-24 22:54:48 +04:00
|
|
|
GFONT_REQUEST,gow->win);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_FONT_SERIF:
|
2010-02-13 21:03:05 +03:00
|
|
|
IDoMethod(gow->objects[GID_OPTS_FONT_SERIF],
|
2009-06-24 22:54:48 +04:00
|
|
|
GFONT_REQUEST,gow->win);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_FONT_MONO:
|
2010-02-13 21:03:05 +03:00
|
|
|
IDoMethod(gow->objects[GID_OPTS_FONT_MONO],
|
2009-06-24 22:54:48 +04:00
|
|
|
GFONT_REQUEST,gow->win);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_FONT_CURSIVE:
|
2010-02-13 21:03:05 +03:00
|
|
|
IDoMethod(gow->objects[GID_OPTS_FONT_CURSIVE],
|
2009-06-24 22:54:48 +04:00
|
|
|
GFONT_REQUEST,gow->win);
|
|
|
|
break;
|
|
|
|
|
|
|
|
case GID_OPTS_FONT_FANTASY:
|
2010-02-13 21:03:05 +03:00
|
|
|
IDoMethod(gow->objects[GID_OPTS_FONT_FANTASY],
|
2009-06-24 22:54:48 +04:00
|
|
|
GFONT_REQUEST,gow->win);
|
|
|
|
break;
|
2009-06-27 01:10:02 +04:00
|
|
|
|
2010-05-06 14:02:58 +04:00
|
|
|
case GID_OPTS_FONT_UNICODE:
|
|
|
|
IDoMethod(gow->objects[GID_OPTS_FONT_UNICODE],
|
|
|
|
GFONT_REQUEST,gow->win);
|
|
|
|
break;
|
|
|
|
|
2009-06-27 01:10:02 +04:00
|
|
|
case GID_OPTS_DLDIR:
|
2010-02-13 21:03:05 +03:00
|
|
|
IDoMethod(gow->objects[GID_OPTS_DLDIR],
|
2009-06-27 01:10:02 +04:00
|
|
|
GFILE_REQUEST,gow->win);
|
|
|
|
break;
|
2009-06-21 02:29:43 +04:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return FALSE;
|
|
|
|
}
|
2009-06-22 02:12:52 +04:00
|
|
|
|
2009-12-23 16:29:10 +03:00
|
|
|
STRPTR *ami_gui_opts_websearch(void)
|
|
|
|
{
|
|
|
|
char buf[300];
|
|
|
|
ULONG ref = 0;
|
|
|
|
STRPTR *websearchlist;
|
|
|
|
|
2009-12-23 16:47:50 +03:00
|
|
|
websearchlist = AllocVec(200, MEMF_CLEAR);
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
if (nsoption_charp(search_engines_file) == NULL) return websearchlist;
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
FILE *f = fopen(nsoption_charp(search_engines_file), "r");
|
2009-12-23 16:47:50 +03:00
|
|
|
if (f == NULL) return websearchlist;
|
2009-12-23 16:29:10 +03:00
|
|
|
|
|
|
|
while (fgets(buf, sizeof(buf), f) != NULL) {
|
|
|
|
if (buf[0] == '\0') continue;
|
|
|
|
buf[strlen(buf)-1] = '\0';
|
|
|
|
websearchlist[ref] = strdup(strtok(buf, "|"));
|
|
|
|
ref++;
|
|
|
|
}
|
|
|
|
fclose(f);
|
|
|
|
websearchlist[ref] = NULL;
|
|
|
|
|
|
|
|
return websearchlist;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ami_gui_opts_websearch_free(STRPTR *websearchlist)
|
|
|
|
{
|
|
|
|
ULONG ref = 0;
|
|
|
|
|
|
|
|
while (websearchlist[ref] != NULL) {
|
|
|
|
free(websearchlist[ref]);
|
|
|
|
ref++;
|
|
|
|
}
|
|
|
|
|
|
|
|
FreeVec(websearchlist);
|
|
|
|
}
|