ARB
Classes | Macros | Typedefs | Functions
AWT_sel_boxes.cxx File Reference
#include "awt.hxx"
#include "awt_sel_boxes.hxx"
#include <item_sel_list.h>
#include <aw_awars.hxx>
#include <aw_file.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <aw_edit.hxx>
#include <ad_config.h>
#include <ad_cb.h>
#include <arbdbt.h>
#include <arb_strarray.h>
#include <arb_file.h>
#include <arb_global_defs.h>
#include <arb_stdstring.h>
#include "awt_modules.hxx"
#include <BufferedFileReader.h>
#include <list>
#include <map>
#include <set>
Include dependency graph for AWT_sel_boxes.cxx:

Go to the source code of this file.

Classes

class  SelectionListSpec
 
class  ALI_selection
 
class  ALI_sellst_spec
 
struct  AWT_tree_selection
 
class  PT_selection
 
struct  AWT_configuration_selection
 
class  SAI_selection
 
class  SAI_sellst_spec
 
class  AW_subset_selection
 

Macros

#define PT_SERVERNAME_LENGTH   23
 
#define PT_SERVERNAME_SELLIST_WIDTH   30
 
#define SUBSET_NOELEM_DISPLAY   "<none>"
 

Typedefs

typedef map< string, AW_window * > WinMap
 

Functions

static void popup_SelectionListSpec_cb (UNFIXED, const SelectionListSpec *spec)
 
AW_DB_selectionawt_create_ALI_selection_list (GBDATA *gb_main, AW_window *aws, const char *varname, const char *ali_type_match)
 
void awt_create_ALI_selection_button (GBDATA *gb_main, AW_window *aws, const char *varname, const char *ali_type_match)
 
void awt_reconfigure_ALI_selection_list (AW_DB_selection *dbsel, const char *ali_type_match)
 
AW_DB_selectionawt_create_TREE_selection_list (GBDATA *gb_main, AW_window *aws, const char *varname)
 
static void ptserverlog_changed_cb (const char *)
 
static void arbtcpdat_changed_cb (const char *)
 
void awt_edit_arbtcpdat_cb (AW_window *)
 
void awt_auto_popdown_cb (AW_root *, AW_window_simple *aw_popup)
 
static charreadable_pt_servername (int index, int maxlength)
 
static void update_ptserver_button (AW_root *, AW_awar *awar_ptserver, AW_awar *awar_buttontext_name)
 
static AW_windowcreate_PTSERVER_selection_window (AW_root *aw_root, const char *varname)
 
void awt_create_PTSERVER_selection_button (AW_window *aws, const char *varname)
 
void awt_create_PTSERVER_selection_list (AW_window *aws, const char *varname)
 
AW_DB_selectionawt_create_CONFIG_selection_list (GBDATA *gb_main, AW_window *aws, const char *varname)
 
static charget_SAI_description (GBDATA *gb_extended)
 
const
SaiSelectionlistFilterCallback & 
awt_std_SAI_filter_cb ()
 
void awt_popup_SAI_selection_list (AW_window *, const char *awar_name, GBDATA *gb_main)
 
AW_DB_selectionawt_create_SAI_selection_list (GBDATA *gb_main, AW_window *aws, const char *varname, const SaiSelectionlistFilterCallback &fcb)
 
void awt_create_SAI_selection_button (GBDATA *gb_main, AW_window *aws, const char *varname, const SaiSelectionlistFilterCallback &fcb)
 
static GB_ERROR standard_list2file (const CharPtrArray &display, const CharPtrArray &value, StrArray &line)
 
static GB_ERROR standard_file2list (const CharPtrArray &line, StrArray &display, StrArray &value)
 
charget_shared_sellist_awar_base (const TypedSelectionList &typedsellst)
 
charget_shared_sellist_awar_name (const TypedSelectionList &typedsellst, const char *name)
 
static void save_list_cb (AW_window *aww, const StorableSelectionList *storabsellist)
 
static void load_list_cb (AW_window *aww, const StorableSelectionList *storabsellist)
 
AW_windowcreate_save_box_for_selection_lists (AW_root *aw_root, const StorableSelectionList *storabsellist)
 
AW_windowcreate_load_box_for_selection_lists (AW_root *aw_root, const StorableSelectionList *storabsellist)
 
void awt_clear_selection_list_cb (AW_window *, AW_selection_list *sellist)
 
void create_print_box_for_selection_lists (AW_window *aw_window, const TypedSelectionList *typedsellist)
 
AW_windowawt_create_load_box (AW_root *aw_root, const char *action, const char *what, const char *default_directory, const char *file_extension, char **set_file_name_awar, const WindowCallback &ok_cb, const WindowCallback &close_cb, const char *close_button_text)
 
static void collect_subset_cb (AW_window *, awt_collect_mode what, AW_subset_selection *subsel)
 
static void reorder_subset_cb (AW_window *, awt_reorder_mode dest, AW_subset_selection *subsel)
 
static void correct_subselection_cb (AW_selection_list *parent_sel, AW_CL cl_subsel)
 
AW_selectionawt_create_subset_selection_list (AW_window *aww, AW_selection_list *parent_selection, const char *at_box, const char *at_add, const char *at_sort, bool autocorrect_subselection, SubsetChangedCb subChanged_cb, AW_CL cl_user)
 
void awt_set_subset_selection_content (AW_selection *subset_sel_, const CharPtrArray &values)
 
AW_selection_listawt_create_selection_list_with_input_field (AW_window *aww, const char *awar_name, const char *at_box, const char *at_field)
 

Macro Definition Documentation

#define PT_SERVERNAME_LENGTH   23
#define PT_SERVERNAME_SELLIST_WIDTH   30

Definition at line 241 of file AWT_sel_boxes.cxx.

Referenced by create_PTSERVER_selection_window().

#define SUBSET_NOELEM_DISPLAY   "<none>"

Definition at line 979 of file AWT_sel_boxes.cxx.

Typedef Documentation

typedef map<string, AW_window*> WinMap

Definition at line 40 of file AWT_sel_boxes.cxx.

Function Documentation

static void popup_SelectionListSpec_cb ( UNFIXED  ,
const SelectionListSpec spec 
)
static

Definition at line 97 of file AWT_sel_boxes.cxx.

References SelectionListSpec::popup().

Referenced by SelectionListSpec::createButton().

AW_DB_selection* awt_create_ALI_selection_list ( GBDATA gb_main,
AW_window aws,
const char varname,
const char ali_type_match 
)
void awt_create_ALI_selection_button ( GBDATA gb_main,
AW_window aws,
const char varname,
const char ali_type_match 
)

Definition at line 177 of file AWT_sel_boxes.cxx.

Referenced by NT_create_realign_dna_window().

void awt_reconfigure_ALI_selection_list ( AW_DB_selection dbsel,
const char ali_type_match 
)

Definition at line 181 of file AWT_sel_boxes.cxx.

References ALI_selection::reconfigure().

Referenced by alitype_changed_cb().

AW_DB_selection* awt_create_TREE_selection_list ( GBDATA gb_main,
AW_window aws,
const char varname 
)
static void ptserverlog_changed_cb ( const char )
static

Definition at line 283 of file AWT_sel_boxes.cxx.

References PT_selection::refresh_all().

Referenced by PT_selection::PT_selection().

static void arbtcpdat_changed_cb ( const char )
static

Definition at line 284 of file AWT_sel_boxes.cxx.

References PT_selection::refresh_all().

Referenced by awt_edit_arbtcpdat_cb().

void awt_edit_arbtcpdat_cb ( AW_window )
void awt_auto_popdown_cb ( AW_root ,
AW_window_simple *  aw_popup 
)

auto pops-down a simple selection window when the awar bound to the selection list gets changed.

Definition at line 303 of file AWT_sel_boxes.cxx.

Referenced by create_PTSERVER_selection_window(), RegFieldSelection::create_window(), NT_create_select_alignment_window(), NT_create_select_tree_window(), and SelectionListSpec::popup().

static char* readable_pt_servername ( int  index,
int  maxlength 
)
static
static void update_ptserver_button ( AW_root ,
AW_awar awar_ptserver,
AW_awar awar_buttontext_name 
)
static
static AW_window* create_PTSERVER_selection_window ( AW_root aw_root,
const char varname 
)
static
void awt_create_PTSERVER_selection_button ( AW_window aws,
const char varname 
)
void awt_create_PTSERVER_selection_list ( AW_window aws,
const char varname 
)

Definition at line 395 of file AWT_sel_boxes.cxx.

References AW_window::create_selection_list().

Referenced by create_probe_admin_window().

AW_DB_selection* awt_create_CONFIG_selection_list ( GBDATA gb_main,
AW_window aws,
const char varname 
)
static char* get_SAI_description ( GBDATA gb_extended)
static
const SaiSelectionlistFilterCallback& awt_std_SAI_filter_cb ( )

Definition at line 485 of file AWT_sel_boxes.cxx.

References get_SAI_description().

Referenced by awt_popup_SAI_selection_list().

void awt_popup_SAI_selection_list ( AW_window ,
const char awar_name,
GBDATA gb_main 
)

Definition at line 548 of file AWT_sel_boxes.cxx.

References awt_std_SAI_filter_cb(), and SelectionListSpec::popup().

Referenced by createSaiProbeMatchWindow().

AW_DB_selection* awt_create_SAI_selection_list ( GBDATA gb_main,
AW_window aws,
const char varname,
const SaiSelectionlistFilterCallback &  fcb 
)
void awt_create_SAI_selection_button ( GBDATA gb_main,
AW_window aws,
const char varname,
const SaiSelectionlistFilterCallback &  fcb 
)
static GB_ERROR standard_list2file ( const CharPtrArray display,
const CharPtrArray value,
StrArray &  line 
)
static
static GB_ERROR standard_file2list ( const CharPtrArray line,
StrArray &  display,
StrArray &  value 
)
static
char* get_shared_sellist_awar_base ( const TypedSelectionList typedsellst)
inline
char* get_shared_sellist_awar_name ( const TypedSelectionList typedsellst,
const char name 
)
inline
static void save_list_cb ( AW_window aww,
const StorableSelectionList storabsellist 
)
static
static void load_list_cb ( AW_window aww,
const StorableSelectionList storabsellist 
)
static
AW_window* create_save_box_for_selection_lists ( AW_root aw_root,
const StorableSelectionList storabsellist 
)
AW_window* create_load_box_for_selection_lists ( AW_root aw_root,
const StorableSelectionList storabsellist 
)
void awt_clear_selection_list_cb ( AW_window ,
AW_selection_list sellist 
)
void create_print_box_for_selection_lists ( AW_window aw_window,
const TypedSelectionList typedsellist 
)
AW_window* awt_create_load_box ( AW_root aw_root,
const char action,
const char what,
const char default_directory,
const char file_extension,
char **  set_file_name_awar,
const WindowCallback &  ok_cb,
const WindowCallback &  close_cb,
const char close_button_text 
)
static void collect_subset_cb ( AW_window ,
awt_collect_mode  what,
AW_subset_selection subsel 
)
static
static void reorder_subset_cb ( AW_window ,
awt_reorder_mode  dest,
AW_subset_selection subsel 
)
static
static void correct_subselection_cb ( AW_selection_list parent_sel,
AW_CL  cl_subsel 
)
static
AW_selection* awt_create_subset_selection_list ( AW_window aww,
AW_selection_list parent_selection,
const char at_box,
const char at_add,
const char at_sort,
bool  autocorrect_subselection,
SubsetChangedCb  subChanged_cb,
AW_CL  cl_user 
)
void awt_set_subset_selection_content ( AW_selection subset_sel_,
const CharPtrArray values 
)

sets content of a subset-selection-list

Parameters
subset_sel_selection list created by awt_create_subset_selection_list()
valuese.g. retrieved using subset_sel_->get_values()

Definition at line 1200 of file AWT_sel_boxes.cxx.

References AW_subset_selection::fill_entries_matching_values().

Referenced by create_configuration_marker_window(), selected_configs_awar_changed_cb(), and source_sai_list_changed_cb().

AW_selection_list* awt_create_selection_list_with_input_field ( AW_window aww,
const char awar_name,
const char at_box,
const char at_field 
)

create selection_list and input_field on awar 'awar_name'

Parameters
awwwindow where to create gui elements
at_boxposition of selection_list
at_fieldposition of input_field

Definition at line 1209 of file AWT_sel_boxes.cxx.

References AW_window::at(), AW_window::create_input_field(), and AW_window::create_selection_list().

Referenced by create_config_manager_window(), create_loadsave_colored_window(), create_SAI_group_window(), and ED4_create_modsai_window().