Debian Codegraph @

texk/xdvik/gui/xm_menu.h

raw
1 /*
2 * Copyright (c) 2001 Marcin Dalecki
3 * Copyright (c) 2002-2004 the xdvik development team
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to
7 * deal in the Software without restriction, including without limitation the
8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 * sell copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
19 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 * OTHER DEALINGS IN THE SOFTWARE.
22 *
23 */
24
25 #ifndef XM_MENU_H_
26 #define XM_MENU_H_
27
28 #include "menu.h"
29
30 #ifdef MOTIF
31
32 #define Xdvi_FILEHIST_MENU "filehist_menu"
33
34 extern Widget xm_create_menu(Widget parent, char *title, char mnemonic,
35 struct button_info *item);
36
37 extern Boolean pulldown_menu_active(unsigned long event_num);
38 extern void toggle_menubar(void);
39 extern void popdown_callback(Widget w, XtPointer client_data, XtPointer call_data);
40 extern void filehist_menu_add_entry(const char *filename);
41 extern void filehist_menu_refresh(void);
42
43 #endif
44
45 #endif /* XM_MENU_H_ */