summaryrefslogtreecommitdiff
path: root/amiga/menu.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-10-14 22:43:02 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-10-14 22:43:02 +0000
commit1d8bbfae4cde28e9102ee0ed020ac28f499c1d59 (patch)
treec371325f7c62122e9a167dbdcd640150904a9d86 /amiga/menu.h
parenta55c1f6e41bb1f42bd82c7554d38146ac5570ecd (diff)
downloadnetsurf-1d8bbfae4cde28e9102ee0ed020ac28f499c1d59.tar.gz
netsurf-1d8bbfae4cde28e9102ee0ed020ac28f499c1d59.tar.bz2
Implemented the ability to add hotlist entries to the Hotlist menu. Modified the
default Hotlist links so they show up in the menu. Currently deleting items from the menu is dangerous. To add to the Hotlist menu, add a folder node called "Menu" to the root node of the hotlist tree. Items in this folder node up to a maximum (currently) of 40 items will be added to the Hotlist menu, within the limits of the Intuition menu system. Items in folders within the Menu folder node will be converted to subitems in the menu. Folder nodes with no entries and folder nodes at level 3 in the heirarchy will become menu items with no action. Items deeper will not be included in the menu at all. eg. Root | +- Menu | +- Netsurf | | | +- NetSurf Homepage | | | +- More NetSurf links | | | +- NetSurf bugtracker | +- Google Will look something like the following within the menu: |NetSurf ยป| - |NetSurf Homepage | |Google | |More NetSurf links| svn path=/trunk/netsurf/; revision=5577
Diffstat (limited to 'amiga/menu.h')
-rwxr-xr-xamiga/menu.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/amiga/menu.h b/amiga/menu.h
index 00ee5d1f7..0726842c6 100755
--- a/amiga/menu.h
+++ b/amiga/menu.h
@@ -20,12 +20,16 @@
#define AMIGA_MENU_H
#include <exec/types.h>
#include "amiga/gui.h"
+#include <intuition/intuition.h>
-#define AMI_MENU_MAX 27
+#define AMI_HOTLIST_ITEMS 40
+#define AMI_MENU_MAX 28 + AMI_HOTLIST_ITEMS
+#define AMI_MENU_HOTLIST 25
+#define AMI_MENU_HOTLIST_MAX AMI_MENU_HOTLIST+AMI_HOTLIST_ITEMS
char *menulab[AMI_MENU_MAX+1];
struct NewMenu *ami_create_menu(ULONG type);
void ami_init_menulabs(void);
void ami_free_menulabs(void);
-void ami_menupick(ULONG code,struct gui_window_2 *gwin);
+void ami_menupick(ULONG code,struct gui_window_2 *gwin,struct MenuItem *item);
#endif