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>
|
2016-04-20 17:54:18 +03:00
|
|
|
#include <stdlib.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 <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>
|
|
|
|
|
2016-04-20 17:54:18 +03:00
|
|
|
#include "utils/nsurl.h"
|
2014-10-16 12:55:01 +04:00
|
|
|
#include "utils/messages.h"
|
|
|
|
#include "utils/nsoption.h"
|
2016-05-30 19:32:57 +03:00
|
|
|
#include "netsurf/browser_window.h"
|
2014-10-16 12:55:01 +04:00
|
|
|
#include "desktop/searchweb.h"
|
2016-05-30 13:01:40 +03:00
|
|
|
#include "netsurf/window.h"
|
2014-10-16 12:55:01 +04:00
|
|
|
|
2014-11-09 22:37:35 +03:00
|
|
|
#include "amiga/file.h"
|
2014-10-16 12:55:01 +04:00
|
|
|
#include "amiga/font.h"
|
2016-01-16 03:00:57 +03:00
|
|
|
#include "amiga/font_bullet.h"
|
2014-10-16 12:55:01 +04:00
|
|
|
#include "amiga/gui.h"
|
|
|
|
#include "amiga/gui_options.h"
|
|
|
|
#include "amiga/help.h"
|
2015-01-26 03:05:01 +03:00
|
|
|
#include "amiga/libs.h"
|
2015-01-20 23:51:52 +03:00
|
|
|
#include "amiga/misc.h"
|
2014-11-09 22:37:35 +03:00
|
|
|
#include "amiga/object.h"
|
2015-09-05 17:37:34 +03:00
|
|
|
#include "amiga/selectmenu.h"
|
2014-10-16 12:55:01 +04:00
|
|
|
#include "amiga/theme.h"
|
|
|
|
#include "amiga/utf8.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,
|
2012-12-10 01:45:12 +04:00
|
|
|
GID_OPTS_WIN_SIMPLE,
|
2009-08-18 19:38:09 +04:00
|
|
|
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,
|
2013-06-08 20:22:22 +04:00
|
|
|
GID_OPTS_PROXY_BYPASS,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_FETCHMAX,
|
|
|
|
GID_OPTS_FETCHHOST,
|
|
|
|
GID_OPTS_FETCHCACHE,
|
|
|
|
GID_OPTS_NATIVEBM,
|
|
|
|
GID_OPTS_SCALEQ,
|
2012-12-10 01:57:58 +04:00
|
|
|
GID_OPTS_DITHERQ,
|
2009-08-18 19:38:09 +04:00
|
|
|
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,
|
|
|
|
GID_OPTS_FONT_DEFAULT,
|
|
|
|
GID_OPTS_FONT_SIZE,
|
|
|
|
GID_OPTS_FONT_MINSIZE,
|
2012-12-10 01:28:32 +04:00
|
|
|
GID_OPTS_FONT_ANTIALIASING,
|
2016-01-28 02:53:27 +03:00
|
|
|
GID_OPTS_FONT_BITMAP,
|
2009-08-18 19:38:09 +04:00
|
|
|
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,
|
2012-12-10 00:29:01 +04:00
|
|
|
GID_OPTS_TAB_ALWAYS,
|
|
|
|
GID_OPTS_TAB_CLOSE,
|
2009-12-23 16:29:10 +03:00
|
|
|
GID_OPTS_SEARCH_PROV,
|
2009-08-18 19:38:09 +04:00
|
|
|
GID_OPTS_CLIPBOARD,
|
2015-09-05 17:37:34 +03:00
|
|
|
GID_OPTS_SELECTMENU,
|
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,
|
2012-12-10 01:45:12 +04:00
|
|
|
GRP_OPTS_WINDOW,
|
2009-06-27 16:54:00 +04:00
|
|
|
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
|
2012-12-10 00:18:47 +04:00
|
|
|
#define OPTS_MAX_TABS 10
|
2009-06-27 16:54:00 +04:00
|
|
|
#define OPTS_MAX_SCREEN 4
|
|
|
|
#define OPTS_MAX_PROXY 5
|
2014-04-05 22:49:02 +04:00
|
|
|
#define OPTS_MAX_NATIVEBM 4
|
2012-12-10 01:57:58 +04:00
|
|
|
#define OPTS_MAX_DITHER 4
|
2009-06-27 16:54:00 +04:00
|
|
|
|
2016-01-27 02:49:24 +03:00
|
|
|
enum {
|
|
|
|
NSA_LIST_CLICKTAB = 0,
|
2016-01-27 03:01:42 +03:00
|
|
|
NSA_LIST_CHOOSER,
|
2016-01-27 02:49:24 +03:00
|
|
|
NSA_LIST_RADIO,
|
|
|
|
};
|
|
|
|
|
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];
|
2015-08-15 16:11:30 +03:00
|
|
|
#ifndef __amigaos4__
|
|
|
|
struct List clicktablist;
|
2016-01-27 03:33:37 +03:00
|
|
|
struct List screenoptslist;
|
2016-01-27 03:07:14 +03:00
|
|
|
struct List proxyoptslist;
|
2016-01-27 03:11:49 +03:00
|
|
|
struct List nativebmoptslist;
|
|
|
|
struct List ditheroptslist;
|
2016-01-27 03:33:37 +03:00
|
|
|
struct List fontoptslist;
|
2015-08-15 16:11:30 +03:00
|
|
|
#endif
|
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];
|
2012-12-10 01:57:58 +04:00
|
|
|
CONST_STRPTR ditheropts[OPTS_MAX_DITHER];
|
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];
|
2014-06-15 17:56:09 +04:00
|
|
|
struct List *websearch_list;
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2016-01-27 02:49:24 +03:00
|
|
|
#ifndef __amigaos4__
|
2016-01-27 02:55:14 +03:00
|
|
|
static void ami_gui_opts_array_to_list(struct List *list, const char *array[], int type)
|
2016-01-27 02:49:24 +03:00
|
|
|
{
|
|
|
|
int i = 0;
|
|
|
|
struct Node *node;
|
|
|
|
|
2016-01-27 02:55:14 +03:00
|
|
|
NewList(list);
|
2016-01-27 02:49:24 +03:00
|
|
|
|
|
|
|
do {
|
2016-01-27 03:01:42 +03:00
|
|
|
switch(type) {
|
|
|
|
case NSA_LIST_CLICKTAB:
|
|
|
|
node = AllocClickTabNode(TNA_Text, array[i], TNA_Number, i, TAG_DONE);
|
|
|
|
break;
|
|
|
|
case NSA_LIST_CHOOSER:
|
|
|
|
node = AllocChooserNode(CNA_Text, array[i], TAG_DONE);
|
|
|
|
break;
|
|
|
|
case NSA_LIST_RADIO:
|
2016-01-27 03:33:37 +03:00
|
|
|
/* Note: RBNA_Labels is RBNA_Label in OS4
|
|
|
|
* Also note: These labels don't work (FIXME) */
|
|
|
|
node = AllocRadioButtonNode(RBNA_Labels, array[i], TAG_DONE);
|
|
|
|
break;
|
2016-01-27 03:01:42 +03:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
2016-01-27 02:55:14 +03:00
|
|
|
AddTail(list, node);
|
2016-01-27 02:49:24 +03:00
|
|
|
i++;
|
2016-01-27 03:01:42 +03:00
|
|
|
} while (array[i] != 0);
|
2016-01-27 02:49:24 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static void ami_gui_opts_free_list(struct List *list, int type)
|
|
|
|
{
|
|
|
|
struct Node *node;
|
|
|
|
struct Node *nnode;
|
|
|
|
|
2016-01-27 02:55:14 +03:00
|
|
|
if(IsListEmpty((struct List *)list)) return;
|
|
|
|
node = GetHead((struct List *)list);
|
2016-01-27 02:49:24 +03:00
|
|
|
|
|
|
|
do {
|
|
|
|
nnode = GetSucc(node);
|
2016-01-27 03:01:42 +03:00
|
|
|
Remove(node);
|
|
|
|
if(node) {
|
|
|
|
switch(type) {
|
|
|
|
case NSA_LIST_CLICKTAB:
|
|
|
|
FreeClickTabNode(node);
|
|
|
|
break;
|
|
|
|
case NSA_LIST_CHOOSER:
|
|
|
|
FreeChooserNode(node);
|
|
|
|
break;
|
|
|
|
case NSA_LIST_RADIO:
|
2016-01-27 03:33:37 +03:00
|
|
|
FreeRadioButtonNode(node);
|
|
|
|
break;
|
2016-01-27 03:01:42 +03:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2016-01-27 02:49:24 +03:00
|
|
|
} while((node = nnode));
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-08-15 16:11:30 +03:00
|
|
|
static void ami_gui_opts_setup(struct ami_gui_opts_window *gow)
|
2009-06-21 17:32:50 +04:00
|
|
|
{
|
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"));
|
2012-12-10 00:18:47 +04:00
|
|
|
tabs[6] = (char *)ami_utf8_easy((char *)messages_get("Tabs"));
|
|
|
|
tabs[7] = (char *)ami_utf8_easy((char *)messages_get("con_advanced"));
|
2010-05-03 21:15:03 +04:00
|
|
|
#ifdef WITH_PDF_EXPORT
|
2012-12-10 00:18:47 +04:00
|
|
|
tabs[8] = (char *)ami_utf8_easy((char *)messages_get("Export"));
|
|
|
|
tabs[9] = NULL;
|
2010-05-03 21:15:03 +04:00
|
|
|
#else
|
2012-12-10 00:18:47 +04:00
|
|
|
tabs[8] = NULL;
|
2010-05-03 21:15:03 +04:00
|
|
|
#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;
|
|
|
|
|
2012-12-10 01:57:58 +04:00
|
|
|
ditheropts[0] = (char *)ami_utf8_easy((char *)messages_get("Low"));
|
|
|
|
ditheropts[1] = (char *)ami_utf8_easy((char *)messages_get("Medium"));
|
|
|
|
ditheropts[2] = (char *)ami_utf8_easy((char *)messages_get("High"));
|
|
|
|
ditheropts[3] = NULL;
|
2016-01-27 03:11:49 +03:00
|
|
|
|
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"));
|
2012-12-10 01:45:12 +04:00
|
|
|
gadlab[GID_OPTS_WIN_SIMPLE] = (char *)ami_utf8_easy((char *)messages_get("SimpleRefresh"));
|
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"));
|
2013-06-08 20:22:22 +04:00
|
|
|
gadlab[GID_OPTS_PROXY_BYPASS] = (char *)ami_utf8_easy((char *)messages_get("ProxyBypass"));
|
2009-06-22 22:17:41 +04:00
|
|
|
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"));
|
2012-12-10 01:57:58 +04:00
|
|
|
gadlab[GID_OPTS_DITHERQ] = (char *)ami_utf8_easy((char *)messages_get("DitherQuality"));
|
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"));
|
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"));
|
2012-12-10 01:28:32 +04:00
|
|
|
gadlab[GID_OPTS_FONT_ANTIALIASING] = (char *)ami_utf8_easy((char *)messages_get("FontAntialiasing"));
|
2016-01-28 02:53:27 +03:00
|
|
|
gadlab[GID_OPTS_FONT_BITMAP] = (char *)ami_utf8_easy((char *)messages_get("FontBitmap"));
|
2009-06-25 22:14:47 +04:00
|
|
|
gadlab[GID_OPTS_CACHE_MEM] = (char *)ami_utf8_easy((char *)messages_get("Size"));
|
2014-05-16 20:26:32 +04:00
|
|
|
gadlab[GID_OPTS_CACHE_DISC] = (char *)ami_utf8_easy((char *)messages_get("Size"));
|
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"));
|
2012-12-10 00:29:01 +04:00
|
|
|
gadlab[GID_OPTS_TAB_ALWAYS] = (char *)ami_utf8_easy((char *)messages_get("TabAlways"));
|
|
|
|
gadlab[GID_OPTS_TAB_CLOSE] = (char *)ami_utf8_easy((char *)messages_get("TabClose"));
|
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"));
|
2015-09-05 17:37:34 +03:00
|
|
|
gadlab[GID_OPTS_SELECTMENU] = (char *)ami_utf8_easy((char *)messages_get("PopupMenu"));
|
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"));
|
2012-12-10 01:45:12 +04:00
|
|
|
gadlab[GRP_OPTS_WINDOW] = (char *)ami_utf8_easy((char *)messages_get("Window"));
|
2009-06-27 16:54:00 +04:00
|
|
|
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;
|
2016-01-27 03:33:37 +03:00
|
|
|
|
|
|
|
#ifndef __amigaos4__
|
|
|
|
ami_gui_opts_array_to_list(&gow->clicktablist, tabs, NSA_LIST_CLICKTAB);
|
|
|
|
ami_gui_opts_array_to_list(&gow->screenoptslist, screenopts, NSA_LIST_RADIO);
|
|
|
|
ami_gui_opts_array_to_list(&gow->proxyoptslist, proxyopts, NSA_LIST_CHOOSER);
|
|
|
|
ami_gui_opts_array_to_list(&gow->nativebmoptslist, nativebmopts, NSA_LIST_CHOOSER);
|
|
|
|
ami_gui_opts_array_to_list(&gow->ditheroptslist, ditheropts, NSA_LIST_CHOOSER);
|
|
|
|
ami_gui_opts_array_to_list(&gow->fontoptslist, fontopts, NSA_LIST_CHOOSER);
|
|
|
|
#endif
|
2009-06-27 16:54:00 +04:00
|
|
|
}
|
|
|
|
|
2015-08-15 16:11:30 +03:00
|
|
|
static void ami_gui_opts_free(struct ami_gui_opts_window *gow)
|
2009-06-27 16:54:00 +04:00
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
2012-11-12 02:49:18 +04:00
|
|
|
for(i = 0; i < OPTS_LAST; i++)
|
2012-11-12 03:05:25 +04:00
|
|
|
if(gadlab[i]) free((APTR)gadlab[i]);
|
2009-06-27 16:54:00 +04:00
|
|
|
|
2012-11-12 02:49:18 +04:00
|
|
|
for(i = 0; i < OPTS_MAX_TABS; i++)
|
2012-11-12 03:05:25 +04:00
|
|
|
if(tabs[i]) free((APTR)tabs[i]);
|
2009-06-27 16:54:00 +04:00
|
|
|
|
2012-11-12 02:49:18 +04:00
|
|
|
for(i = 0; i < OPTS_MAX_SCREEN; i++)
|
2012-11-12 03:05:25 +04:00
|
|
|
if(screenopts[i]) free((APTR)screenopts[i]);
|
2009-06-27 16:54:00 +04:00
|
|
|
|
2012-11-12 02:49:18 +04:00
|
|
|
for(i = 0; i < OPTS_MAX_PROXY; i++)
|
2012-11-12 03:05:25 +04:00
|
|
|
if(proxyopts[i]) free((APTR)proxyopts[i]);
|
2009-06-24 22:54:48 +04:00
|
|
|
|
2012-11-12 02:49:18 +04:00
|
|
|
for(i = 0; i < OPTS_MAX_NATIVEBM; i++)
|
2012-11-12 03:05:25 +04:00
|
|
|
if(nativebmopts[i]) free((APTR)nativebmopts[i]);
|
2009-12-23 16:29:10 +03:00
|
|
|
|
|
|
|
ami_gui_opts_websearch_free(websearch_list);
|
2015-08-15 16:11:30 +03:00
|
|
|
|
|
|
|
#ifndef __amigaos4__
|
2016-01-27 02:49:24 +03:00
|
|
|
ami_gui_opts_free_list(&gow->clicktablist, NSA_LIST_CLICKTAB);
|
2016-01-27 03:33:37 +03:00
|
|
|
ami_gui_opts_free_list(&gow->screenoptslist, NSA_LIST_RADIO);
|
2016-01-27 03:07:14 +03:00
|
|
|
ami_gui_opts_free_list(&gow->proxyoptslist, NSA_LIST_CHOOSER);
|
2016-01-27 03:11:49 +03:00
|
|
|
ami_gui_opts_free_list(&gow->nativebmoptslist, NSA_LIST_CHOOSER);
|
|
|
|
ami_gui_opts_free_list(&gow->ditheroptslist, NSA_LIST_CHOOSER);
|
2016-01-27 03:33:37 +03:00
|
|
|
ami_gui_opts_free_list(&gow->fontoptslist, NSA_LIST_CHOOSER);
|
2015-08-15 16:11:30 +03:00
|
|
|
#endif
|
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;
|
2013-06-08 20:22:22 +04:00
|
|
|
BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE, proxybypassdisabled = FALSE;
|
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;
|
2016-04-28 21:18:06 +03:00
|
|
|
BOOL ditherdisable = TRUE;
|
2016-01-31 20:10:47 +03:00
|
|
|
BOOL download_notify_disabled = FALSE, tab_always_show_disabled = FALSE;
|
2013-10-12 14:52:08 +04:00
|
|
|
BOOL ptr_disable = FALSE;
|
2009-06-24 01:29:44 +04:00
|
|
|
char animspeed[10];
|
2014-03-13 23:37:01 +04:00
|
|
|
char *homepage_url_lc = ami_utf8_easy(nsoption_charp(homepage_url));
|
|
|
|
|
2012-11-09 03:41:14 +04:00
|
|
|
struct TextAttr fontsans, fontserif, fontmono, fontcursive, fontfantasy;
|
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;
|
|
|
|
}
|
|
|
|
|
2016-01-26 22:28:07 +03:00
|
|
|
#ifdef __amigaos4__
|
2013-10-13 14:52:11 +04:00
|
|
|
if(LIB_IS_AT_LEAST((struct Library *)IntuitionBase, 53, 42)) ptr_disable = TRUE;
|
2016-01-26 22:28:07 +03:00
|
|
|
#else
|
|
|
|
ptr_disable = TRUE;
|
|
|
|
#endif
|
|
|
|
|
2013-06-01 02:25:05 +04:00
|
|
|
if(nsoption_charp(pubscreen_name))
|
2009-06-21 18:42:01 +04:00
|
|
|
{
|
2013-06-01 02:25:05 +04:00
|
|
|
if(strcmp(nsoption_charp(pubscreen_name),"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;
|
|
|
|
}
|
|
|
|
|
2013-05-28 19:44:46 +04:00
|
|
|
if((nsoption_charp(screen_modeid)) &&
|
|
|
|
(strncmp(nsoption_charp(screen_modeid),"0x",2) == 0))
|
2009-06-21 18:42:01 +04:00
|
|
|
{
|
2013-05-28 19:44:46 +04:00
|
|
|
screenmodeid = strtoul(nsoption_charp(screen_modeid),NULL,0);
|
2009-06-21 18:42:01 +04:00
|
|
|
}
|
|
|
|
|
2016-01-30 19:35:10 +03:00
|
|
|
if(ami_plot_screen_is_palettemapped() == true) {
|
2014-03-01 18:48:41 +04:00
|
|
|
ditherdisable = FALSE;
|
2016-01-30 19:35:10 +03:00
|
|
|
}
|
2014-03-01 18:48:41 +04:00
|
|
|
|
2013-06-08 20:22:22 +04:00
|
|
|
if(nsoption_bool(http_proxy) == true)
|
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;
|
|
|
|
}
|
2013-06-08 20:22:22 +04:00
|
|
|
} else {
|
|
|
|
proxybypassdisabled = TRUE;
|
2009-06-22 22:17:41 +04:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2015-01-18 21:53:41 +03:00
|
|
|
#ifdef __amigaos4__
|
2010-01-25 15:41:05 +03:00
|
|
|
if(ApplicationBase->lib_Version < 53)
|
2015-01-18 21:53:41 +03:00
|
|
|
#endif
|
2010-01-25 15:41:05 +03:00
|
|
|
{
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2016-01-31 20:10:47 +03:00
|
|
|
if(ClickTabBase->lib_Version < 53) {
|
|
|
|
tab_always_show_disabled = TRUE;
|
|
|
|
}
|
|
|
|
|
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));
|
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;
|
|
|
|
|
|
|
|
fontsans.ta_YSize = 0;
|
|
|
|
fontserif.ta_YSize = 0;
|
|
|
|
fontmono.ta_YSize = 0;
|
|
|
|
fontcursive.ta_YSize = 0;
|
|
|
|
fontfantasy.ta_YSize = 0;
|
|
|
|
|
|
|
|
fontsans.ta_Flags = 0;
|
|
|
|
fontserif.ta_Flags = 0;
|
|
|
|
fontmono.ta_Flags = 0;
|
|
|
|
fontcursive.ta_Flags = 0;
|
|
|
|
fontfantasy.ta_Flags = 0;
|
|
|
|
|
2009-06-21 02:29:43 +04:00
|
|
|
if(!gow)
|
|
|
|
{
|
2015-01-18 21:53:41 +03:00
|
|
|
gow = ami_misc_allocvec_clear(sizeof(struct ami_gui_opts_window), 0);
|
2015-08-15 16:11:30 +03:00
|
|
|
if(gow == NULL) return;
|
|
|
|
|
|
|
|
ami_gui_opts_setup(gow);
|
2009-06-21 02:29:43 +04:00
|
|
|
|
2015-01-26 03:05:01 +03:00
|
|
|
gow->objects[OID_MAIN] = WindowObj,
|
2014-11-16 19:40:41 +03:00
|
|
|
WA_ScreenTitle, ami_gui_get_screen_title(),
|
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,
|
2013-03-20 12:22:03 +04:00
|
|
|
WA_PubScreen,scrn,
|
2009-06-21 02:29:43 +04:00
|
|
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
WINDOW_ParentGroup, gow->objects[GID_OPTS_MAIN] = LayoutVObj,
|
|
|
|
LAYOUT_AddChild, ClickTabObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_RelVerify, TRUE,
|
2015-08-15 16:11:30 +03:00
|
|
|
#ifdef __amigaos4__
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_Text, tabs,
|
2015-08-15 16:11:30 +03:00
|
|
|
#else
|
|
|
|
CLICKTAB_Labels, &gow->clicktablist,
|
|
|
|
#endif
|
2015-01-26 03:05:01 +03:00
|
|
|
CLICKTAB_PageGroup, PageObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
/*
|
|
|
|
** General
|
|
|
|
*/
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_HOMEPAGE],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HOMEPAGE] = StringObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID, GID_OPTS_HOMEPAGE,
|
|
|
|
GA_RelVerify, TRUE,
|
2014-03-13 23:37:01 +04:00
|
|
|
STRINGA_TextVal, homepage_url_lc,
|
2009-06-21 17:32:50 +04:00
|
|
|
STRINGA_BufferPos,0,
|
|
|
|
StringEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_HOMEPAGE],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HOMEPAGE_DEFAULT] = ButtonObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HOMEPAGE_CURRENT] = ButtonObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HOMEPAGE_BLANK] = ButtonObj,
|
2011-03-05 02:19:24 +03:00
|
|
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_CONTENTBLOCKING],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HIDEADS] = CheckBoxObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID, GID_OPTS_HIDEADS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_HIDEADS],
|
2013-05-27 17:18:01 +04:00
|
|
|
GA_Selected, nsoption_bool(block_advertisements),
|
2009-06-21 17:32:50 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // content blocking
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_CONTENTLANGUAGE],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CONTENTLANG] = StringObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FROMLOCALE] = CheckBoxObj,
|
2011-09-11 18:53:33 +04:00
|
|
|
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
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2012-07-29 01:27:53 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_HISTORY],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2012-07-29 01:27:53 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_HISTORY] = IntegerObj,
|
2012-07-29 01:27:53 +04:00
|
|
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2012-07-29 01:27:53 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_DAYS],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2009-06-27 20:15:42 +04:00
|
|
|
CHILD_WeightedWidth, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2012-07-29 01:27:53 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_HISTORY],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // history
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2012-07-29 01:27:53 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_SCRIPTING],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_JAVASCRIPT] = CheckBoxObj,
|
2012-07-29 01:27:53 +04:00
|
|
|
GA_ID, GID_OPTS_JAVASCRIPT,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_JAVASCRIPT],
|
|
|
|
GA_Selected, nsoption_bool(enable_javascript),
|
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // scripting
|
|
|
|
LayoutEnd,
|
2009-06-24 22:54:48 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2012-05-20 21:53:07 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_PRIVACY],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_REFERRAL] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DONOTTRACK] = CheckBoxObj,
|
2012-05-20 21:53:07 +04:00
|
|
|
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
|
|
|
|
*/
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-21 18:42:01 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_SCREEN],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SCREEN] = RadioButtonObj,
|
2009-06-21 18:42:01 +04:00
|
|
|
GA_ID, GID_OPTS_SCREEN,
|
|
|
|
GA_RelVerify, TRUE,
|
2016-01-27 03:33:37 +03:00
|
|
|
#ifdef __amigaos4__
|
2009-06-21 18:42:01 +04:00
|
|
|
GA_Text, screenopts,
|
2016-01-27 03:33:37 +03:00
|
|
|
#else
|
|
|
|
RADIOBUTTON_Labels, &gow->screenoptslist,
|
|
|
|
#endif
|
2009-06-21 18:42:01 +04:00
|
|
|
RADIOBUTTON_Selected, screenoptsselected,
|
|
|
|
RadioButtonEnd,
|
|
|
|
CHILD_WeightedWidth,0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SCREENMODE] = GetScreenModeObj,
|
2009-06-21 18:42:01 +04:00
|
|
|
GA_ID, GID_OPTS_SCREENMODE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled,screenmodedisabled,
|
|
|
|
GETSCREENMODE_DisplayID,screenmodeid,
|
2012-08-04 18:53:19 +04:00
|
|
|
GETSCREENMODE_MinDepth, 0,
|
2009-06-21 18:42:01 +04:00
|
|
|
GETSCREENMODE_MaxDepth, 32,
|
|
|
|
GetScreenModeEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SCREENNAME] = StringObj,
|
2009-06-21 18:42:01 +04:00
|
|
|
GA_ID, GID_OPTS_SCREENNAME,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled,screennamedisabled,
|
2013-06-01 02:25:05 +04:00
|
|
|
STRINGA_TextVal, nsoption_charp(pubscreen_name),
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2012-12-10 01:45:12 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_WINDOW],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_WIN_SIMPLE] = CheckBoxObj,
|
2012-12-10 01:45:12 +04:00
|
|
|
GA_ID, GID_OPTS_WIN_SIMPLE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_WIN_SIMPLE],
|
|
|
|
GA_Selected, nsoption_bool(window_simple_refresh),
|
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // window
|
|
|
|
CHILD_WeightedHeight,0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-21 18:42:01 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_THEME],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_THEME] = GetFileObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-21 19:05:25 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_MOUSE],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PTRTRUE] = CheckBoxObj,
|
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),
|
2013-10-12 14:52:08 +04:00
|
|
|
GA_Disabled, ptr_disable,
|
2009-06-21 19:05:25 +04:00
|
|
|
CheckBoxEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PTROS] = CheckBoxObj,
|
2009-06-21 19:05:25 +04:00
|
|
|
GA_ID, GID_OPTS_PTROS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_PTROS],
|
2013-05-28 19:44:46 +04:00
|
|
|
GA_Selected, nsoption_bool(os_mouse_pointers),
|
2013-10-12 14:52:08 +04:00
|
|
|
GA_Disabled, ptr_disable,
|
2009-06-21 19:05:25 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // mouse
|
|
|
|
CHILD_WeightedHeight,0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddImage, LabelObj,
|
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
|
|
|
|
*/
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_PROXY],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY] = ChooserObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
GA_ID, GID_OPTS_PROXY,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
CHOOSER_PopUp, TRUE,
|
2016-01-27 03:07:14 +03:00
|
|
|
#ifdef __amigaos4__
|
2009-06-22 22:17:41 +04:00
|
|
|
CHOOSER_LabelArray, proxyopts,
|
2016-01-27 03:07:14 +03:00
|
|
|
#else
|
|
|
|
CHOOSER_Labels, &gow->proxyoptslist,
|
|
|
|
#endif
|
2009-06-22 22:17:41 +04:00
|
|
|
CHOOSER_Selected, proxytype,
|
|
|
|
ChooserEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_HOST] = StringObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_PORT] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LABEL_Text, ":",
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, //host:port group
|
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY_HOST],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_USER] = StringObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY_USER],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_PASS] = StringObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY_PASS],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_PROXY_BYPASS] = StringObj,
|
2013-06-08 20:22:22 +04:00
|
|
|
GA_ID, GID_OPTS_PROXY_BYPASS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Disabled, proxybypassdisabled,
|
|
|
|
STRINGA_TextVal, nsoption_charp(http_proxy_noproxy),
|
|
|
|
STRINGA_BufferPos, 0,
|
|
|
|
StringEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2013-06-08 20:22:22 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_PROXY_BYPASS],
|
|
|
|
LabelEnd,
|
2009-06-22 22:17:41 +04:00
|
|
|
LayoutEnd, // proxy
|
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_FETCHING],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FETCHMAX] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FETCHMAX],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FETCHHOST] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FETCHHOST],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FETCHCACHE] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-22 22:17:41 +04:00
|
|
|
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
|
|
|
|
*/
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-24 01:29:44 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_IMAGES],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_NATIVEBM] = ChooserObj,
|
2009-06-24 01:29:44 +04:00
|
|
|
GA_ID, GID_OPTS_NATIVEBM,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
CHOOSER_PopUp, TRUE,
|
2016-01-27 03:11:49 +03:00
|
|
|
#ifdef __amigaos4__
|
2009-06-24 01:29:44 +04:00
|
|
|
CHOOSER_LabelArray, nativebmopts,
|
2016-01-27 03:11:49 +03:00
|
|
|
#else
|
|
|
|
CHOOSER_Labels, &gow->nativebmoptslist,
|
|
|
|
#endif
|
2012-03-22 13:34:34 +04:00
|
|
|
CHOOSER_Selected, nsoption_int(cache_bitmaps),
|
2009-06-24 01:29:44 +04:00
|
|
|
ChooserEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-24 01:29:44 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_NATIVEBM],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DITHERQ] = ChooserObj,
|
2012-12-10 01:57:58 +04:00
|
|
|
GA_ID, GID_OPTS_DITHERQ,
|
|
|
|
GA_RelVerify, TRUE,
|
2014-03-01 18:48:41 +04:00
|
|
|
GA_Disabled, ditherdisable,
|
2012-12-10 01:57:58 +04:00
|
|
|
CHOOSER_PopUp, TRUE,
|
2016-01-27 03:11:49 +03:00
|
|
|
#ifdef __amigaos4__
|
2012-12-10 01:57:58 +04:00
|
|
|
CHOOSER_LabelArray, ditheropts,
|
2016-01-27 03:11:49 +03:00
|
|
|
#else
|
2016-01-27 03:33:37 +03:00
|
|
|
CHOOSER_Labels, &gow->ditheroptslist,
|
2016-01-27 03:11:49 +03:00
|
|
|
#endif
|
2012-12-10 01:57:58 +04:00
|
|
|
CHOOSER_Selected, nsoption_int(dither_quality),
|
|
|
|
ChooserEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2012-12-10 01:57:58 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_DITHERQ],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SCALEQ] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-24 01:29:44 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_ANIMS],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_ANIMSPEED] = StringObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_SECS],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-24 01:29:44 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_ANIMSPEED],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_ANIMDISABLE] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2011-05-02 20:18:00 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_DPI],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2011-05-02 20:18:00 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DPI_Y] = IntegerObj,
|
2011-05-02 20:18:00 +04:00
|
|
|
GA_ID, GID_OPTS_DPI_Y,
|
|
|
|
GA_RelVerify, TRUE,
|
2013-05-28 20:00:55 +04:00
|
|
|
INTEGER_Number, nsoption_int(screen_ydpi),
|
2011-05-02 20:18:00 +04:00
|
|
|
INTEGER_Minimum, 60,
|
|
|
|
INTEGER_Maximum, 150,
|
|
|
|
INTEGER_Arrows, TRUE,
|
2016-01-28 03:11:09 +03:00
|
|
|
GA_Disabled, nsoption_bool(bitmap_fonts),
|
2011-05-02 20:18:00 +04:00
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2011-05-02 20:18:00 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_DPI],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2011-05-02 20:18:00 +04:00
|
|
|
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
|
|
|
|
*/
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-24 22:54:48 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_FONTFACES],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_SANS] = GetFontObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-24 22:54:48 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_SANS],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_SERIF] = GetFontObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-24 22:54:48 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_SERIF],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_MONO] = GetFontObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-24 22:54:48 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_MONO],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_CURSIVE] = GetFontObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-24 22:54:48 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_CURSIVE],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_FANTASY] = GetFontObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-24 22:54:48 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_FANTASY],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_DEFAULT] = ChooserObj,
|
2009-06-24 22:54:48 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_DEFAULT,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
CHOOSER_PopUp, TRUE,
|
2016-01-27 03:33:37 +03:00
|
|
|
#ifdef __amigaos4__
|
2009-06-24 22:54:48 +04:00
|
|
|
CHOOSER_LabelArray, fontopts,
|
2016-01-27 03:33:37 +03:00
|
|
|
#else
|
|
|
|
CHOOSER_Labels, &gow->fontoptslist,
|
|
|
|
#endif
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-24 22:54:48 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_DEFAULT],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // font faces
|
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_FONTSIZE],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_SIZE] = IntegerObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_SIZE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
INTEGER_Number, nsoption_int(font_size) / 10,
|
|
|
|
INTEGER_Minimum, 1,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_PT],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_SIZE],
|
2009-06-27 20:15:42 +04:00
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_MINSIZE] = IntegerObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_MINSIZE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
INTEGER_Number, nsoption_int(font_min_size) / 10,
|
|
|
|
INTEGER_Minimum, 1,
|
|
|
|
INTEGER_Maximum, 99,
|
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_PT],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_FONT_MINSIZE],
|
2009-06-27 20:15:42 +04:00
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_MISC],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_ANTIALIASING] = CheckBoxObj,
|
2012-12-10 01:28:32 +04:00
|
|
|
GA_ID, GID_OPTS_FONT_ANTIALIASING,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_FONT_ANTIALIASING],
|
|
|
|
GA_Selected, nsoption_bool(font_antialiasing),
|
2016-01-26 22:28:07 +03:00
|
|
|
#ifndef __amigaos4__
|
|
|
|
GA_Disabled, TRUE,
|
|
|
|
#endif
|
2012-12-10 01:28:32 +04:00
|
|
|
CheckBoxEnd,
|
2016-01-28 02:53:27 +03:00
|
|
|
#ifndef __amigaos4__
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FONT_BITMAP] = CheckBoxObj,
|
|
|
|
GA_ID, GID_OPTS_FONT_BITMAP,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_FONT_BITMAP],
|
|
|
|
GA_Selected, nsoption_bool(bitmap_fonts),
|
|
|
|
CheckBoxEnd,
|
|
|
|
#endif
|
2012-12-10 01:28:32 +04:00
|
|
|
LayoutEnd,
|
2009-06-24 22:54:48 +04:00
|
|
|
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
|
|
|
|
*/
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-25 22:14:47 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_MEMCACHE],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CACHE_MEM] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MB],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-25 22:14:47 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_CACHE_MEM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // memory cache
|
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-25 22:14:47 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_DISCCACHE],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CACHE_DISC] = IntegerObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
GA_ID, GID_OPTS_CACHE_DISC,
|
|
|
|
GA_RelVerify, TRUE,
|
2014-06-09 16:10:56 +04:00
|
|
|
INTEGER_Number, nsoption_uint(disc_cache_size) / 1048576,
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Minimum, 0,
|
2014-05-16 20:32:15 +04:00
|
|
|
INTEGER_Maximum, 4096,
|
2009-06-27 20:15:42 +04:00
|
|
|
INTEGER_Arrows, TRUE,
|
|
|
|
IntegerEnd,
|
|
|
|
CHILD_WeightedWidth, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2014-05-16 20:26:32 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MB],
|
2009-06-27 20:15:42 +04:00
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-25 22:14:47 +04:00
|
|
|
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
|
|
|
|
/*
|
2012-12-10 00:18:47 +04:00
|
|
|
** Tabs
|
|
|
|
*/
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2012-12-10 00:18:47 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_TABS],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_TAB_ACTIVE] = CheckBoxObj,
|
2012-12-10 00:18:47 +04:00
|
|
|
GA_ID, GID_OPTS_TAB_ACTIVE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_TAB_ACTIVE],
|
2013-05-28 19:44:46 +04:00
|
|
|
GA_Selected, !nsoption_bool(new_tab_is_active),
|
2012-12-10 00:18:47 +04:00
|
|
|
CheckBoxEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_TAB_LAST] = CheckBoxObj,
|
2012-12-10 00:18:47 +04:00
|
|
|
GA_ID, GID_OPTS_TAB_LAST,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_TAB_LAST],
|
|
|
|
GA_Selected, nsoption_bool(new_tab_last),
|
|
|
|
CheckBoxEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_TAB_2] = CheckBoxObj,
|
2012-12-10 00:18:47 +04:00
|
|
|
GA_ID, GID_OPTS_TAB_2,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_TAB_2],
|
|
|
|
GA_Selected, nsoption_bool(button_2_tab),
|
2012-12-10 00:29:01 +04:00
|
|
|
CheckBoxEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_TAB_ALWAYS] = CheckBoxObj,
|
2012-12-10 00:29:01 +04:00
|
|
|
GA_ID, GID_OPTS_TAB_ALWAYS,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_TAB_ALWAYS],
|
|
|
|
GA_Selected, nsoption_bool(tab_always_show),
|
2016-01-31 20:10:47 +03:00
|
|
|
GA_Disabled, tab_always_show_disabled,
|
2012-12-10 00:29:01 +04:00
|
|
|
CheckBoxEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_TAB_CLOSE] = CheckBoxObj,
|
2012-12-10 00:29:01 +04:00
|
|
|
GA_ID, GID_OPTS_TAB_CLOSE,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_TAB_CLOSE],
|
|
|
|
GA_Selected, nsoption_bool(tab_close_warn),
|
2012-12-10 00:18:47 +04:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // tabbed browsing
|
|
|
|
LayoutEnd,
|
|
|
|
LayoutEnd, // page vgroup
|
|
|
|
CHILD_WeightedHeight, 0,
|
|
|
|
PageEnd, // page object
|
|
|
|
/*
|
2009-06-21 17:32:50 +04:00
|
|
|
** Advanced
|
|
|
|
*/
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-26 02:40:20 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_DOWNLOADS],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_OVERWRITE] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_NOTIFY] = CheckBoxObj,
|
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),
|
2016-01-26 22:28:07 +03:00
|
|
|
#ifndef __amigaos4__
|
|
|
|
GA_Disabled, TRUE,
|
2013-01-30 22:23:48 +04:00
|
|
|
#endif
|
2016-01-26 22:28:07 +03:00
|
|
|
CheckBoxEnd,
|
2009-12-23 16:29:10 +03:00
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DLDIR] = GetFileObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 01:10:02 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_DLDIR],
|
|
|
|
LabelEnd,
|
2009-06-26 02:40:20 +04:00
|
|
|
LayoutEnd, // downloads
|
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
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],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_STARTUP_NO_WIN] = CheckBoxObj,
|
2011-09-07 00:49:48 +04:00
|
|
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CLOSE_NO_QUIT] = CheckBoxObj,
|
2011-09-07 00:49:48 +04:00
|
|
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_DOCKY] = CheckBoxObj,
|
2011-09-07 00:49:48 +04:00
|
|
|
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),
|
2016-01-26 22:28:07 +03:00
|
|
|
#ifndef __amigaos4__
|
|
|
|
GA_Disabled, TRUE,
|
2013-01-30 22:23:48 +04:00
|
|
|
#endif
|
2016-01-26 22:28:07 +03:00
|
|
|
CheckBoxEnd,
|
2011-09-07 00:49:48 +04:00
|
|
|
LayoutEnd, // behaviour
|
2011-07-03 02:04:51 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2009-09-29 22:24:19 +04:00
|
|
|
LayoutEnd, // hgroup
|
2009-06-26 02:40:20 +04:00
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2011-03-27 01:35:41 +03:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_CLIPBOARD],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CLIPBOARD] = CheckBoxObj,
|
2011-03-27 01:35:41 +03:00
|
|
|
GA_ID, GID_OPTS_CLIPBOARD,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_CLIPBOARD],
|
2013-05-28 19:44:46 +04:00
|
|
|
GA_Selected, nsoption_bool(clipboard_write_utf8),
|
2011-03-27 01:35:41 +03:00
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // clipboard
|
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2011-03-25 03:34:00 +03:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_SEARCH],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SEARCH_PROV] = ChooserObj,
|
2011-03-25 03:34:00 +03:00
|
|
|
GA_ID, GID_OPTS_SEARCH_PROV,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
CHOOSER_PopUp, TRUE,
|
2014-06-15 17:56:09 +04:00
|
|
|
CHOOSER_Labels, 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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2011-03-25 03:34:00 +03:00
|
|
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_FASTSCROLL] = CheckBoxObj,
|
2012-05-20 21:53:07 +04:00
|
|
|
GA_ID, GID_OPTS_FASTSCROLL,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_FASTSCROLL],
|
|
|
|
GA_Selected, nsoption_bool(faster_scroll),
|
|
|
|
CheckBoxEnd,
|
2015-09-05 17:37:34 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SELECTMENU] = CheckBoxObj,
|
|
|
|
GA_ID, GID_OPTS_SELECTMENU,
|
|
|
|
GA_RelVerify, TRUE,
|
|
|
|
GA_Text, gadlab[GID_OPTS_SELECTMENU],
|
2015-09-05 17:53:21 +03:00
|
|
|
GA_Selected, !nsoption_bool(core_select_menu),
|
2015-09-05 17:37:34 +03:00
|
|
|
GA_Disabled, !ami_selectmenu_is_safe(),
|
|
|
|
CheckBoxEnd,
|
|
|
|
LayoutEnd, // misc
|
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
|
2015-01-26 03:05:01 +03:00
|
|
|
PAGE_Add, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_MARGINS],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_MARGIN_TOP] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_MARGIN_TOP],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_MARGIN_LEFT] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_MARGIN_LEFT],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_MARGIN_BOTTOM] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_MARGIN_BOTTOM],
|
|
|
|
LabelEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_MARGIN_RIGHT] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LABEL_Text, gadlab[LAB_OPTS_MM],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_MARGIN_RIGHT],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // margins
|
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_SCALING],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_SCALE] = IntegerObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 20:15:42 +04:00
|
|
|
LABEL_Text, "%",
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
CHILD_Label, LabelObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LABEL_Text, gadlab[GID_OPTS_EXPORT_SCALE],
|
|
|
|
LabelEnd,
|
|
|
|
LayoutEnd, // scaling
|
|
|
|
CHILD_WeightedHeight, 0,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_APPEARANCE],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_NOIMAGES] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_NOBKG] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_LOOSEN] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutVObj,
|
2009-06-27 02:01:37 +04:00
|
|
|
LAYOUT_SpaceOuter, TRUE,
|
|
|
|
LAYOUT_BevelStyle, BVS_GROUP,
|
2009-06-27 16:54:00 +04:00
|
|
|
LAYOUT_Label, gadlab[GRP_OPTS_ADVANCED],
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_COMPRESS] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_EXPORT_PASSWORD] = CheckBoxObj,
|
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,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, LayoutHObj,
|
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_SAVE] = ButtonObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID,GID_OPTS_SAVE,
|
|
|
|
GA_Text,gadlab[GID_OPTS_SAVE],
|
|
|
|
GA_RelVerify,TRUE,
|
|
|
|
ButtonEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_USE] = ButtonObj,
|
2009-06-21 17:32:50 +04:00
|
|
|
GA_ID,GID_OPTS_USE,
|
|
|
|
GA_Text,gadlab[GID_OPTS_USE],
|
|
|
|
GA_RelVerify,TRUE,
|
|
|
|
ButtonEnd,
|
2015-01-26 03:05:01 +03:00
|
|
|
LAYOUT_AddChild, gow->objects[GID_OPTS_CANCEL] = ButtonObj,
|
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;
|
|
|
|
}
|
2014-03-13 23:37:01 +04:00
|
|
|
ami_utf8_free(homepage_url_lc);
|
2009-06-21 02:29:43 +04:00
|
|
|
}
|
|
|
|
|
2014-10-16 12:55:01 +04:00
|
|
|
static 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;
|
2012-12-10 00:39:10 +04:00
|
|
|
bool old_tab_always_show;
|
2012-05-06 21:55:35 +04:00
|
|
|
|
2013-01-06 04:21:15 +04:00
|
|
|
ami_update_pointer(gow->win, GUI_POINTER_WAIT);
|
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);
|
2014-03-13 23:37:01 +04:00
|
|
|
nsoption_set_charp(homepage_url, (char *)ami_to_utf8_easy((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) {
|
2013-05-27 17:18:01 +04:00
|
|
|
nsoption_set_bool(block_advertisements, true);
|
2012-03-22 13:34:34 +04:00
|
|
|
} else {
|
2013-05-27 17:18:01 +04:00
|
|
|
nsoption_set_bool(block_advertisements, false);
|
2012-03-22 13:34:34 +04:00
|
|
|
}
|
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: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);
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
}
|
2016-01-27 03:33:37 +03: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:
|
2013-06-01 02:25:05 +04:00
|
|
|
nsoption_set_charp(pubscreen_name, strdup("\0"));
|
2012-03-22 13:34:34 +04:00
|
|
|
break;
|
2009-06-21 18:42:01 +04:00
|
|
|
|
|
|
|
case 1:
|
2013-06-01 02:25:05 +04:00
|
|
|
nsoption_set_charp(pubscreen_name, (char *)strdup("Workbench"));
|
2012-03-22 13:34:34 +04:00
|
|
|
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);
|
2013-06-01 02:25:05 +04:00
|
|
|
nsoption_set_charp(pubscreen_name, (char *)strdup((char *)data));
|
2012-03-22 13:34:34 +04:00
|
|
|
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);
|
2013-05-28 19:44:46 +04:00
|
|
|
nsoption_set_charp(screen_modeid, modeid);
|
2009-06-28 03:01:51 +04:00
|
|
|
}
|
2009-06-21 18:42:01 +04:00
|
|
|
|
2012-12-10 01:45:12 +04:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_WIN_SIMPLE],(ULONG *)&data);
|
2013-01-13 23:19:59 +04:00
|
|
|
if ((data == TRUE) && (nsoption_bool(window_simple_refresh) == false)) {
|
2012-12-10 01:45:12 +04:00
|
|
|
nsoption_set_bool(window_simple_refresh, true);
|
2013-01-13 23:19:59 +04:00
|
|
|
nsoption_set_int(screen_compositing, 0);
|
|
|
|
} else if ((data == FALSE) && (nsoption_bool(window_simple_refresh) == true)) {
|
2012-12-10 01:45:12 +04:00
|
|
|
nsoption_set_bool(window_simple_refresh, false);
|
2013-01-13 23:19:59 +04:00
|
|
|
nsoption_set_int(screen_compositing, -1);
|
2012-12-10 01:45:12 +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) {
|
2013-05-28 19:44:46 +04:00
|
|
|
nsoption_set_bool(os_mouse_pointers, true);
|
2012-03-22 13:34:34 +04:00
|
|
|
} else {
|
2013-05-28 19:44:46 +04:00
|
|
|
nsoption_set_bool(os_mouse_pointers, false);
|
2012-03-22 13:34:34 +04:00
|
|
|
}
|
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
|
|
|
|
2013-06-08 20:22:22 +04:00
|
|
|
GetAttr(STRINGA_TextVal,gow->objects[GID_OPTS_PROXY_BYPASS],(ULONG *)&data);
|
|
|
|
nsoption_set_charp(http_proxy_noproxy, (char *)strdup((char *)data));
|
|
|
|
|
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
|
|
|
|
2012-12-10 01:57:58 +04:00
|
|
|
GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_DITHERQ],(ULONG *)&nsoption_int(dither_quality));
|
|
|
|
|
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
|
|
|
|
2013-05-28 19:44:46 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_DPI_Y],(ULONG *)&nsoption_int(screen_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
|
|
|
|
2014-10-16 12:55:01 +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
|
|
|
|
2014-10-16 12:55:01 +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
|
|
|
|
2014-10-16 12:55:01 +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
|
|
|
|
2014-10-16 12:55:01 +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
|
|
|
|
2014-10-16 12:55:01 +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
|
|
|
|
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-12-10 01:28:32 +04:00
|
|
|
GetAttr(GA_Selected, gow->objects[GID_OPTS_FONT_ANTIALIASING], (ULONG *)&data);
|
|
|
|
if(data) {
|
|
|
|
nsoption_set_bool(font_antialiasing, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(font_antialiasing, false);
|
|
|
|
}
|
2016-01-28 02:53:27 +03:00
|
|
|
|
|
|
|
#ifndef __amigaos4__
|
|
|
|
GetAttr(GA_Selected, gow->objects[GID_OPTS_FONT_BITMAP], (ULONG *)&data);
|
|
|
|
ami_font_fini();
|
|
|
|
if(data) {
|
|
|
|
nsoption_set_bool(bitmap_fonts, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(bitmap_fonts, false);
|
|
|
|
}
|
|
|
|
ami_font_init();
|
|
|
|
#endif
|
|
|
|
|
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
|
|
|
|
2014-06-09 16:10:56 +04:00
|
|
|
GetAttr(INTEGER_Number,gow->objects[GID_OPTS_CACHE_DISC],(ULONG *)&nsoption_uint(disc_cache_size));
|
|
|
|
nsoption_set_uint(disc_cache_size, nsoption_uint(disc_cache_size) * 1048576);
|
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);
|
2014-11-04 21:33:44 +03:00
|
|
|
if((nsoption_charp(download_dir) == NULL) ||
|
2014-11-09 22:37:35 +03:00
|
|
|
(strcmp((char *)data, nsoption_charp(download_dir)) != 0)) {
|
2014-10-28 23:27:14 +03:00
|
|
|
nsoption_set_charp(download_dir, (char *)strdup((char *)data));
|
|
|
|
ami_file_req_free();
|
|
|
|
ami_file_req_init();
|
|
|
|
}
|
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) {
|
2013-05-28 19:44:46 +04:00
|
|
|
nsoption_set_bool(new_tab_is_active, false);
|
2012-03-22 13:34:34 +04:00
|
|
|
} else {
|
2013-05-28 19:44:46 +04:00
|
|
|
nsoption_set_bool(new_tab_is_active, true);
|
2012-03-22 13:34:34 +04:00
|
|
|
}
|
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-12-10 00:29:01 +04:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_TAB_CLOSE],(ULONG *)&data);
|
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(tab_close_warn, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(tab_close_warn, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_TAB_ALWAYS],(ULONG *)&data);
|
2012-12-10 00:39:10 +04:00
|
|
|
old_tab_always_show = nsoption_bool(tab_always_show);
|
|
|
|
|
2012-12-10 00:29:01 +04:00
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(tab_always_show, true);
|
|
|
|
} else {
|
|
|
|
nsoption_set_bool(tab_always_show, false);
|
|
|
|
}
|
|
|
|
|
2012-12-10 00:39:10 +04:00
|
|
|
if(old_tab_always_show != nsoption_bool(tab_always_show))
|
|
|
|
ami_gui_tabs_toggle_all();
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
GetAttr(CHOOSER_Selected,gow->objects[GID_OPTS_SEARCH_PROV],(ULONG *)&nsoption_int(search_provider));
|
2014-05-25 03:57:48 +04:00
|
|
|
search_web_select_provider(nsoption_int(search_provider));
|
2009-12-23 16:29:10 +03:00
|
|
|
|
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) {
|
2013-05-28 19:44:46 +04:00
|
|
|
nsoption_set_bool(clipboard_write_utf8, true);
|
2012-03-22 13:34:34 +04:00
|
|
|
} else {
|
2013-05-28 19:44:46 +04:00
|
|
|
nsoption_set_bool(clipboard_write_utf8, false);
|
2012-03-22 13:34:34 +04:00
|
|
|
}
|
2009-06-27 01:10:02 +04:00
|
|
|
|
2015-09-05 17:37:34 +03:00
|
|
|
GetAttr(GA_Selected,gow->objects[GID_OPTS_SELECTMENU],(ULONG *)&data);
|
|
|
|
if (data) {
|
|
|
|
nsoption_set_bool(core_select_menu, false);
|
2015-09-05 17:53:21 +03:00
|
|
|
} else {
|
|
|
|
nsoption_set_bool(core_select_menu, true);
|
2015-09-05 17:37:34 +03: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
|
|
|
|
2013-06-01 18:31:39 +04:00
|
|
|
#ifdef WITH_PDF_EXPORT
|
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);
|
|
|
|
}
|
2013-06-01 18:31:39 +04:00
|
|
|
#endif
|
2012-05-06 21:55:35 +04:00
|
|
|
|
|
|
|
if(rescan_fonts == true) {
|
|
|
|
ami_font_finiscanner();
|
|
|
|
ami_font_initscanner(true, false);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(save == true) {
|
2013-05-28 19:44:46 +04:00
|
|
|
nsoption_write(current_user_options, NULL, NULL);
|
2012-05-06 21:55:35 +04:00
|
|
|
ami_font_savescanner(); /* just in case it has changed and been used only */
|
|
|
|
}
|
|
|
|
|
2012-12-15 19:39:09 +04:00
|
|
|
ami_menu_check_toggled = true;
|
|
|
|
|
2013-01-06 04:21:15 +04:00
|
|
|
ami_update_pointer(gow->win, GUI_POINTER_DEFAULT);
|
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]);
|
2015-08-15 16:11:30 +03:00
|
|
|
ami_gui_opts_free(gow);
|
2015-08-15 16:25:50 +03:00
|
|
|
DelObject(gow->node);
|
2009-06-21 02:29:43 +04:00
|
|
|
gow = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2013-01-25 00:00:09 +04:00
|
|
|
case WMHI_GADGETHELP:
|
|
|
|
if((result & WMHI_GADGETMASK) == 0) {
|
|
|
|
/* Pointer not over our window */
|
2014-02-07 21:51:12 +04:00
|
|
|
ami_help_open(AMI_HELP_MAIN, scrn);
|
2013-01-25 00:00:09 +04:00
|
|
|
} else {
|
|
|
|
/* TODO: Make this sensitive to the tab the user is currently on */
|
2014-02-07 21:51:12 +04:00
|
|
|
ami_help_open(AMI_HELP_PREFS, scrn);
|
2013-01-25 00:00:09 +04:00
|
|
|
}
|
|
|
|
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:
|
2014-11-16 19:01:59 +03:00
|
|
|
if(cur_gw) RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_HOMEPAGE],
|
2010-03-28 19:51:05 +04:00
|
|
|
gow->win, NULL, STRINGA_TextVal,
|
2014-11-21 12:23:00 +03:00
|
|
|
nsurl_access(browser_window_get_url(cur_gw->bw)), TAG_DONE);
|
2009-06-22 02:12:52 +04:00
|
|
|
break;
|
|
|
|
|
2011-03-05 02:19:24 +03:00
|
|
|
case GID_OPTS_HOMEPAGE_BLANK:
|
2014-11-16 19:01:59 +03:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_HOMEPAGE],
|
2011-03-05 02:19:24 +03:00
|
|
|
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);
|
2013-06-08 20:22:22 +04:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_BYPASS],
|
|
|
|
gow->win,NULL, GA_Disabled, TRUE, TAG_DONE);
|
2009-06-22 22:17:41 +04:00
|
|
|
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);
|
2013-06-08 20:22:22 +04:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_BYPASS],
|
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
2009-06-22 22:17:41 +04:00
|
|
|
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);
|
2013-06-08 20:22:22 +04:00
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_PROXY_BYPASS],
|
|
|
|
gow->win,NULL, GA_Disabled, FALSE, TAG_DONE);
|
2009-06-22 22:17:41 +04:00
|
|
|
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;
|
2016-01-28 03:11:09 +03:00
|
|
|
#ifndef __amigaos4__
|
|
|
|
case GID_OPTS_FONT_BITMAP:
|
|
|
|
RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_DPI_Y],
|
|
|
|
gow->win, NULL, GA_Disabled, code, TAG_DONE);
|
|
|
|
break;
|
|
|
|
#endif
|
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
|
|
|
|
2014-06-15 17:56:09 +04:00
|
|
|
struct List *ami_gui_opts_websearch(void)
|
2009-12-23 16:29:10 +03:00
|
|
|
{
|
2014-06-15 17:56:09 +04:00
|
|
|
struct List *list;
|
|
|
|
struct Node *node;
|
|
|
|
const char *name;
|
|
|
|
int iter;
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2014-06-15 17:56:09 +04:00
|
|
|
list = AllocVecTagList(sizeof(struct List), NULL);
|
|
|
|
NewList(list);
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2014-06-15 17:56:09 +04:00
|
|
|
if (nsoption_charp(search_engines_file) == NULL) return list;
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2014-06-15 17:56:09 +04:00
|
|
|
for (iter = search_web_iterate_providers(0, &name);
|
|
|
|
iter != -1;
|
|
|
|
iter = search_web_iterate_providers(iter, &name)) {
|
|
|
|
node = AllocChooserNode(CNA_Text, name, TAG_DONE);
|
|
|
|
AddTail(list, node);
|
2009-12-23 16:29:10 +03:00
|
|
|
}
|
|
|
|
|
2014-06-15 17:56:09 +04:00
|
|
|
return list;
|
2009-12-23 16:29:10 +03:00
|
|
|
}
|
|
|
|
|
2014-06-15 17:56:09 +04:00
|
|
|
void ami_gui_opts_websearch_free(struct List *websearchlist)
|
2009-12-23 16:29:10 +03:00
|
|
|
{
|
2014-06-15 17:56:09 +04:00
|
|
|
struct Node *node;
|
|
|
|
struct Node *nnode;
|
2009-12-23 16:29:10 +03:00
|
|
|
|
2016-05-22 17:54:18 +03:00
|
|
|
if(websearchlist == NULL) return;
|
2014-06-15 17:56:09 +04:00
|
|
|
if(IsListEmpty(websearchlist)) return;
|
|
|
|
node = GetHead(websearchlist);
|
|
|
|
|
|
|
|
do {
|
|
|
|
nnode = GetSucc(node);
|
|
|
|
Remove(node);
|
2016-01-27 03:01:42 +03:00
|
|
|
FreeChooserNode(node);
|
2014-10-16 12:55:01 +04:00
|
|
|
} while((node = nnode));
|
2009-12-23 16:29:10 +03:00
|
|
|
|
|
|
|
FreeVec(websearchlist);
|
|
|
|
}
|
2014-06-15 18:39:49 +04:00
|
|
|
|