diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-10-11 21:38:04 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-10-11 21:38:04 +0000 |
commit | 86042c61eae1b38474b8e20ece95b2220a659ae4 (patch) | |
tree | 4beae93c3cb85d5e6f6be1c36764660e643864e4 /amiga/menu.c | |
parent | 3b0c91c91ddc42bb76fbf30b0f2384c7369415c7 (diff) | |
download | netsurf-86042c61eae1b38474b8e20ece95b2220a659ae4.tar.gz netsurf-86042c61eae1b38474b8e20ece95b2220a659ae4.tar.bz2 |
Improved Amiga treeview support. Now creates trees for cookies and history (history
doesn't populate at the moment). Can add folders and edit titles in hotlist
treeviews, and delete entries in all treeviews.
svn path=/trunk/netsurf/; revision=5542
Diffstat (limited to 'amiga/menu.c')
-rwxr-xr-x | amiga/menu.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/amiga/menu.c b/amiga/menu.c index 6af77e821..b4f728528 100755 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -32,6 +32,8 @@ #include "desktop/save_pdf/pdf_plotters.h" #include <string.h> #include "amiga/tree.h" +#include "amiga/history.h" +#include "amiga/cookies.h" void ami_free_menulabs(void) { @@ -69,6 +71,8 @@ void ami_init_menulabs(void) menulab[21] = ami_utf8_easy((char *)messages_get("Settings")); menulab[22] = ami_utf8_easy((char *)messages_get("SnapshotWindow")); menulab[23] = ami_utf8_easy((char *)messages_get("SettingsSave")); + menulab[24] = ami_utf8_easy((char *)messages_get("GlobalHistory")); + menulab[25] = ami_utf8_easy((char *)messages_get("ShowCookies")); } struct NewMenu *ami_create_menu(ULONG type) @@ -100,6 +104,8 @@ struct NewMenu *ami_create_menu(ULONG type) {NM_TITLE,0,0,0,0,0,}, // settings { NM_ITEM,0,0,0,0,0,}, // snapshot window { NM_ITEM,0,0,0,0,0,}, // save settings + { NM_ITEM,0,0,0,0,0,}, // show history + { NM_ITEM,0,0,0,0,0,}, // show cookies { NM_END,0,0,0,0,0,}, }; @@ -276,7 +282,7 @@ config option for this? */ break; case 1: // show - ami_open_tree(hotlist); + ami_open_tree(hotlist,AMI_TREE_HOTLIST); break; } break; @@ -294,6 +300,14 @@ config option for this? */ case 1: // save settings options_write("Resources/Options"); break; + + case 2: // global history + ami_open_tree(global_history_tree,AMI_TREE_HISTORY); + break; + + case 3: // cookies tree + ami_open_tree(cookies_tree,AMI_TREE_COOKIES); + break; } break; } |