1 #ifndef AW_WINDOW_XM_HXX
2 #define AW_WINDOW_XM_HXX
25 #define p_global (root->prvt)
26 #define p_aww(aww) (aww->p_w)
28 #define MAP_ARAM(ar) p_w->areas[ar]
30 #define INFO_WIDGET p_w->areas[AW_INFO_AREA]->get_area()
31 #define INFO_FORM p_w->areas[AW_INFO_AREA]->get_form()
32 #define MIDDLE_WIDGET p_w->areas[AW_MIDDLE_AREA]->get_area()
33 #define BOTTOM_WIDGET p_w->areas[AW_BOTTOM_AREA]->get_area()
35 #define AW_SCROLL_MAX 100
36 #define AW_MAX_MENU_DEEP 10
38 #define RES_CONVERT(res_name, res_value) \
39 XtVaTypedArg, (res_name), XmRString, (res_value), strlen(res_value) + 1
41 #define AW_MOTIF_LABEL
51 size_t length()
const {
return len; }
52 const char *
String()
const {
return label; }
57 #define RES_LABEL_CONVERT(label) \
58 XmNlabelType, label.is_imageref() ? XmPIXMAP : XmSTRING, \
59 XtVaTypedArg, label.is_imageref() ? XmNlabelPixmap : XmNlabelString, \
64 #define AW_JUSTIFY_LABEL(widget, corr) \
66 case 1: XtVaSetValues(widget, XmNalignment, XmALIGNMENT_CENTER, NULp); break; \
67 case 2: XtVaSetValues(widget, XmNalignment, XmALIGNMENT_END, NULp); break; \
143 AW_device_Xm *device;
145 AW_device_print *print_device;
146 AW_device_click *click_device;
150 AW_cb *double_click_cb;
233 void set_cursor(Display *d, Window w, Cursor c);
238 #define AW_CALC_OFFSET_ON_EXPOSE -12345
288 #define AW_MESSAGE_LISTEN_DELAY 500 // look in ms whether a father died
301 GBK_terminatef(
"Cannot insert %s into %s which uses a non-%s AWAR", triedType, intoWhat, triedType);
305 #error aw_window_Xm.hxx included twice
AW_widget_value_pair * first_toggle
AW_VARIABLE_TYPE toggle_field_var_type
void set_input_callback(AW_window *aww, const WindowCallback &wcb)
AW_toggle_field_struct * last_toggle_field
AW_option_menu_struct * last_option_menu
#define AW_CALC_OFFSET_ON_EXPOSE
AW_cb * get_double_click_cb()
void set_last_widget(Widget w)
bool is_resize_callback(AnyWinCB f)
Widget menu_bar[AW_MAX_MENU_DEEP]
void message_cb(AW_window *, int result)
void run_expose_callback()
static int WM_max_left_offset
void input_cb(AW_window *aw, int buttonNr)
void GBK_terminatef(const char *templat,...)
AW_area_management(Widget form, Widget widget)
int correct_for_at_center_intern
AW_selection_list * last_selection_list
AW_option_menu_struct * option_menu_list
AW_selection_list * selection_list
Widget get_last_widget() const
static int WM_max_top_offset
Widget scroll_bar_horizontal
void input_history_cb(AW_window *aw, int mode)
char * toggle_field_var_name
void create_devices(AW_window *aww, AW_area ar)
void set_double_click_callback(AW_window *aww, const WindowCallback &wcb)
AW_cb ** modes_f_callbacks
Widget aw_create_shell(AW_window *aww, bool allow_resize, bool allow_close, int width, int height, int posx, int posy)
AW_toggle_field_struct * toggle_field_list
AW_device_click * get_click_device()
AW_toggle_field_struct * next
bool knows_WM_offset() const
AW_area_management * areas[AW_MAX_AREA]
Widget scroll_bar_vertical
AW_device_Xm * get_screen_device()
class AW_window * main_aww
Label(const char *labeltext, AW_window *aww)
void AW_label_in_awar_list(AW_window *aww, Widget widget, const char *str)
void aw_insert_default_help_entries(AW_window *aww)
void aw_root_init_font(Display *tool_d)
const int AW_NUMBER_OF_F_KEYS
void AW_server_callback(Widget wgt, XtPointer aw_cb_struct, XtPointer call_data)
WindowCallbackSimple AnyWinCB
bool is_expose_callback(AnyWinCB f)
void set_click_time(long click_time_)
void file_selection_cb(AW_window *aw, int ok_cancel_flag)
AW_widget_value_pair * last_toggle
void aw_realize_widget(AW_window *aww)
AW_device_size * get_size_device()
void set_resize_callback(AW_window *aww, const WindowCallback &cb)
unsigned aw_message_timer_listen_event(AW_root *awr, AW_window *aww)
void run_resize_callback()
__ATTR__NORETURN void type_mismatch(const char *triedType, const char *intoWhat)
AW_device_print * get_print_device()
AW_common_Xm * get_common() const
Display * old_cursor_display
long get_click_time() const
AW_option_menu_struct * current_option_menu
AW_VARIABLE_TYPE variable_type
AW_toggle_field_struct(int toggle_field_numberi, const char *variable_namei, AW_VARIABLE_TYPE variable_typei, Widget label_widgeti, int correct)
void set_cursor(Display *d, Window w, Cursor c)
void set_expose_callback(AW_window *aww, const WindowCallback &cb)
void set_motion_callback(AW_window *aww, const WindowCallback &wcb)
struct _WidgetRec * Widget
AW_widget_value_pair * default_toggle
const char * String() const