Back to index

tetex-bin  3.0
xm_menu.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001 Marcin Dalecki
00003  * Copyright (c) 2002-2004 the xdvik development team
00004  *
00005  * Permission is hereby granted, free of charge, to any person obtaining a copy
00006  * of this software and associated documentation files (the "Software"), to
00007  * deal in the Software without restriction, including without limitation the
00008  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
00009  * sell copies of the Software, and to permit persons to whom the Software is
00010  * furnished to do so, subject to the following conditions:
00011  *
00012  * The above copyright notice and this permission notice shall be included in
00013  * all copies or substantial portions of the Software.
00014  *
00015  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00016  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00017  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00018  * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
00019  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00020  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00021  * OTHER DEALINGS IN THE SOFTWARE.
00022  *
00023  */
00024 
00025 #ifndef XM_MENU_H_
00026 #define XM_MENU_H_
00027 
00028 #include "menu.h"
00029 
00030 #ifdef MOTIF
00031 
00032 #define Xdvi_FILEHIST_MENU  "filehist_menu"
00033 
00034 extern Widget xm_create_menu(Widget parent, char *title, char mnemonic,
00035                           struct button_info *item);
00036 
00037 extern Boolean pulldown_menu_active(unsigned long event_num);
00038 extern void toggle_menubar(void);
00039 extern void popdown_callback(Widget w, XtPointer client_data, XtPointer call_data);
00040 extern void filehist_menu_add_entry(const char *filename);
00041 extern void filehist_menu_refresh(void);
00042 
00043 #endif
00044 
00045 #endif /* XM_MENU_H_ */