summaryrefslogtreecommitdiff
path: root/frontends/amiga/menu.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-14 20:51:51 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2017-01-14 20:51:51 +0000
commit313aaabdde2e6f0bb1f0dfe571b77261cc697a95 (patch)
treedf690f57aba6566a5a969186e01797f7df3df14a /frontends/amiga/menu.h
parent9f10babe645fe67b02fae90f852d5e4cdfcbb70e (diff)
downloadnetsurf-313aaabdde2e6f0bb1f0dfe571b77261cc697a95.tar.gz
netsurf-313aaabdde2e6f0bb1f0dfe571b77261cc697a95.tar.bz2
Replace OnMenu/OffMenu with MenuClass compatible abstraction
Diffstat (limited to 'frontends/amiga/menu.h')
-rw-r--r--frontends/amiga/menu.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/frontends/amiga/menu.h b/frontends/amiga/menu.h
index ad0e96d93..43f7e1e60 100644
--- a/frontends/amiga/menu.h
+++ b/frontends/amiga/menu.h
@@ -115,24 +115,6 @@ enum {
* only used for freeing the UTF-8 converted menu labels */
#define AMI_MENU_MAX AMI_MENU_AREXX
-/* The Intuition menu numbers of some menus we might need to modify */
-#define AMI_MENU_SAVEAS_TEXT FULLMENUNUM(0,4,1)
-#define AMI_MENU_SAVEAS_COMPLETE FULLMENUNUM(0,4,2)
-#define AMI_MENU_SAVEAS_IFF FULLMENUNUM(0,4,3)
-#define AMI_MENU_SAVEAS_PDF FULLMENUNUM(0,4,4)
-#define AMI_MENU_CLOSETAB FULLMENUNUM(0,8,0)
-#define AMI_MENU_CUT FULLMENUNUM(1,0,0)
-#define AMI_MENU_COPY FULLMENUNUM(1,1,0)
-#define AMI_MENU_PASTE FULLMENUNUM(1,2,0)
-#define AMI_MENU_SELECTALL FULLMENUNUM(1,4,0)
-#define AMI_MENU_CLEAR FULLMENUNUM(1,5,0)
-#define AMI_MENU_UNDO FULLMENUNUM(1,8,0)
-#define AMI_MENU_REDO FULLMENUNUM(1,9,0)
-#define AMI_MENU_FIND FULLMENUNUM(2,0,0)
-#define AMI_MENU_FOREIMG FULLMENUNUM(2,8,0)
-#define AMI_MENU_BACKIMG FULLMENUNUM(2,8,1)
-#define AMI_MENU_JS FULLMENUNUM(2,9,0)
-
struct gui_window;
struct gui_window_2;
@@ -155,6 +137,11 @@ void ami_menu_update_disabled(struct gui_window *g, struct hlcache_handle *c);
void ami_menu_free(struct gui_window_2 *gwin);
/**
+ * Set disabled state of a menu item
+ */
+void ami_menu_set_disabled(struct Window *win, struct Menu *menu, int item, bool disable);
+
+/**
* Sets that an item linked to a toggle menu item has been changed.
*/
void ami_menu_set_check_toggled(void);