Back to index

tetex-bin  3.0
xaw_menu.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001-2004 the xdvik development team
00003  *
00004  * Permission is hereby granted, free of charge, to any person obtaining a copy
00005  * of this software and associated documentation files (the "Software"), to
00006  * deal in the Software without restriction, including without limitation the
00007  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
00008  * sell copies of the Software, and to permit persons to whom the Software is
00009  * furnished to do so, subject to the following conditions:
00010  *
00011  * The above copyright notice and this permission notice shall be included in
00012  * all copies or substantial portions of the Software.
00013  *
00014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00017  * PAUL VOJTA OR ANY OTHER AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY CLAIM,
00018  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00020  * OTHER DEALINGS IN THE SOFTWARE.
00021  *
00022  */
00023 
00024 #ifndef XAW_MENU_H_
00025 #define XAW_MENU_H_
00026 
00027 #ifdef NEW_MENU_CREATION
00028 #include "menu.h"
00029 #endif /* NEW_MENU_CREATION */
00030 
00031 #ifndef MOTIF
00032 
00033 #ifdef NEW_MENU_CREATION
00034 extern void xaw_set_button_state(struct button_elems *elems, Boolean on);
00035 extern void xaw_initialize_menu_bitmaps(void);
00036 extern Widget xaw_create_menu_widgets(Widget parent);
00037 extern void xaw_create_menu(struct button_info *items, Widget parent, int *ret_width);
00038 extern void xaw_set_button_state(struct button_elems *elems, Boolean on);
00039 
00040 extern Pixmap menu_check_bitmap;
00041 extern Pixmap menu_uncheck_bitmap;
00042 #else
00043 extern void create_menu_buttons(Widget menu_bar, int *ret_panel_width);
00044 extern void toggle_menu(int val, XtActionProc proc);
00045 #endif /* NEW_MENU_CREATION */
00046 
00047 extern void SubMenuHandleEvent(XtAppContext app, XEvent *event);
00048 extern void filehist_menu_add_entry(const char *filename);
00049 extern int get_panel_width(void);
00050 
00051 extern void toggle_tick(Boolean val, Widget w);
00052 extern void set_button_panel_height(XtArgVal);
00053 extern void filehist_menu_refresh(void);
00054 
00055 extern void xaw_create_pagelist(void);
00056 extern void toggle_scrollbars(void);
00057 extern void toggle_buttons(void);
00058 extern void scroll_y_panner(int y);
00059 extern void scroll_x_panner(int x);
00060 #endif /* not MOTIF */
00061 
00062 #endif /* XAW_MENU_H_ */