ARB
Macros | Functions | Variables
AW_window.cxx File Reference
#include "aw_at.hxx"
#include "aw_nawar.hxx"
#include "aw_xfig.hxx"
#include "aw_Xm.hxx"
#include "aw_window.hxx"
#include "aw_window_Xm.hxx"
#include "aw_xkey.hxx"
#include "aw_select.hxx"
#include "aw_awar.hxx"
#include "aw_msg.hxx"
#include "aw_root.hxx"
#include "aw_xargs.hxx"
#include "aw_device_click.hxx"
#include "aw_localdef.hxx"
#include <arbdbt.h>
#include <arb_file.h>
#include <arb_str.h>
#include <arb_strarray.h>
#include <X11/Shell.h>
#include <Xm/AtomMgr.h>
#include <Xm/Frame.h>
#include <Xm/PushB.h>
#include <Xm/Protocols.h>
#include <Xm/RowColumn.h>
#include <Xm/DrawingA.h>
#include <Xm/Form.h>
#include <Xm/Separator.h>
#include <Xm/MainW.h>
#include <Xm/CascadeB.h>
#include <Xm/MenuShell.h>
#include <Xm/ScrollBar.h>
#include <Xm/MwmUtil.h>
#include "aw_question.hxx"
#include <cctype>
#include <map>
#include <string>
Include dependency graph for AW_window.cxx:

Go to the source code of this file.

Macros

#define NOWINWARN()
 
#define LAYOUT_AWAR_ROOT   "window/windows"
 
#define BUFSIZE   256
 
#define aw_awar_name_posx(aww)   aw_size_awar_name((aww), "posx")
 
#define aw_awar_name_posy(aww)   aw_size_awar_name((aww), "posy")
 
#define aw_awar_name_width(aww)   aw_size_awar_name((aww), "width")
 
#define aw_awar_name_height(aww)   aw_size_awar_name((aww), "height")
 
#define aw_awar_name_reset(aww)   aw_size_awar_name((aww), "reset")
 
#define CopyFromParent_AsPtr   NULp
 
#define MODE_BUTTON_OFFSET   34
 

Functions

void AW_POPDOWN (AW_window *window)
 
static AW_windowfind_or_createAndRegisterWindow (CreateWindowCallback *windowMaker)
 
static float apply_ScalerType (float val, AW_ScalerType scalerType, bool inverse)
 
static unsigned timed_window_title_cb (AW_root *, char *title, AW_window *aw)
 
static void AW_xfigCB_info_area (AW_window *aww, AW_xfig *xfig)
 
static void AW_focusCB (Widget, XtPointer cl_aww, XEvent *, Boolean *)
 
static void horizontal_scrollbar_redefinition_cb (AW_root *, AW_window *aw)
 
static void vertical_scrollbar_redefinition_cb (AW_root *, AW_window *aw)
 
static void value_changed_scroll_bar_vertical (Widget, XtPointer aw_cb_struct, XtPointer call_data)
 
static void value_changed_scroll_bar_horizontal (Widget, XtPointer aw_cb_struct, XtPointer call_data)
 
static void drag_scroll_bar_vertical (Widget, XtPointer aw_cb_struct, XtPointer call_data)
 
static void drag_scroll_bar_horizontal (Widget, XtPointer aw_cb_struct, XtPointer call_data)
 
static const charaw_size_awar_name (AW_window *aww, const char *sub_entry)
 
static void aw_onExpose_calc_WM_offsets (AW_window *aww)
 
static unsigned aw_calc_WM_offsets_delayed (AW_root *, AW_window *aww)
 
void AW_server_callback (Widget, XtPointer aw_cb_struct, XtPointer)
 
static void AW_exposeCB (Widget, XtPointer aw_cb_struct, XmDrawingAreaCallbackStruct *call_data)
 
static int is_resize_event (Display *display, XEvent *event, XPointer)
 
static void cleanupResizeEvents (Display *display)
 
static void aw_window_avoid_destroy_cb (Widget, AW_window *, XmAnyCallbackStruct *)
 
static void aw_window_noexit_destroy_cb (Widget, AW_window *aww, XmAnyCallbackStruct *)
 
static void aw_window_destroy_cb (Widget, AW_window *aww, XmAnyCallbackStruct *)
 
static void aw_set_delete_window_cb (AW_window *aww, Widget shell, bool allow_close)
 
static void aw_update_window_geometry_awars (AW_window *aww)
 
static void AW_resizeCB_draw_area (Widget, XtPointer aw_cb_struct, XtPointer)
 
static void AW_inputCB_draw_area (Widget wgt, XtPointer aw_cb_struct, XmDrawingAreaCallbackStruct *call_data)
 
static void AW_motionCB (Widget, XtPointer aw_cb_struct, XEvent *ev, Boolean *)
 
static long destroy_awar (const char *, long val, void *)
 
void aw_insert_default_help_entries (AW_window *aww)
 
charstrdup_getlen (const char *str, int &len)
 
void AW_label_in_awar_list (AW_window *aww, Widget widget, const char *str)
 
static void aw_loop_get_window_geometry (const char *, long val, void *)
 
void aw_update_all_window_geometry_awars (AW_root *awr)
 
static void aw_loop_forget_window_geometry (const char *, long val, void *)
 
void AW_forget_all_window_geometry (AW_window *aww)
 
static const charexistingPixmap (const char *icon_relpath, const char *name)
 
static Pixmap getIcon (Screen *screen, const char *iconName, Pixel foreground, Pixel background)
 
 STATIC_ASSERT_ANNOTATED (CopyFromParent==0,"value of CopyFromParent changed. Check use below")
 
Widget aw_create_shell (AW_window *aww, bool allow_resize, bool allow_close, int width, int height, int posx, int posy)
 
void aw_realize_widget (AW_window *aww)
 
static void aw_mode_callback (AW_window *aww, short mode, AW_cb *cbs)
 
int yoffset_for_mode_button (int button_number)
 

Variables

static char aw_size_awar_name_buffer [BUFSIZE]
 

Macro Definition Documentation

#define NOWINWARN ( )

CB wrapper for create_*_window calls to ensure that a window is only created once.

Definition at line 64 of file AW_window.cxx.

Referenced by find_or_createAndRegisterWindow().

#define LAYOUT_AWAR_ROOT   "window/windows"

Definition at line 1193 of file AW_window.cxx.

Referenced by AW_forget_all_window_geometry(), and aw_size_awar_name().

#define BUFSIZE   256

Definition at line 1194 of file AW_window.cxx.

Referenced by aw_size_awar_name().

#define aw_awar_name_posx (   aww)    aw_size_awar_name((aww), "posx")

Definition at line 1210 of file AW_window.cxx.

Referenced by AW_window::create_user_geometry_awars().

#define aw_awar_name_posy (   aww)    aw_size_awar_name((aww), "posy")

Definition at line 1211 of file AW_window.cxx.

Referenced by AW_window::create_user_geometry_awars().

#define aw_awar_name_width (   aww)    aw_size_awar_name((aww), "width")

Definition at line 1212 of file AW_window.cxx.

Referenced by AW_window::create_user_geometry_awars().

#define aw_awar_name_height (   aww)    aw_size_awar_name((aww), "height")

Definition at line 1213 of file AW_window.cxx.

Referenced by AW_window::create_user_geometry_awars().

#define aw_awar_name_reset (   aww)    aw_size_awar_name((aww), "reset")

Definition at line 1214 of file AW_window.cxx.

Referenced by AW_window::create_user_geometry_awars().

#define CopyFromParent_AsPtr   NULp

Definition at line 2256 of file AW_window.cxx.

Referenced by aw_create_shell().

#define MODE_BUTTON_OFFSET   34

Definition at line 2981 of file AW_window.cxx.

Referenced by yoffset_for_mode_button().

Function Documentation

void AW_POPDOWN ( AW_window window)

Definition at line 52 of file AW_window.cxx.

References AW_window::hide().

Referenced by ALI_create_admin_window(), AP_create_con_expert_window(), AP_create_max_freq_window(), AP_create_pos_var_pars_window(), aw_clear_and_hide_message_cb(), aw_create_color_chooser_window(), aw_create_font_chooser_window(), AW_create_gc_window_named(), AW_help_popup(), aw_initstatus(), AW_popup_gc_color_groups_window(), AW_popup_gc_color_range_window(), AW_popup_namesadmin_window(), AW_preset_window(), AWT_activate_prompt(), AWT_create_ascii_print_window(), awt_create_input_mask(), AWT_create_IUPAC_info_window(), awt_create_select_cancel_window(), awt_create_select_filter_win(), AWT_create_www_window(), AWT_popup_print_window(), AWT_popup_sec_export_window(), AWT_popup_tree_export_window(), AWTC_create_rename_window(), AWTC_create_submission_window(), COLSTAT_create_selection_window(), create_aciapp_config_window(), create_AWTC_export_window(), create_boolchain_config_window(), create_calltexe_window(), create_colorize_window(), create_colorTranslationTable_window(), FormatTester::create_common_gui(), create_config_manager_window(), create_configuration_admin_window(), create_configuration_marker_window(), TreeAdmin::create_copy_or_rename_window(), create_dna_matrix_window(), create_dup_config_window_cb(), create_editColorTranslationTable_window(), create_expert_naligner_window(), create_family_settings_window(), create_field_convert_window(), DBUI::create_field_create_window(), DBUI::create_field_delete_window(), DBUI::create_fields_reorder_window(), create_group_rename_window_cb(), create_group_species_by_field_window(), create_helix_props_window(), create_insertDeleteBySAI_window(), create_insertDeleteColumn_window(), create_island_hopping_window(), create_IUPAC_resolve_window(), create_kernighan_properties_window(), create_key_map_window(), create_load_box_for_selection_lists(), create_loadsave_colored_window(), create_matrix_config_window(), create_matrix_settings_window(), create_mg_check_fields_window(), create_mg_merge_tagged_fields_window(), create_modify_fields_window(), create_naligner_window(), create_nds_export_window(), create_new_input_mask(), create_next_neighbours_listed_window(), create_next_neighbours_selected_window(), create_primer_design_result_window(), create_primer_design_window(), create_probe_admin_window(), create_probe_design_window(), create_probe_expert_window(), create_probe_match_window(), create_probe_match_with_specificity_window(), create_PTSERVER_selection_window(), RefEntries::create_refentries_window(), MP_Window::create_result_window(), create_SAI_group_window(), create_save_box_for_selection_lists(), create_select_other_tree_window(), create_set_protection_window(), create_special_naligner_window(), DBUI::create_species_query_window(), create_translator_config_window(), create_tree_bootstrap_settings_window(), create_tree_expert_settings_window(), create_tree_export_window(), create_tree_import_window(), create_tree_select_window_cb(), RegFieldSelection::create_window(), create_writeFieldOfListed_window(), CreateChangeMolecule_window(), CreateDisplayBases_window(), createDisplayField_window(), CreateDisplayHelices_window(), CreateDisplayOptions_window(), CreateMapSequenceData_window(), createMergeSimilarSpeciesWindow(), createOptimizeWindow(), CreateRNA3DMainWindow(), createSaiProbeMatchWindow(), ItemFieldShader::customize(), AW_root::define_remote_command(), DI_create_cluster_detection_window(), DI_create_save_matrix_window(), DI_create_view_matrix_window(), ED4_configure_species_flags(), ED4_create_consensus_definition_window(), ED4_create_editor_options_window(), ED4_create_loadConfiguration_window(), ED4_create_loadSAI_window(), ED4_create_modsai_window(), ED4_create_nds_window(), ED4_create_new_seq_window(), ED4_create_replace_window(), ED4_create_saveConfigurationAs_window(), ED4_create_seq_colors_window(), ED4_create_viewDifferences_window(), ED4_CreateProteinViewer_window(), ED4_createVisualizeSAI_window(), ED4_pfold_create_props_window(), ED4_popup_detect_bad_alignment_window(), ED4_popup_dot_missing_bases_window(), ED4_popup_search_window(), ED4_zoom_message_window(), EXP_create_experiment_query_window(), FastAligner_create_window(), GDE_create_filename_browser_window(), GDE_menuitem_cb(), GEN_create_gene_query_window(), GEN_create_options_window(), GEN_open_nds_window(), get_gene_create_or_locationEdit_window(), import_window_close_cb(), GEN_map_window::init(), load_search_paras_from_file(), loadsave_search_parameters(), MG_create_merge_alignment_window(), MG_create_merge_configs_window(), MG_create_merge_names_window(), MG_create_merge_SAIs_window(), MG_create_merge_species_window(), MG_create_merge_trees_window(), MG_create_preserves_selection_window(), MG_create_save_as_window(), MG_gene_species_create_field_transfer_def_window(), MP_close_main(), NDS_create_window(), NDS_popup_select_srtaci_window(), new_sina_simple(), NT_create_colstat_2_gnuplot_window(), NT_create_compare_taxonomy_window(), NT_create_compareTopologies_window(), NT_create_consense_window(), NT_create_database_optimization_window(), NT_create_dna_2_pro_window(), NT_create_extendeds_window(), NT_create_merge_to_window(), NT_create_moveGroupInfo_window(), NT_create_multifurcate_tree_window(), NT_create_realign_dna_window(), NT_create_resort_window(), NT_create_save_as(), NT_create_save_quick_as_window(), NT_create_searchManuallyNames_window(), NT_create_select_alignment_window(), NT_create_select_tree_window(), NT_create_species_join_window(), NT_create_splitAlignment_window(), NT_create_startEditorOnOldConfiguration_window(), NT_create_syncroot_window(), NT_create_syncScroll_window(), NT_create_trackAliChanges_window(), NT_createConcatenationWindow(), PH_create_filter_window(), PH_save_markerline(), SelectionListSpec::popup(), AWT_configuration::popup_edit_window(), popup_group_clusters_window(), popup_group_search_window(), popup_interrupt_macro_window_cb(), popup_macro_window(), popup_new_experiment_window(), popup_new_gene_window(), popup_new_main_window(), popup_new_speciesOrganismWindow(), popup_probe_design_result_window(), popup_rule_definition_window(), popup_ruleset_admin_window(), popup_single_field_transfer_window(), popup_tree_admin_window(), AW_cb::run_callbacks(), SAI_popup_calculator_window(), save_search_paras_to_file(), SEC_create_bonddef_window(), SEC_create_display_window(), SEC_importExport(), SQ_create_seq_quality_window(), start_SECEDIT_plugin(), STAT_create_chimera_check_window(), STAT_create_main_window(), TREE_create_marker_settings_window(), and TREE_create_settings_window().

static AW_window* find_or_createAndRegisterWindow ( CreateWindowCallback *  windowMaker)
static

Definition at line 71 of file AW_window.cxx.

References NOWINWARN, NULp, and AW_root::SINGLETON.

static float apply_ScalerType ( float  val,
AW_ScalerType  scalerType,
bool  inverse 
)
static
static unsigned timed_window_title_cb ( AW_root ,
char title,
AW_window aw 
)
static
static void AW_xfigCB_info_area ( AW_window aww,
AW_xfig xfig 
)
static
static void AW_focusCB ( Widget  ,
XtPointer  cl_aww,
XEvent *  ,
Boolean  
)
static

Definition at line 770 of file AW_window.cxx.

References AW_window::run_focus_callback().

Referenced by AW_window::set_focus_callback().

static void horizontal_scrollbar_redefinition_cb ( AW_root ,
AW_window aw 
)
static
static void vertical_scrollbar_redefinition_cb ( AW_root ,
AW_window aw 
)
static
static void value_changed_scroll_bar_vertical ( Widget  ,
XtPointer  aw_cb_struct,
XtPointer  call_data 
)
static
static void value_changed_scroll_bar_horizontal ( Widget  ,
XtPointer  aw_cb_struct,
XtPointer  call_data 
)
static

Definition at line 1013 of file AW_window.cxx.

References AW_cb::aw, and AW_cb::run_callbacks().

Referenced by AW_window::set_horizontal_change_callback().

static void drag_scroll_bar_vertical ( Widget  ,
XtPointer  aw_cb_struct,
XtPointer  call_data 
)
static
static void drag_scroll_bar_horizontal ( Widget  ,
XtPointer  aw_cb_struct,
XtPointer  call_data 
)
static

Definition at line 1026 of file AW_window.cxx.

References AW_cb::aw, and AW_cb::run_callbacks().

Referenced by AW_window::set_horizontal_change_callback().

static const char* aw_size_awar_name ( AW_window aww,
const char sub_entry 
)
static
static void aw_onExpose_calc_WM_offsets ( AW_window aww)
static
static unsigned aw_calc_WM_offsets_delayed ( AW_root ,
AW_window aww 
)
static

Definition at line 1273 of file AW_window.cxx.

References aw_onExpose_calc_WM_offsets().

Referenced by aw_onExpose_calc_WM_offsets().

void AW_server_callback ( Widget  ,
XtPointer  aw_cb_struct,
XtPointer   
)
static void AW_exposeCB ( Widget  ,
XtPointer  aw_cb_struct,
XmDrawingAreaCallbackStruct *  call_data 
)
static
static int is_resize_event ( Display *  display,
XEvent *  event,
XPointer   
)
static

Definition at line 1578 of file AW_window.cxx.

Referenced by cleanupResizeEvents().

static void cleanupResizeEvents ( Display *  display)
static

Definition at line 1587 of file AW_window.cxx.

References is_resize_event(), and NULp.

Referenced by AW_resizeCB_draw_area().

static void aw_window_avoid_destroy_cb ( Widget  ,
AW_window ,
XmAnyCallbackStruct *   
)
static

Definition at line 1603 of file AW_window.cxx.

References aw_message().

Referenced by aw_set_delete_window_cb().

static void aw_window_noexit_destroy_cb ( Widget  ,
AW_window aww,
XmAnyCallbackStruct *   
)
static

Definition at line 1606 of file AW_window.cxx.

References AW_window::hide().

Referenced by aw_set_delete_window_cb().

static void aw_window_destroy_cb ( Widget  ,
AW_window aww,
XmAnyCallbackStruct *   
)
static
static void aw_set_delete_window_cb ( AW_window aww,
Widget  shell,
bool  allow_close 
)
static
static void aw_update_window_geometry_awars ( AW_window aww)
static
static void AW_resizeCB_draw_area ( Widget  ,
XtPointer  aw_cb_struct,
XtPointer   
)
static
static void AW_inputCB_draw_area ( Widget  wgt,
XtPointer  aw_cb_struct,
XmDrawingAreaCallbackStruct *  call_data 
)
static
static void AW_motionCB ( Widget  ,
XtPointer  aw_cb_struct,
XEvent *  ev,
Boolean  
)
static
static long destroy_awar ( const char ,
long  val,
void *   
)
static

Definition at line 2021 of file AW_window.cxx.

void aw_insert_default_help_entries ( AW_window aww)
char* strdup_getlen ( const char str,
int len 
)
inline

Definition at line 2146 of file AW_window.cxx.

References ARB_strduplen().

Referenced by Label::Label().

void AW_label_in_awar_list ( AW_window aww,
Widget  widget,
const char str 
)
static void aw_loop_get_window_geometry ( const char ,
long  val,
void *   
)
static

Definition at line 2190 of file AW_window.cxx.

References aw_update_window_geometry_awars().

Referenced by aw_update_all_window_geometry_awars().

void aw_update_all_window_geometry_awars ( AW_root awr)
static void aw_loop_forget_window_geometry ( const char ,
long  val,
void *   
)
static

Definition at line 2197 of file AW_window.cxx.

Referenced by AW_forget_all_window_geometry().

void AW_forget_all_window_geometry ( AW_window aww)
static const char* existingPixmap ( const char icon_relpath,
const char name 
)
static

Definition at line 2223 of file AW_window.cxx.

References AW_get_pixmapPath(), GB_is_regularfile(), GBS_global_string(), and NULp.

Referenced by getIcon().

static Pixmap getIcon ( Screen *  screen,
const char iconName,
Pixel  foreground,
Pixel  background 
)
static
STATIC_ASSERT_ANNOTATED ( CopyFromParent  = =0,
"value of CopyFromParent changed. Check use below"   
)
Widget aw_create_shell ( AW_window aww,
bool  allow_resize,
bool  allow_close,
int  width,
int  height,
int  posx,
int  posy 
)
void aw_realize_widget ( AW_window aww)
static void aw_mode_callback ( AW_window aww,
short  mode,
AW_cb cbs 
)
static

Definition at line 2976 of file AW_window.cxx.

References AW_cb::run_callbacks(), and AW_window::select_mode().

Referenced by AW_window::create_mode().

int yoffset_for_mode_button ( int  button_number)
inline

Definition at line 2982 of file AW_window.cxx.

References MODE_BUTTON_OFFSET.

Referenced by AW_window::create_mode().

Variable Documentation

char aw_size_awar_name_buffer[BUFSIZE]
static

Definition at line 1195 of file AW_window.cxx.

Referenced by aw_size_awar_name().