Completed Amiga preferences GUI.

svn path=/trunk/netsurf/; revision=8065
This commit is contained in:
Chris Young 2009-06-27 16:15:42 +00:00
parent ca96353d9f
commit e616704164
7 changed files with 783 additions and 136 deletions

View File

@ -262,6 +262,7 @@ Browser:Browser
HistGlobalNS:Show global history...
HistLocalNS:Show local history...
FindTextNS:Find text...
Redraw:Redraw page
# Hotlist menu
#
@ -269,6 +270,7 @@ HotlistShowNS:Show hotlist...
# Settings menu
#
SettingsEdit:Edit preferences...
Settings:Settings
SnapshotWindow:Snapshot window
SettingsSave:Save settings
@ -1146,6 +1148,118 @@ con_lang:Sprachen
con_memory:Speicher
con_secure:Sicherheit
con_theme:Themen
con_general:General
con_rendering:Rendering
con_advanced:Advanced
# General tab
#
Preferences:Preferences
Use:Use
HomePageURL:URL
HomePageDefault:Use default page
HomePageCurrent:Use current page
ContentBlocking:Content blocking
BlockAds:Hide advertisements
ContentLanguage:Content language
LocaleLang:Get from Locale prefs
HistoryAge:Keep history for
Days:days
Miscellaneous:Miscellaneous
SendReferer:Send site referral information
FastScrolling:Fast scrolling
# Display tab
#
Screen:Screen
ScreenOwn:Own screen
ScreenWB:Workbench
ScreenPublic:Public screen
Theme:Theme
MousePointers:Mouse pointers
TrueColour:True colour
OSPointers:Use OS mouse pointers when possible
NeedRestart:These options will not take effect until the next time NetSurf is started
# Connection tab
#
Proxy:HTTP Proxy
Fetching:Fetching
FetchesMax:Maximum fetches
FetchesHost:Fetches per host
FetchesCached:Cached connections
# Rendering tab
#
CacheNative:Cache native versions
ScaleQuality:Higher quality scaling
Animations:Animations
AnimSpeedLimit:Limit speed to
AnimSpeedFrames:seconds between frames
AnimDisable:Disable animations
None:None
Scaled:Scaled
# Fonts tab
#
FontFamilies:Font families
FontSans:Sans-serif
FontSerif:Serif
FontMono:Monospaced
FontCursive:Cursive
FontFantasy:Fantasy
Default:Default
FontSize:Font size
Minimum:Minimum
Pt:pt
# Cache tab
#
CacheMemory:Memory cache
CacheDisc:Disc cache
Size:Size
Duration:Duration
# Advanced
#
Downloads:Downloads
ConfirmOverwrite:Request confirmation when overwriting
DownloadDir:Initial download location
TabbedBrowsing:Tabbed browsing
TabActive:Open new tabs in background
TabMiddle:Middle mouse button opens tabs
Clipboard:Clipboard
ClipboardUTF8:Write text as UTF-8
ContextMenu:Context menu
Enable:Enable
Sticky:Sticky
# Export
#
Margins:Margins
Top:Top
Left:Left
Right:Right
Bottom:Bottom
MM:mm
Scaling:Scaling
Scale:Scale
Appearance:Appearance
SuppressImages:Suppress images
RemoveBackground:Remove background
FitPage:Fit page
CompressPDF:Compress PDF
SetPassword:Set password
# Unused tokens

View File

@ -262,6 +262,7 @@ Browser:Browser
HistGlobalNS:Show global history...
HistLocalNS:Show local history...
FindTextNS:Find text...
Redraw:Redraw page
# Hotlist menu
#
@ -269,6 +270,7 @@ HotlistShowNS:Show hotlist...
# Settings menu
#
SettingsEdit:Edit preferences...
Settings:Settings
SnapshotWindow:Snapshot window
SettingsSave:Save settings
@ -1152,6 +1154,118 @@ con_lang:Language
con_memory:Memory
con_secure:Security
con_theme:Themes
con_general:General
con_rendering:Rendering
con_advanced:Advanced
# General tab
#
Preferences:Preferences
Use:Use
HomePageURL:URL
HomePageDefault:Use default page
HomePageCurrent:Use current page
ContentBlocking:Content blocking
BlockAds:Hide advertisements
ContentLanguage:Content language
LocaleLang:Get from Locale prefs
HistoryAge:Keep history for
Days:days
Miscellaneous:Miscellaneous
SendReferer:Send site referral information
FastScrolling:Fast scrolling
# Display tab
#
Screen:Screen
ScreenOwn:Own screen
ScreenWB:Workbench
ScreenPublic:Public screen
Theme:Theme
MousePointers:Mouse pointers
TrueColour:True colour
OSPointers:Use OS mouse pointers when possible
NeedRestart:These options will not take effect until the next time NetSurf is started
# Connection tab
#
Proxy:HTTP Proxy
Fetching:Fetching
FetchesMax:Maximum fetches
FetchesHost:Fetches per host
FetchesCached:Cached connections
# Rendering tab
#
CacheNative:Cache native versions
ScaleQuality:Higher quality scaling
Animations:Animations
AnimSpeedLimit:Limit speed to
AnimSpeedFrames:seconds between frames
AnimDisable:Disable animations
None:None
Scaled:Scaled
# Fonts tab
#
FontFamilies:Font families
FontSans:Sans-serif
FontSerif:Serif
FontMono:Monospaced
FontCursive:Cursive
FontFantasy:Fantasy
Default:Default
FontSize:Font size
Minimum:Minimum
Pt:pt
# Cache tab
#
CacheMemory:Memory cache
CacheDisc:Disc cache
Size:Size
Duration:Duration
# Advanced
#
Downloads:Downloads
ConfirmOverwrite:Request confirmation when overwriting
DownloadDir:Initial download location
TabbedBrowsing:Tabbed browsing
TabActive:Open new tabs in background
TabMiddle:Middle mouse button opens tabs
Clipboard:Clipboard
ClipboardUTF8:Write text as UTF-8
ContextMenu:Context menu
Enable:Enable
Sticky:Sticky
# Export
#
Margins:Margins
Top:Top
Left:Left
Right:Right
Bottom:Bottom
MM:mm
Scaling:Scaling
Scale:Scale
Appearance:Appearance
SuppressImages:Suppress images
RemoveBackground:Remove background
FitPage:Fit page
CompressPDF:Compress PDF
SetPassword:Set password
# Unused tokens

View File

@ -262,6 +262,7 @@ Browser:Browser
HistGlobalNS:Show global history...
HistLocalNS:Show local history...
FindTextNS:Find text...
Redraw:Redraw page
# Hotlist menu
#
@ -269,6 +270,7 @@ HotlistShowNS:Show hotlist...
# Settings menu
#
SettingsEdit:Edit preferences...
Settings:Settings
SnapshotWindow:Snapshot window
SettingsSave:Save settings
@ -1152,6 +1154,118 @@ con_lang:Langue
con_memory:Mémoire
con_secure:Sécurité
con_theme:Thèmes
con_general:General
con_rendering:Rendering
con_advanced:Advanced
# General tab
#
Preferences:Preferences
Use:Use
HomePageURL:URL
HomePageDefault:Use default page
HomePageCurrent:Use current page
ContentBlocking:Content blocking
BlockAds:Hide advertisements
ContentLanguage:Content language
LocaleLang:Get from Locale prefs
HistoryAge:Keep history for
Days:days
Miscellaneous:Miscellaneous
SendReferer:Send site referral information
FastScrolling:Fast scrolling
# Display tab
#
Screen:Screen
ScreenOwn:Own screen
ScreenWB:Workbench
ScreenPublic:Public screen
Theme:Theme
MousePointers:Mouse pointers
TrueColour:True colour
OSPointers:Use OS mouse pointers when possible
NeedRestart:These options will not take effect until the next time NetSurf is started
# Connection tab
#
Proxy:HTTP Proxy
Fetching:Fetching
FetchesMax:Maximum fetches
FetchesHost:Fetches per host
FetchesCached:Cached connections
# Rendering tab
#
CacheNative:Cache native versions
ScaleQuality:Higher quality scaling
Animations:Animations
AnimSpeedLimit:Limit speed to
AnimSpeedFrames:seconds between frames
AnimDisable:Disable animations
None:None
Scaled:Scaled
# Fonts tab
#
FontFamilies:Font families
FontSans:Sans-serif
FontSerif:Serif
FontMono:Monospaced
FontCursive:Cursive
FontFantasy:Fantasy
Default:Default
FontSize:Font size
Minimum:Minimum
Pt:pt
# Cache tab
#
CacheMemory:Memory cache
CacheDisc:Disc cache
Size:Size
Duration:Duration
# Advanced
#
Downloads:Downloads
ConfirmOverwrite:Request confirmation when overwriting
DownloadDir:Initial download location
TabbedBrowsing:Tabbed browsing
TabActive:Open new tabs in background
TabMiddle:Middle mouse button opens tabs
Clipboard:Clipboard
ClipboardUTF8:Write text as UTF-8
ContextMenu:Context menu
Enable:Enable
Sticky:Sticky
# Export
#
Margins:Margins
Top:Top
Left:Left
Right:Right
Bottom:Bottom
MM:mm
Scaling:Scaling
Scale:Scale
Appearance:Appearance
SuppressImages:Suppress images
RemoveBackground:Remove background
FitPage:Fit page
CompressPDF:Compress PDF
SetPassword:Set password
# Unused tokens

View File

@ -264,6 +264,7 @@ Browser:Browser
HistGlobalNS:Mostra cronologia globale...
HistLocalNS:Mostra cronologia locale...
FindTextNS:Trova testo...
Redraw:Redraw page
# Hotlist menu
#
@ -271,6 +272,7 @@ HotlistShowNS:Mostra Hotlist...
# Settings menu
#
SettingsEdit:Edit preferences...
Settings:Impostazioni
SnapshotWindow:Fissa finestra
SettingsSave:Salva impostazioni
@ -1155,6 +1157,118 @@ con_lang:Lingua
con_memory:Memoria
con_secure:Sicurezza
con_theme:Temi
con_general:General
con_rendering:Rendering
con_advanced:Advanced
# General tab
#
Preferences:Preferences
Use:Use
HomePageURL:URL
HomePageDefault:Use default page
HomePageCurrent:Use current page
ContentBlocking:Content blocking
BlockAds:Hide advertisements
ContentLanguage:Content language
LocaleLang:Get from Locale prefs
HistoryAge:Keep history for
Days:days
Miscellaneous:Miscellaneous
SendReferer:Send site referral information
FastScrolling:Fast scrolling
# Display tab
#
Screen:Screen
ScreenOwn:Own screen
ScreenWB:Workbench
ScreenPublic:Public screen
Theme:Theme
MousePointers:Mouse pointers
TrueColour:True colour
OSPointers:Use OS mouse pointers when possible
NeedRestart:These options will not take effect until the next time NetSurf is started
# Connection tab
#
Proxy:HTTP Proxy
Fetching:Fetching
FetchesMax:Maximum fetches
FetchesHost:Fetches per host
FetchesCached:Cached connections
# Rendering tab
#
CacheNative:Cache native versions
ScaleQuality:Higher quality scaling
Animations:Animations
AnimSpeedLimit:Limit speed to
AnimSpeedFrames:seconds between frames
AnimDisable:Disable animations
None:None
Scaled:Scaled
# Fonts tab
#
FontFamilies:Font families
FontSans:Sans-serif
FontSerif:Serif
FontMono:Monospaced
FontCursive:Cursive
FontFantasy:Fantasy
Default:Default
FontSize:Font size
Minimum:Minimum
Pt:pt
# Cache tab
#
CacheMemory:Memory cache
CacheDisc:Disc cache
Size:Size
Duration:Duration
# Advanced
#
Downloads:Downloads
ConfirmOverwrite:Request confirmation when overwriting
DownloadDir:Initial download location
TabbedBrowsing:Tabbed browsing
TabActive:Open new tabs in background
TabMiddle:Middle mouse button opens tabs
Clipboard:Clipboard
ClipboardUTF8:Write text as UTF-8
ContextMenu:Context menu
Enable:Enable
Sticky:Sticky
# Export
#
Margins:Margins
Top:Top
Left:Left
Right:Right
Bottom:Bottom
MM:mm
Scaling:Scaling
Scale:Scale
Appearance:Appearance
SuppressImages:Suppress images
RemoveBackground:Remove background
FitPage:Fit page
CompressPDF:Compress PDF
SetPassword:Set password
# Unused tokens

View File

@ -262,6 +262,7 @@ Browser:Browser
HistGlobalNS:Show global history...
HistLocalNS:Show local history...
FindTextNS:Find text...
Redraw:Redraw page
# Hotlist menu
#
@ -269,6 +270,7 @@ HotlistShowNS:Show hotlist...
# Settings menu
#
SettingsEdit:Edit preferences...
Settings:Settings
SnapshotWindow:Snapshot window
SettingsSave:Save settings
@ -1146,6 +1148,118 @@ con_lang:Taal
con_memory:Geheugen
con_secure:Veiligheid
con_theme:Thema's
con_general:General
con_rendering:Rendering
con_advanced:Advanced
# General tab
#
Preferences:Preferences
Use:Use
HomePageURL:URL
HomePageDefault:Use default page
HomePageCurrent:Use current page
ContentBlocking:Content blocking
BlockAds:Hide advertisements
ContentLanguage:Content language
LocaleLang:Get from Locale prefs
HistoryAge:Keep history for
Days:days
Miscellaneous:Miscellaneous
SendReferer:Send site referral information
FastScrolling:Fast scrolling
# Display tab
#
Screen:Screen
ScreenOwn:Own screen
ScreenWB:Workbench
ScreenPublic:Public screen
Theme:Theme
MousePointers:Mouse pointers
TrueColour:True colour
OSPointers:Use OS mouse pointers when possible
NeedRestart:These options will not take effect until the next time NetSurf is started
# Connection tab
#
Proxy:HTTP Proxy
Fetching:Fetching
FetchesMax:Maximum fetches
FetchesHost:Fetches per host
FetchesCached:Cached connections
# Rendering tab
#
CacheNative:Cache native versions
ScaleQuality:Higher quality scaling
Animations:Animations
AnimSpeedLimit:Limit speed to
AnimSpeedFrames:seconds between frames
AnimDisable:Disable animations
None:None
Scaled:Scaled
# Fonts tab
#
FontFamilies:Font families
FontSans:Sans-serif
FontSerif:Serif
FontMono:Monospaced
FontCursive:Cursive
FontFantasy:Fantasy
Default:Default
FontSize:Font size
Minimum:Minimum
Pt:pt
# Cache tab
#
CacheMemory:Memory cache
CacheDisc:Disc cache
Size:Size
Duration:Duration
# Advanced
#
Downloads:Downloads
ConfirmOverwrite:Request confirmation when overwriting
DownloadDir:Initial download location
TabbedBrowsing:Tabbed browsing
TabActive:Open new tabs in background
TabMiddle:Middle mouse button opens tabs
Clipboard:Clipboard
ClipboardUTF8:Write text as UTF-8
ContextMenu:Context menu
Enable:Enable
Sticky:Sticky
# Export
#
Margins:Margins
Top:Top
Left:Left
Right:Right
Bottom:Bottom
MM:mm
Scaling:Scaling
Scale:Scale
Appearance:Appearance
SuppressImages:Suppress images
RemoveBackground:Remove background
FitPage:Fit page
CompressPDF:Compress PDF
SetPassword:Set password
# Unused tokens

View File

@ -21,6 +21,7 @@
#include <proto/exec.h>
#include <proto/intuition.h>
#include <proto/utility.h>
#include <libraries/gadtools.h>
#include "amiga/object.h"
#include "amiga/gui.h"
@ -90,6 +91,11 @@ enum
{
LAB_OPTS_WINTITLE = GRP_OPTS_LAST,
LAB_OPTS_RESTART,
LAB_OPTS_DAYS,
LAB_OPTS_SECS,
LAB_OPTS_PT,
LAB_OPTS_MB,
LAB_OPTS_MM,
LAB_OPTS_LAST
};
@ -110,25 +116,25 @@ CONST_STRPTR gadlab[OPTS_LAST];
void ami_gui_opts_setup(void)
{
tabs[0] = (char *)ami_utf8_easy((char *)messages_get("General"));
tabs[0] = (char *)ami_utf8_easy((char *)messages_get("con_general"));
tabs[1] = (char *)ami_utf8_easy((char *)messages_get("Display"));
tabs[2] = (char *)ami_utf8_easy((char *)messages_get("Network"));
tabs[3] = (char *)ami_utf8_easy((char *)messages_get("Rendering"));
tabs[4] = (char *)ami_utf8_easy((char *)messages_get("Fonts"));
tabs[5] = (char *)ami_utf8_easy((char *)messages_get("Cache"));
tabs[6] = (char *)ami_utf8_easy((char *)messages_get("Advanced"));
tabs[2] = (char *)ami_utf8_easy((char *)messages_get("con_connect"));
tabs[3] = (char *)ami_utf8_easy((char *)messages_get("con_rendering"));
tabs[4] = (char *)ami_utf8_easy((char *)messages_get("con_fonts"));
tabs[5] = (char *)ami_utf8_easy((char *)messages_get("con_cache"));
tabs[6] = (char *)ami_utf8_easy((char *)messages_get("con_advanced"));
tabs[7] = (char *)ami_utf8_easy((char *)messages_get("Export"));
tabs[8] = NULL;
screenopts[0] = (char *)ami_utf8_easy((char *)messages_get("OwnScreen"));
screenopts[1] = (char *)ami_utf8_easy((char *)messages_get("Workbench"));
screenopts[2] = (char *)ami_utf8_easy((char *)messages_get("NamedScreen"));
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"));
screenopts[3] = NULL;
proxyopts[0] = (char *)ami_utf8_easy((char *)messages_get("None"));
proxyopts[1] = (char *)ami_utf8_easy((char *)messages_get("Simple"));
proxyopts[2] = (char *)ami_utf8_easy((char *)messages_get("Basic"));
proxyopts[3] = (char *)ami_utf8_easy((char *)messages_get("NTLM"));
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"));
proxyopts[4] = NULL;
nativebmopts[0] = (char *)ami_utf8_easy((char *)messages_get("None"));
@ -136,45 +142,44 @@ void ami_gui_opts_setup(void)
nativebmopts[2] = (char *)ami_utf8_easy((char *)messages_get("All"));
nativebmopts[3] = NULL;
gadlab[GID_OPTS_HOMEPAGE] = (char *)ami_utf8_easy((char *)messages_get("URL"));
gadlab[GID_OPTS_HOMEPAGE_DEFAULT] = (char *)ami_utf8_easy((char *)messages_get("UseDefault"));
gadlab[GID_OPTS_HOMEPAGE_CURRENT] = (char *)ami_utf8_easy((char *)messages_get("UseCurrent"));
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"));
gadlab[GID_OPTS_HIDEADS] = (char *)ami_utf8_easy((char *)messages_get("BlockAds"));
gadlab[GID_OPTS_FROMLOCALE] = (char *)ami_utf8_easy((char *)messages_get("FromLocale"));
gadlab[GID_OPTS_FROMLOCALE] = (char *)ami_utf8_easy((char *)messages_get("LocaleLang"));
gadlab[GID_OPTS_HISTORY] = (char *)ami_utf8_easy((char *)messages_get("HistoryAge"));
gadlab[GID_OPTS_REFERRAL] = (char *)ami_utf8_easy((char *)messages_get("SendReferer"));
gadlab[GID_OPTS_FASTSCROLL] = (char *)ami_utf8_easy((char *)messages_get("FastScrolling"));
gadlab[GID_OPTS_SCREEN] = (char *)ami_utf8_easy((char *)messages_get("Screen"));
gadlab[GID_OPTS_PTRTRUE] = (char *)ami_utf8_easy((char *)messages_get("TrueColourPtrs"));
gadlab[GID_OPTS_PTRTRUE] = (char *)ami_utf8_easy((char *)messages_get("TrueColour"));
gadlab[GID_OPTS_PTROS] = (char *)ami_utf8_easy((char *)messages_get("OSPointers"));
gadlab[GID_OPTS_PROXY] = (char *)ami_utf8_easy((char *)messages_get("Type"));
gadlab[GID_OPTS_PROXY] = (char *)ami_utf8_easy((char *)messages_get("ProxyType"));
gadlab[GID_OPTS_PROXY_HOST] = (char *)ami_utf8_easy((char *)messages_get("Host"));
gadlab[GID_OPTS_PROXY_USER] = (char *)ami_utf8_easy((char *)messages_get("Username"));
gadlab[GID_OPTS_PROXY_PASS] = (char *)ami_utf8_easy((char *)messages_get("Password"));
gadlab[GID_OPTS_FETCHMAX] = (char *)ami_utf8_easy((char *)messages_get("FetchesMax"));
gadlab[GID_OPTS_FETCHHOST] = (char *)ami_utf8_easy((char *)messages_get("FetchesPerHost"));
gadlab[GID_OPTS_FETCHHOST] = (char *)ami_utf8_easy((char *)messages_get("FetchesHost"));
gadlab[GID_OPTS_FETCHCACHE] = (char *)ami_utf8_easy((char *)messages_get("FetchesCached"));
gadlab[GID_OPTS_NATIVEBM] = (char *)ami_utf8_easy((char *)messages_get("CacheNative"));
gadlab[GID_OPTS_SCALEQ] = (char *)ami_utf8_easy((char *)messages_get("ScaleQuality"));
gadlab[GID_OPTS_ANIMSPEED] = (char *)ami_utf8_easy((char *)messages_get("AnimSpeed"));
gadlab[GID_OPTS_ANIMSPEED] = (char *)ami_utf8_easy((char *)messages_get("AnimSpeedLimit"));
gadlab[GID_OPTS_ANIMDISABLE] = (char *)ami_utf8_easy((char *)messages_get("AnimDisable"));
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"));
gadlab[GID_OPTS_FONT_DEFAULT] = (char *)ami_utf8_easy((char *)messages_get("FontDefault"));
gadlab[GID_OPTS_FONT_SIZE] = (char *)ami_utf8_easy((char *)messages_get("FontSize"));
gadlab[GID_OPTS_FONT_MINSIZE] = (char *)ami_utf8_easy((char *)messages_get("FontMinSize"));
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"));
gadlab[GID_OPTS_CACHE_MEM] = (char *)ami_utf8_easy((char *)messages_get("Size"));
gadlab[GID_OPTS_CACHE_DISC] = (char *)ami_utf8_easy((char *)messages_get("Duration"));
gadlab[GID_OPTS_OVERWRITE] = (char *)ami_utf8_easy((char *)messages_get("ConfirmOverwrite"));
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"));
gadlab[GID_OPTS_CLIPBOARD] = (char *)ami_utf8_easy((char *)messages_get("Clipboard"));
gadlab[GID_OPTS_CMENU_ENABLE] = (char *)ami_utf8_easy((char *)messages_get("ContentEnable"));
gadlab[GID_OPTS_CMENU_STICKY] = (char *)ami_utf8_easy((char *)messages_get("ContextSticky"));
gadlab[GID_OPTS_CLIPBOARD] = (char *)ami_utf8_easy((char *)messages_get("ClipboardUTF8"));
gadlab[GID_OPTS_CMENU_ENABLE] = (char *)ami_utf8_easy((char *)messages_get("Enable"));
gadlab[GID_OPTS_CMENU_STICKY] = (char *)ami_utf8_easy((char *)messages_get("Sticky"));
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"));
@ -185,14 +190,19 @@ void ami_gui_opts_setup(void)
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"));
gadlab[GID_OPTS_SAVE] = (char *)ami_utf8_easy((char *)messages_get("Save"));
gadlab[GID_OPTS_SAVE] = (char *)ami_utf8_easy((char *)messages_get("SelSave"));
gadlab[GID_OPTS_USE] = (char *)ami_utf8_easy((char *)messages_get("Use"));
gadlab[GID_OPTS_CANCEL] = (char *)ami_utf8_easy((char *)messages_get("Cancel"));
gadlab[LAB_OPTS_WINTITLE] = (char *)ami_utf8_easy((char *)messages_get("Preferences"));
gadlab[LAB_OPTS_RESTART] = (char *)ami_utf8_easy((char *)messages_get("NeedRestart"));
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"));
gadlab[GRP_OPTS_HOMEPAGE] = (char *)ami_utf8_easy((char *)messages_get("HomePage"));
gadlab[GRP_OPTS_HOMEPAGE] = (char *)ami_utf8_easy((char *)messages_get("Home"));
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"));
@ -204,7 +214,7 @@ void ami_gui_opts_setup(void)
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"));
gadlab[GRP_OPTS_FONTFACES] = (char *)ami_utf8_easy((char *)messages_get("FontFaces"));
gadlab[GRP_OPTS_FONTFACES] = (char *)ami_utf8_easy((char *)messages_get("FontFamilies"));
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"));
@ -215,7 +225,7 @@ void ami_gui_opts_setup(void)
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"));
gadlab[GRP_OPTS_ADVANCED] = (char *)ami_utf8_easy((char *)messages_get("Advanced"));
gadlab[GRP_OPTS_ADVANCED] = (char *)ami_utf8_easy((char *)messages_get("con_advanced"));
fontopts[0] = gadlab[GID_OPTS_FONT_SANS];
fontopts[1] = gadlab[GID_OPTS_FONT_SERIF];
@ -423,14 +433,21 @@ void ami_gui_opts_open(void)
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, gadlab[GRP_OPTS_HISTORY],
LAYOUT_AddChild, gow->gadgets[GID_OPTS_HISTORY] = IntegerObject,
GA_ID, GID_OPTS_CACHE_DISC,
GA_RelVerify, TRUE,
INTEGER_Number, option_expire_url,
INTEGER_Minimum, 0,
INTEGER_Maximum, 366,
INTEGER_Arrows, TRUE,
IntegerEnd,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_HISTORY] = IntegerObject,
GA_ID, GID_OPTS_CACHE_DISC,
GA_RelVerify, TRUE,
INTEGER_Number, option_expire_url,
INTEGER_Minimum, 0,
INTEGER_Maximum, 366,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_DAYS],
LabelEnd,
LayoutEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_HISTORY],
@ -678,15 +695,21 @@ void ami_gui_opts_open(void)
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, gadlab[GRP_OPTS_ANIMS],
LAYOUT_AddChild, gow->gadgets[GID_OPTS_ANIMSPEED] = StringObject,
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,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_ANIMSPEED] = StringObject,
GA_ID, GID_OPTS_ANIMSPEED,
GA_RelVerify, TRUE,
GA_Disabled, animspeeddisabled,
STRINGA_HookType, SHK_FLOAT,
STRINGA_TextVal, animspeed,
STRINGA_BufferPos,0,
StringEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_SECS],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_ANIMSPEED],
LabelEnd,
@ -772,27 +795,39 @@ void ami_gui_opts_open(void)
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, gadlab[GRP_OPTS_FONTSIZE],
LAYOUT_AddChild, gow->gadgets[GID_OPTS_FONT_SIZE] = IntegerObject,
GA_ID, GID_OPTS_FONT_SIZE,
GA_RelVerify, TRUE,
INTEGER_Number, option_font_size / 10,
INTEGER_Minimum, 1,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_FONT_SIZE] = IntegerObject,
GA_ID, GID_OPTS_FONT_SIZE,
GA_RelVerify, TRUE,
INTEGER_Number, option_font_size / 10,
INTEGER_Minimum, 1,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_PT],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_FONT_SIZE],
LabelEnd,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_FONT_MINSIZE] = IntegerObject,
GA_ID, GID_OPTS_FONT_MINSIZE,
GA_RelVerify, TRUE,
INTEGER_Number, option_font_min_size / 10,
INTEGER_Minimum, 1,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_FONT_MINSIZE] = IntegerObject,
GA_ID, GID_OPTS_FONT_MINSIZE,
GA_RelVerify, TRUE,
INTEGER_Number, option_font_min_size / 10,
INTEGER_Minimum, 1,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_PT],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_FONT_MINSIZE],
LabelEnd,
@ -810,15 +845,21 @@ void ami_gui_opts_open(void)
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, gadlab[GRP_OPTS_MEMCACHE],
LAYOUT_AddChild, gow->gadgets[GID_OPTS_CACHE_MEM] = IntegerObject,
GA_ID, GID_OPTS_CACHE_MEM,
GA_RelVerify, TRUE,
INTEGER_Number, option_memory_cache_size / 1048576,
INTEGER_Minimum, 0,
INTEGER_Maximum, 2048,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_CACHE_MEM] = IntegerObject,
GA_ID, GID_OPTS_CACHE_MEM,
GA_RelVerify, TRUE,
INTEGER_Number, option_memory_cache_size / 1048576,
INTEGER_Minimum, 0,
INTEGER_Maximum, 2048,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_MB],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_CACHE_MEM],
LabelEnd,
@ -828,16 +869,22 @@ void ami_gui_opts_open(void)
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, gadlab[GRP_OPTS_DISCCACHE],
LAYOUT_AddChild, gow->gadgets[GID_OPTS_CACHE_DISC] = IntegerObject,
GA_ID, GID_OPTS_CACHE_DISC,
GA_RelVerify, TRUE,
GA_Disabled, TRUE,
INTEGER_Number, option_disc_cache_age,
INTEGER_Minimum, 0,
INTEGER_Maximum, 366,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_CACHE_DISC] = IntegerObject,
GA_ID, GID_OPTS_CACHE_DISC,
GA_RelVerify, TRUE,
GA_Disabled, TRUE,
INTEGER_Number, option_disc_cache_age,
INTEGER_Minimum, 0,
INTEGER_Maximum, 366,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_DAYS],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_CACHE_DISC],
LabelEnd,
@ -883,7 +930,7 @@ void ami_gui_opts_open(void)
GA_ID, GID_OPTS_TAB_ACTIVE,
GA_RelVerify, TRUE,
GA_Text, gadlab[GID_OPTS_TAB_ACTIVE],
GA_Selected, option_new_tab_active,
GA_Selected, !option_new_tab_active,
CheckBoxEnd,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_TAB_2] = CheckBoxObject,
GA_ID, GID_OPTS_TAB_2,
@ -936,51 +983,75 @@ void ami_gui_opts_open(void)
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, gadlab[GRP_OPTS_MARGINS],
LAYOUT_AddChild, gow->gadgets[GID_OPTS_MARGIN_TOP] = IntegerObject,
GA_ID, GID_OPTS_MARGIN_TOP,
GA_RelVerify, TRUE,
INTEGER_Number, option_margin_top,
INTEGER_Minimum, 0,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_MARGIN_TOP] = IntegerObject,
GA_ID, GID_OPTS_MARGIN_TOP,
GA_RelVerify, TRUE,
INTEGER_Number, option_margin_top,
INTEGER_Minimum, 0,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_MM],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_MARGIN_TOP],
LabelEnd,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_MARGIN_LEFT] = IntegerObject,
GA_ID, GID_OPTS_MARGIN_LEFT,
GA_RelVerify, TRUE,
INTEGER_Number, option_margin_left,
INTEGER_Minimum, 0,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_MARGIN_LEFT] = IntegerObject,
GA_ID, GID_OPTS_MARGIN_LEFT,
GA_RelVerify, TRUE,
INTEGER_Number, option_margin_left,
INTEGER_Minimum, 0,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_MM],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_MARGIN_LEFT],
LabelEnd,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_MARGIN_BOTTOM] = IntegerObject,
GA_ID, GID_OPTS_MARGIN_BOTTOM,
GA_RelVerify, TRUE,
INTEGER_Number, option_margin_bottom,
INTEGER_Minimum, 0,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_MARGIN_BOTTOM] = IntegerObject,
GA_ID, GID_OPTS_MARGIN_BOTTOM,
GA_RelVerify, TRUE,
INTEGER_Number, option_margin_bottom,
INTEGER_Minimum, 0,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_MM],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_MARGIN_BOTTOM],
LabelEnd,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_MARGIN_RIGHT] = IntegerObject,
GA_ID, GID_OPTS_MARGIN_RIGHT,
GA_RelVerify, TRUE,
INTEGER_Number, option_margin_right,
INTEGER_Minimum, 0,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_MARGIN_RIGHT] = IntegerObject,
GA_ID, GID_OPTS_MARGIN_RIGHT,
GA_RelVerify, TRUE,
INTEGER_Number, option_margin_right,
INTEGER_Minimum, 0,
INTEGER_Maximum, 99,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[LAB_OPTS_MM],
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_MARGIN_RIGHT],
LabelEnd,
@ -990,15 +1061,21 @@ void ami_gui_opts_open(void)
LAYOUT_SpaceOuter, TRUE,
LAYOUT_BevelStyle, BVS_GROUP,
LAYOUT_Label, gadlab[GRP_OPTS_SCALING],
LAYOUT_AddChild, gow->gadgets[GID_OPTS_EXPORT_SCALE] = IntegerObject,
GA_ID, GID_OPTS_EXPORT_SCALE,
GA_RelVerify, TRUE,
INTEGER_Number, option_export_scale,
INTEGER_Minimum, 0,
INTEGER_Maximum, 100,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
LAYOUT_AddChild, HGroupObject,
LAYOUT_LabelColumn, PLACETEXT_RIGHT,
LAYOUT_AddChild, gow->gadgets[GID_OPTS_EXPORT_SCALE] = IntegerObject,
GA_ID, GID_OPTS_EXPORT_SCALE,
GA_RelVerify, TRUE,
INTEGER_Number, option_export_scale,
INTEGER_Minimum, 0,
INTEGER_Maximum, 100,
INTEGER_Arrows, TRUE,
IntegerEnd,
CHILD_WeightedWidth, 0,
CHILD_Label, LabelObject,
LABEL_Text, "%",
LabelEnd,
LayoutEnd,
CHILD_Label, LabelObject,
LABEL_Text, gadlab[GID_OPTS_EXPORT_SCALE],
LabelEnd,
@ -1236,8 +1313,8 @@ void ami_gui_opts_use(void)
option_download_dir = (char *)strdup((char *)data);
GetAttr(GA_Selected,gow->gadgets[GID_OPTS_TAB_ACTIVE],(ULONG *)&data);
if(data) option_new_tab_active = true;
else option_new_tab_active = false;
if(data) option_new_tab_active = false;
else option_new_tab_active = true;
GetAttr(GA_Selected,gow->gadgets[GID_OPTS_TAB_2],(ULONG *)&data);
if(data) option_button_2_tab = true;

View File

@ -103,14 +103,14 @@ void ami_init_menulabs(void)
menulab[28] = NM_BARLABEL;
menulab[29] = ami_utf8_easy((char *)messages_get("ShowCookies"));
menulab[30] = NM_BARLABEL;
menulab[31] = ami_utf8_easy((char *)messages_get("**redraw"));
menulab[31] = ami_utf8_easy((char *)messages_get("Redraw"));
menulab[32] = ami_utf8_easy((char *)messages_get("Hotlist"));
menulab[33] = ami_utf8_easy((char *)messages_get("HotlistAdd"));
menulab[34] = ami_utf8_easy((char *)messages_get("HotlistShowNS"));
menulab[35] = NM_BARLABEL;
menulab[AMI_MENU_HOTLIST_MAX] = ami_utf8_easy((char *)messages_get("Settings"));
menulab[AMI_MENU_HOTLIST_MAX+1] = ami_utf8_easy((char *)messages_get("**edit prefs..."));
menulab[AMI_MENU_HOTLIST_MAX+1] = ami_utf8_easy((char *)messages_get("SettingsEdit"));
menulab[AMI_MENU_HOTLIST_MAX+2] = NM_BARLABEL;
menulab[AMI_MENU_HOTLIST_MAX+3] = ami_utf8_easy((char *)messages_get("SnapshotWindow"));
menulab[AMI_MENU_HOTLIST_MAX+4] = ami_utf8_easy((char *)messages_get("SettingsSave"));