ARB
Classes | Macros | Functions | Variables
ED4_no_class.cxx File Reference
#include <ed4_extern.hxx>
#include "ed4_awars.hxx"
#include "ed4_class.hxx"
#include "ed4_edit_string.hxx"
#include "ed4_nds.hxx"
#include "ed4_list.hxx"
#include "ed4_seq_colors.hxx"
#include "ed4_flags.hxx"
#include <iupac.h>
#include <consensus_config.h>
#include <item_sel_list.h>
#include <macros.hxx>
#include <awt.hxx>
#include <awt_config_manager.hxx>
#include <awt_misc.hxx>
#include <awt_sel_boxes.hxx>
#include <aw_awars.hxx>
#include <AW_helix.hxx>
#include <aw_msg.hxx>
#include <AW_rename.hxx>
#include <aw_root.hxx>
#include <ad_config.h>
#include <arb_defs.h>
#include <arb_global_defs.h>
#include <arb_progress.h>
#include <cctype>
#include <limits.h>
#include <vector>
Include dependency graph for ED4_no_class.cxx:

Go to the source code of this file.

Classes

struct  group_folding
 
struct  cursorpos
 
struct  SpeciesMergeList
 

Macros

#define SIGNIFICANT_FIELD_CHARS   30
 

Functions

static ARB_ERROR update_group_folding (ED4_base *base, group_folding *folding)
 
static void calculate_group_folding (group_folding &folding)
 
void ED4_calc_terminal_extentions ()
 
static ARB_ERROR update_extension_size (ED4_base *base)
 
void ED4_resize_all_extensions ()
 
static ARB_ERROR call_edit (ED4_base *object, ED4_work_info *work_info)
 
static void executeKeystroke (AW_event *event, int repeatCount)
 
void ED4_remote_event (AW_event *faked_event)
 
static int get_max_slider_xpos ()
 
static int get_max_slider_ypos ()
 
static void ed4_scroll (AW_window *aww, int xdiff, int ydiff)
 
void ED4_input_cb (AW_window *aww)
 
void ED4_vertical_change_cb (AW_window *aww)
 
void ED4_horizontal_change_cb (AW_window *aww)
 
void ED4_scrollbar_change_cb (AW_window *aww)
 
void ED4_motion_cb (AW_window *aww)
 
void ED4_remote_set_cursor_cb (AW_root *awr)
 
void ED4_jump_to_cursor_position (AW_window *aww, const char *awar_name, PositionType posType)
 
void ED4_set_helixnr (AW_window *aww, const char *awar_name)
 
void ED4_set_iupac (AW_window *aww, const char *awar_name)
 
void ED4_exit ()
 
void ED4_quit_editor (AW_window *aww)
 
static unsigned ED4_timer (AW_root *)
 
void ED4_trigger_instant_refresh ()
 
void ED4_request_full_refresh ()
 
void ED4_request_full_instant_refresh ()
 
void ED4_request_relayout ()
 
static void createGroupFromSelected (GB_CSTR group_name, GB_CSTR field_name, GB_CSTR field_content)
 
static void group_species (bool use_field, AW_window *use_as_main_window)
 
static void group_species_by_field_content (AW_window *, AW_window *use_as_main_window, AW_window *window_to_hide)
 
static AW_windowcreate_group_species_by_field_window (AW_root *aw_root, AW_window *use_as_main_window)
 
void group_species_cb (AW_window *aww, bool use_fields)
 
static GB_ERROR ED4_load_new_config (char *name)
 
static ED4_EDITMODE ED4_get_edit_mode (AW_root *root)
 
void ed4_changesecurity (AW_root *root)
 
void ed4_change_edit_mode (AW_root *root)
 
ARB_ERROR rebuild_consensus (ED4_base *object)
 
void ED4_new_editor_window (AW_window *aww)
 
static void ED4_start_editor_on_configuration (AW_window *aww)
 
void ED4_compression_changed_cb (AW_root *awr)
 
void ED4_compression_toggle_changed_cb (AW_root *root, bool hideChanged)
 
AW_windowED4_create_editor_options_window (AW_root *root)
 
AW_windowED4_create_consensus_definition_window (AW_root *root)
 
static void consensus_upper_lower_changed_cb (AW_root *awr, bool upper_changed)
 
void ED4_create_consensus_awars (AW_root *aw_root)
 
void ED4_reloadConfiguration (AW_window *aww)
 
AW_windowED4_create_loadConfiguration_window (AW_root *awr)
 
void ED4_saveConfiguration (AW_window *aww, bool hide_aww)
 
AW_windowED4_create_saveConfigurationAs_window (AW_root *awr)
 
static charfilter_loadable_SAIs (GBDATA *gb_sai)
 
AW_windowED4_create_loadSAI_window (AW_root *awr)
 
static GB_ERROR createDataFromConsensus (GBDATA *gb_species, ED4_group_manager *group_man)
 
static ARB_ERROR add_species_to_merge_list (ED4_base *base, SpeciesMergeList **smlp, GBDATA *gb_species_data)
 
static int SpeciesMergeListLength (SpeciesMergeList *sml)
 
static void freeSpeciesMergeList (SpeciesMergeList *sml)
 
bool nameIsUnique (const char *short_name, GBDATA *gb_species_data)
 
static void create_new_species (AW_window *, SpeciesCreationMode creation_mode)
 
AW_windowED4_create_new_seq_window (AW_root *root, SpeciesCreationMode creation_mode)
 

Variables

static int timer_calls = 0
 
static int timer_calls_triggered = 0
 
static AWT_config_mapping_def editor_options_config_mapping []
 
static AWT_config_mapping_def consensus_config_mapping []
 

Macro Definition Documentation

#define SIGNIFICANT_FIELD_CHARS   30

Definition at line 979 of file ED4_no_class.cxx.

Referenced by createGroupFromSelected(), and group_species().

Function Documentation

static ARB_ERROR update_group_folding ( ED4_base base,
group_folding folding 
)
static
static void calculate_group_folding ( group_folding folding)
static

Definition at line 81 of file ED4_no_class.cxx.

References ED4_ROOT, ED4_root::main_manager, and update_group_folding().

Referenced by ED4_calc_terminal_extentions().

void ED4_calc_terminal_extentions ( )
static ARB_ERROR update_extension_size ( ED4_base base)
static

Definition at line 224 of file ED4_no_class.cxx.

References NULp, and ED4_base::resize_dynamic().

Referenced by ED4_resize_all_extensions().

void ED4_resize_all_extensions ( )
static ARB_ERROR call_edit ( ED4_base object,
ED4_work_info work_info 
)
static
static void executeKeystroke ( AW_event event,
int  repeatCount 
)
static

Definition at line 310 of file ED4_no_class.cxx.

References AD_NOWRITE, AW_KEY_DOWN, AW_KEY_END, AW_KEY_HOME, AW_KEY_NONE, AW_KEY_UP, AW_KEYMODE_CONTROL, aw_message(), awar_edit_mode, awar_edit_rightward, ED4_abstract_group_manager::build_consensus_string(), call_edit(), ED4_work_info::cannot_handle, ED4_work_info::char_position, current_cursor(), ED4_work_info::cursor_jump, e4_assert, ED4_JUMP_KEEP_VISIBLE, ED4_ROOT, ED4_U_UP_DOWN, ED4_Edit_String::edit(), ED4_root::edit_string, error(), ED4_work_info::event, ED4_Edit_String::finish_edit(), ED4_base::flag, ED4_work_info::gb_data, GB_end_transaction_show_error(), GB_push_transaction(), ED4_base::get_parent(), ED4_cursor::get_screen_pos(), ED4_cursor::get_sequence_pos(), ED4_base::get_species_pointer(), GLOBAL_gb_main, ED4_base::hidden, ED4_base::is_columnStat_terminal(), ED4_base::is_consensus_terminal(), ED4_base::is_pure_text_terminal(), ED4_work_info::is_sequence, ED4_base::is_sequence_terminal(), ED4_base::is_text_terminal(), ED4_cursor::jump_sequence_pos(), AW_event::keycode, AW_event::keymodifier, LEV_GROUP, ED4_work_info::mode, move_cursor, ED4_cursor::move_cursor(), NULp, ED4_work_info::out_seq_position, ED4_work_info::out_string, ED4_cursor::owner_of_cursor, ED4_manager::rebuild_consensi(), ED4_work_info::refresh_needed, ED4_work_info::repeat_count, ED4_terminal::request_refresh(), ED4_sequence_terminal::results(), ED4_work_info::rightward, ED4_manager::route_down_hierarchy(), ED4_SearchResults::searchAgain(), ED4_work_info::string, ta, ED4_consensus_sequence_terminal::temp_cons_seq, and ED4_work_info::working_terminal.

Referenced by ED4_input_cb(), and ED4_remote_event().

void ED4_remote_event ( AW_event faked_event)

Definition at line 435 of file ED4_no_class.cxx.

References executeKeystroke().

Referenced by ED4_host::forward_event().

static int get_max_slider_xpos ( )
static
static int get_max_slider_ypos ( )
static
static void ed4_scroll ( AW_window aww,
int  xdiff,
int  ydiff 
)
static
void ED4_input_cb ( AW_window aww)
void ED4_vertical_change_cb ( AW_window aww)
void ED4_horizontal_change_cb ( AW_window aww)
void ED4_scrollbar_change_cb ( AW_window aww)
void ED4_motion_cb ( AW_window aww)
void ED4_remote_set_cursor_cb ( AW_root awr)
void ED4_jump_to_cursor_position ( AW_window aww,
const char awar_name,
PositionType  posType 
)
void ED4_set_helixnr ( AW_window aww,
const char awar_name 
)
void ED4_set_iupac ( AW_window aww,
const char awar_name 
)
void ED4_exit ( )
void ED4_quit_editor ( AW_window aww)
static unsigned ED4_timer ( AW_root )
static
void ED4_trigger_instant_refresh ( )
void ED4_request_full_refresh ( )
void ED4_request_full_instant_refresh ( )
void ED4_request_relayout ( )
static void createGroupFromSelected ( GB_CSTR  group_name,
GB_CSTR  field_name,
GB_CSTR  field_content 
)
static
static void group_species ( bool  use_field,
AW_window use_as_main_window 
)
static
static void group_species_by_field_content ( AW_window ,
AW_window use_as_main_window,
AW_window window_to_hide 
)
static

Definition at line 1146 of file ED4_no_class.cxx.

References group_species(), and AW_window::hide().

Referenced by create_group_species_by_field_window().

static AW_window* create_group_species_by_field_window ( AW_root aw_root,
AW_window use_as_main_window 
)
static
void group_species_cb ( AW_window aww,
bool  use_fields 
)
static GB_ERROR ED4_load_new_config ( char name)
static
static ED4_EDITMODE ED4_get_edit_mode ( AW_root root)
static
void ed4_changesecurity ( AW_root root)
void ed4_change_edit_mode ( AW_root root)

Definition at line 1256 of file ED4_no_class.cxx.

References awar_edit_mode, ed4_changesecurity(), and ED4_get_edit_mode().

Referenced by ed4_create_all_awars().

ARB_ERROR rebuild_consensus ( ED4_base object)
void ED4_new_editor_window ( AW_window aww)
static void ED4_start_editor_on_configuration ( AW_window aww)
static
void ED4_compression_changed_cb ( AW_root awr)
void ED4_compression_toggle_changed_cb ( AW_root root,
bool  hideChanged 
)
AW_window* ED4_create_editor_options_window ( AW_root root)
AW_window* ED4_create_consensus_definition_window ( AW_root root)
static void consensus_upper_lower_changed_cb ( AW_root awr,
bool  upper_changed 
)
static
void ED4_create_consensus_awars ( AW_root aw_root)
void ED4_reloadConfiguration ( AW_window aww)

Definition at line 1593 of file ED4_no_class.cxx.

References ED4_start_editor_on_configuration().

Referenced by ED4_root::generate_window().

AW_window* ED4_create_loadConfiguration_window ( AW_root awr)
void ED4_saveConfiguration ( AW_window aww,
bool  hide_aww 
)
AW_window* ED4_create_saveConfigurationAs_window ( AW_root awr)
static char* filter_loadable_SAIs ( GBDATA gb_sai)
static
AW_window* ED4_create_loadSAI_window ( AW_root awr)
static GB_ERROR createDataFromConsensus ( GBDATA gb_species,
ED4_group_manager group_man 
)
static
static ARB_ERROR add_species_to_merge_list ( ED4_base base,
SpeciesMergeList **  smlp,
GBDATA gb_species_data 
)
static
static int SpeciesMergeListLength ( SpeciesMergeList sml)
static

Definition at line 1783 of file ED4_no_class.cxx.

References length, and SpeciesMergeList::next.

Referenced by create_new_species().

static void freeSpeciesMergeList ( SpeciesMergeList sml)
static

Definition at line 1793 of file ED4_no_class.cxx.

References SpeciesMergeList::next, and SpeciesMergeList::species_name.

Referenced by create_new_species().

bool nameIsUnique ( const char short_name,
GBDATA gb_species_data 
)
inline

Definition at line 1802 of file ED4_no_class.cxx.

References GBT_find_species_rel_species_data().

Referenced by create_new_species().

static void create_new_species ( AW_window ,
SpeciesCreationMode  creation_mode 
)
static
AW_window* ED4_create_new_seq_window ( AW_root root,
SpeciesCreationMode  creation_mode 
)

Variable Documentation

int timer_calls = 0
static

Definition at line 935 of file ED4_no_class.cxx.

int timer_calls_triggered = 0
static

Definition at line 936 of file ED4_no_class.cxx.

AWT_config_mapping_def editor_options_config_mapping[]
static
Initial value:
= {
{ ED4_AWAR_COMPRESS_SEQUENCE_GAPS, "compressgaps" },
{ AWAR_EDIT_HELIX_SPACING, "helixspacing" },
{ AWAR_EDIT_TERMINAL_SPACING, "terminalspacing" },
{ ED4_AWAR_SCROLL_SPEED_X, "scrollspeedx" },
{ ED4_AWAR_SCROLL_SPEED_Y, "scrollspeedy" },
{ ED4_AWAR_SCROLL_MARGIN, "scrollmargin" },
{ ED4_AWAR_GAP_CHARS, "gapchars" },
{ ED4_AWAR_DIGITS_AS_REPEAT, "digitsasrepeat" },
{ ED4_AWAR_FAST_CURSOR_JUMP, "fastcursorjump" },
{ ED4_AWAR_ANNOUNCE_CHECKSUM_CHANGES, "announcechecksumchanges" },
{ NULp, NULp }
}
#define ED4_AWAR_SCROLL_SPEED_Y
Definition: ed4_awars.hxx:32
#define ED4_AWAR_ANNOUNCE_CHECKSUM_CHANGES
Definition: ed4_awars.hxx:36
#define ED4_AWAR_COMPRESS_SEQUENCE_GAPS
Definition: ed4_awars.hxx:23
#define ED4_AWAR_FAST_CURSOR_JUMP
Definition: ed4_awars.hxx:28
#define ED4_AWAR_SCROLL_SPEED_X
Definition: ed4_awars.hxx:31
#define AWAR_EDIT_HELIX_SPACING
Definition: ed4_defs.hxx:108
#define ED4_AWAR_DIGITS_AS_REPEAT
Definition: ed4_awars.hxx:27
#define ED4_AWAR_COMPRESS_SEQUENCE_PERCENT
Definition: ed4_awars.hxx:25
#define ED4_AWAR_SCROLL_MARGIN
Definition: ed4_awars.hxx:33
#define ED4_AWAR_COMPRESS_SEQUENCE_HIDE
Definition: ed4_awars.hxx:24
#define AWAR_EDIT_TERMINAL_SPACING
Definition: ed4_defs.hxx:109
#define NULp
Definition: cxxforward.h:97
#define ED4_AWAR_GAP_CHARS
Definition: ed4_awars.hxx:35

Definition at line 1390 of file ED4_no_class.cxx.

AWT_config_mapping_def consensus_config_mapping[]
static
Initial value:
= {
{ NULp, NULp }
}
#define ED4_AWAR_CONSENSUS_GROUP
Definition: ed4_awars.hxx:47
#define CONSENSUS_CONFIG_COUNTGAPS
#define ED4_AWAR_CONSENSUS_COUNTGAPS
Definition: ed4_awars.hxx:45
#define CONSENSUS_CONFIG_GROUP
#define ED4_AWAR_CONSENSUS_GAPBOUND
Definition: ed4_awars.hxx:46
#define CONSENSUS_CONFIG_GAPBOUND
#define CONSENSUS_CONFIG_CONSIDBOUND
#define ED4_AWAR_CONSENSUS_LOWER
Definition: ed4_awars.hxx:50
#define ED4_AWAR_CONSENSUS_CONSIDBOUND
Definition: ed4_awars.hxx:48
#define CONSENSUS_CONFIG_UPPER
#define ED4_AWAR_CONSENSUS_UPPER
Definition: ed4_awars.hxx:49
#define NULp
Definition: cxxforward.h:97
#define CONSENSUS_CONFIG_LOWER

Definition at line 1484 of file ED4_no_class.cxx.