1 /* $Id: menu.h,v 1.14 2008/01/04 22:11:03 yooden Exp $ */
2 /*******************************************************************************
4 * menu.h -- Nirvana Editor Menu Header File *
6 * Copyright 2004 The NEdit Developers *
8 * This is free software; you can redistribute it and/or modify it under the *
9 * terms of the GNU General Public License as published by the Free Software *
10 * Foundation; either version 2 of the License, or (at your option) any later *
11 * version. In addition, you may distribute versions of this program linked to *
12 * Motif or Open Motif. See README for details. *
14 * This software is distributed in the hope that it will be useful, but WITHOUT *
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
19 * You should have received a copy of the GNU General Public License along with *
20 * software; if not, write to the Free Software Foundation, Inc., 59 Temple *
21 * Place, Suite 330, Boston, MA 02111-1307 USA *
23 * Nirvana Text Editor *
26 *******************************************************************************/
28 #ifndef NEDIT_MENU_H_INCLUDED
29 #define NEDIT_MENU_H_INCLUDED
33 #include <X11/Intrinsic.h>
36 #define PERMANENT_MENU_ITEM (XtPointer)1
37 #define TEMPORARY_MENU_ITEM (XtPointer)2
39 Widget
CreateMenuBar(Widget parent
, WindowInfo
*window
);
40 void InstallMenuActions(XtAppContext context
);
41 XtActionsRec
*GetMenuActions(int *nActions
);
42 void InvalidateWindowMenus(void);
43 void CheckCloseDim(void);
44 void AddToPrevOpenMenu(const char *filename
);
45 void WriteNEditDB(void);
46 void ReadNEditDB(void);
47 Widget
CreateBGMenu(WindowInfo
*window
);
48 void AddBGMenuAction(Widget widget
);
49 void HidePointerOnKeyedEvent(Widget w
, XEvent
*event
);
50 Widget
CreateTabContextMenu(Widget parent
, WindowInfo
*window
);
51 void AddTabContextMenuAction(Widget widget
);
52 void ShowHiddenTearOff(Widget menuPane
);
54 #endif /* NEDIT_MENU_H_INCLUDED */