! ! Declarations of application callbacks and communications codes. ! procedure register_widget (any); fix_parent_height(); fix_parent_fraction_width(); manage(); create_filetype_choices(); procedure file_cb (integer); file_select_cb (integer); value FILE_OPEN : 0; FILE_SAVE : 1; FILE_EXIT : 2; FILE_CLOSE : 3; value DIALOG_ERROR : 0; DIALOG_OPEN : 1; DIALOG_SAVE : 2; DIALOG_LIGHT : 3; procedure motif_dialog_cb(integer); shell_dialog_cb(integer); value DISPLAY_SMOOTH : 0; DISPLAY_FLAT : 1; DISPLAY_ORTHO : 2; DISPLAY_PERSPECTIVE : 3; DISPLAY_TEXTURE : 4; procedure display_cb (integer); toggle_ortho(); toggle_debug(); resize_notify(); expose_notify(); set_flat(); set_smooth(); set_wire(); set_texture(); procedure print(string); popdown_cb(); quit_cb(); ! ! Declarations of application defined data ! identifier w_drawing_output; w_text_output; ! ! Commonly used arguments ! list attachments : arguments { XmNtopAttachment = XmATTACH_FORM; XmNbottomAttachment = XmATTACH_FORM; XmNleftAttachment = XmATTACH_FORM; XmNrightAttachment = XmATTACH_FORM; }; list pos_attach : arguments { XmNtopAttachment = XmATTACH_POSITION; XmNleftAttachment = XmATTACH_POSITION; XmNrightAttachment = XmATTACH_POSITION; XmNbottomAttachment = XmATTACH_POSITION; };