ARB
|
#include "GEN_local.hxx"
#include <db_scanner.hxx>
#include <db_query.h>
#include <dbui.h>
#include <item_sel_list.h>
#include <info_window.h>
#include <awt_sel_boxes.hxx>
#include <awt_prompt.hxx>
#include <aw_awar_defs.hxx>
#include <aw_root.hxx>
#include <aw_msg.hxx>
#include <aw_question.hxx>
#include <adGene.h>
#include <Location.h>
#include <arb_strarray.h>
#include <arb_strbuf.h>
Go to the source code of this file.
Classes | |
class | LocationEditor |
Macros | |
#define | AWAR_GENE_DEST "tmp/gene/dest" |
#define | AD_F_ALL AWM_ALL |
#define | GLE_POS1 "pos1" |
#define | GLE_POS2 "pos2" |
#define | GLE_CERT1 "cert1" |
#define | GLE_CERT2 "cert2" |
#define | GLE_COMPLEMENT "complement" |
#define | GLE_JOINABLE "joinable" |
#define | GLE_READABLE "location" |
#define | GLE_STATUS "status" |
Variables | |
static char * | old_species_marks = NULp |
static struct MutableItemSelector | GEN_item_selector |
static QUERY::DbQuery * | GLOBAL_gene_query = NULp |
const int | NAME_WIDTH = 33 |
const int | POS_WIDTH = NAME_WIDTH |
const int | CER_WIDTH = POS_WIDTH/2 |
const int | LOC_WIDTH = 53 |
static int | loc_update_running = 0 |
#define AWAR_GENE_DEST "tmp/gene/dest" |
Definition at line 38 of file GEN_interface.cxx.
Referenced by GEN_create_awars(), gene_create_cb(), and get_gene_create_or_locationEdit_window().
#define AD_F_ALL AWM_ALL |
Definition at line 42 of file GEN_interface.cxx.
Referenced by GEN_create_field_items(), and popup_new_gene_window().
#define GLE_POS1 "pos1" |
Definition at line 468 of file GEN_interface.cxx.
Referenced by LocationEditor::create_GEN_position_from_fields(), LocationEditor::createEditFields(), and GLE_update_from_location().
#define GLE_POS2 "pos2" |
Definition at line 469 of file GEN_interface.cxx.
Referenced by LocationEditor::create_GEN_position_from_fields(), LocationEditor::createEditFields(), and GLE_update_from_location().
#define GLE_CERT1 "cert1" |
Definition at line 470 of file GEN_interface.cxx.
Referenced by LocationEditor::create_GEN_position_from_fields(), LocationEditor::createEditFields(), and GLE_update_from_location().
#define GLE_CERT2 "cert2" |
Definition at line 471 of file GEN_interface.cxx.
Referenced by LocationEditor::create_GEN_position_from_fields(), LocationEditor::createEditFields(), and GLE_update_from_location().
#define GLE_COMPLEMENT "complement" |
Definition at line 472 of file GEN_interface.cxx.
Referenced by LocationEditor::create_GEN_position_from_fields(), LocationEditor::createEditFields(), and GLE_update_from_location().
#define GLE_JOINABLE "joinable" |
Definition at line 473 of file GEN_interface.cxx.
Referenced by LocationEditor::create_GEN_position_from_fields(), LocationEditor::createEditFields(), and GLE_update_from_location().
#define GLE_READABLE "location" |
Definition at line 474 of file GEN_interface.cxx.
Referenced by LocationEditor::createEditFields(), GLE_update_from_location(), LocationEditor::revcomp(), and update_location_from_GEN_position().
#define GLE_STATUS "status" |
Definition at line 475 of file GEN_interface.cxx.
Referenced by LocationEditor::createEditFields(), and LocationEditor::set_status().
Definition at line 46 of file GEN_interface.cxx.
References ARB_strdup(), aw_message(), AW_root::awar(), AWAR_GENE_NAME, AWAR_ORGANISM_NAME, GBS_global_string(), and AW_awar::write_string().
Definition at line 65 of file GEN_interface.cxx.
References GB_get_grandfather(), GBS_global_string_copy(), and GBT_get_name_or_description().
Definition at line 70 of file GEN_interface.cxx.
References ARB_strdup(), GEN_find_gene(), GEN_find_organism(), NULp, and result.
Definition at line 88 of file GEN_interface.cxx.
References error(), GB_write_flag(), GEN_find_origin_organism(), GEN_is_organism(), GEN_is_pseudo_gene_species(), GEN_organism_not_found(), and NULp.
Referenced by EXP_get_first_experiment_data(), and GEN_get_first_gene_data().
|
inline |
Definition at line 109 of file GEN_interface.cxx.
References GBT_restore_marked_species().
Referenced by GEN_get_first_gene_data(), and GEN_get_next_gene_data().
|
static |
Definition at line 116 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_ORGANISM_NAME, error(), GB_export_error(), GBT_store_marked_species(), GBT_with_stored_species(), gen_assert, GEN_expect_gene_data(), GEN_find_organism(), GEN_first_marked_organism(), GEN_first_marked_pseudo_species(), GEN_first_organism(), GEN_mark_organism_or_corresponding_organism(), gen_restore_old_species_marks(), NULp, QUERY_ALL_ITEMS, QUERY_CURRENT_ITEM, QUERY_MARKED_ITEMS, and AW_awar::read_string().
|
static |
Definition at line 156 of file GEN_interface.cxx.
References GB_get_father(), GB_get_root(), gen_assert, GEN_expect_gene_data(), GEN_next_marked_organism(), GEN_next_organism(), gen_restore_old_species_marks(), NULp, QUERY_ALL_ITEMS, QUERY_CURRENT_ITEM, and QUERY_MARKED_ITEMS.
Definition at line 184 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_GENE_NAME, GEN_find_gene(), GEN_get_current_organism(), NULp, and AW_awar::read_string().
Referenced by boundloc_changed_cb(), first_gene_in_range(), GEN_update_GENE_CONTENT(), gene_changed_cb(), and gene_delete_cb().
|
static |
Definition at line 197 of file GEN_interface.cxx.
References AW_awar::add_callback(), MutableItemSelector::add_selection_changed_cb, AW_root::awar(), AWAR_GENE_NAME, and ORGANISM_get_selector().
|
static |
Definition at line 202 of file GEN_interface.cxx.
References GB_first_marked(), GB_get_root(), GEN_first_gene_rel_gene_data(), GEN_get_current_gene(), NULp, QUERY_ALL_ITEMS, QUERY_CURRENT_ITEM, QUERY_MARKED_ITEMS, and AW_root::SINGLETON.
|
static |
Definition at line 211 of file GEN_interface.cxx.
References GEN_next_gene(), GEN_next_marked_gene(), NULp, QUERY_ALL_ITEMS, QUERY_CURRENT_ITEM, and QUERY_MARKED_ITEMS.
|
static |
Definition at line 222 of file GEN_interface.cxx.
References GEN_refresh_all_windows().
ItemSelector& GEN_get_selector | ( | ) |
Definition at line 247 of file GEN_interface.cxx.
References GEN_item_selector.
Referenced by create_colorize_genes_window(), GEN_create_field_items(), GEN_create_gene_query_window(), GEN_open_nds_window(), CheckedConsistencies::perform_item_checks(), and popup_new_gene_window().
Definition at line 249 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_GENE_NAME, AWAR_ORGANISM_NAME, AWAR_SPECIES_NAME, GBT_find_species(), GEN_is_pseudo_gene_species(), GEN_origin_gene(), GEN_origin_organism(), AW_awar::read_string(), ta, and AW_awar::write_string().
Referenced by GEN_create_awars().
|
static |
Definition at line 266 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_SPECIES_NAME, GBT_get_name_or_description(), GEN_find_pseudo_species(), NULp, ta, and AW_awar::write_string().
Referenced by GEN_update_combined_cb().
Definition at line 275 of file GEN_interface.cxx.
References ARB_strndup(), AW_root::awar(), AWAR_GENE_CONTENT, AWAR_GENE_NAME, buffer, GB_await_error(), GB_read_char_pntr(), GBT_find_sequence(), GBT_read_gene_sequence(), gen_assert, GEN_get_current_gene(), GEN_get_current_organism(), GENOM_ALIGNMENT, AW_awar::read_string(), ta, and AW_awar::write_string().
Referenced by GEN_update_combined_cb().
Definition at line 333 of file GEN_interface.cxx.
References auto_select_pseudo_species(), AW_root::awar(), AWAR_COMBINED_GENE_NAME, AWAR_GENE_NAME, AWAR_ORGANISM_NAME, GBS_global_string(), GEN_update_GENE_CONTENT(), AW_awar::read_string(), and AW_awar::write_string().
Referenced by GEN_create_awars().
void GEN_create_awars | ( | AW_root * | aw_root, |
AW_default | aw_def, | ||
GBDATA * | gb_main | ||
) |
Definition at line 350 of file GEN_interface.cxx.
References AW_awar::add_callback(), AWAR_COMBINED_GENE_NAME, AWAR_GENE_CONTENT, AWAR_GENE_DEST, AWAR_GENE_NAME, AWAR_ORGANISM_NAME, AWAR_SPECIES_NAME, AW_root::awar_string(), GEN_species_name_changed_cb(), GEN_update_combined_cb(), and NULp.
Referenced by nt_create_all_awars().
Definition at line 363 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_ORGANISM_NAME, GBT_find_species(), AW_awar::read_string(), and AW_root::SINGLETON.
Referenced by EXP_get_current_experiment(), GEN_get_current_gene(), GEN_perform_command(), GEN_update_GENE_CONTENT(), get_current_experiment_data(), and get_current_gene_data().
Definition at line 370 of file GEN_interface.cxx.
References GEN_expect_gene_data(), GEN_get_current_organism(), and NULp.
Referenced by gene_copy_handler(), gene_create_cb(), and gene_rename_handler().
Definition at line 381 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_GENE_NAME, error(), GB_await_error(), GB_begin_transaction(), GB_end_transaction(), GB_search(), GB_STRING, GB_write_string(), GBS_global_string(), GEN_find_gene_rel_gene_data(), get_current_gene_data(), NULp, AW_awar::read_char_pntr(), AW_root::SINGLETON, and AW_awar::write_string().
Referenced by gene_rename_cb().
Definition at line 417 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_GENE_NAME, error(), GB_await_error(), GB_begin_transaction(), GB_copy_dropProtectMarksAndTempstate(), GB_create_container(), GB_end_transaction(), GBS_global_string(), GBT_write_string(), GEN_find_gene_rel_gene_data(), get_current_gene_data(), AW_awar::read_char_pntr(), AW_root::SINGLETON, and AW_awar::write_string().
Referenced by gene_copy_cb().
Definition at line 449 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_GENE_NAME, AWT_activate_prompt(), gene_rename_handler(), AW_window::get_root(), and AW_awar::read_char_pntr().
Referenced by popup_new_gene_window().
Definition at line 454 of file GEN_interface.cxx.
References AW_root::awar(), AWAR_GENE_NAME, AWT_activate_prompt(), gene_copy_handler(), AW_window::get_root(), and AW_awar::read_char_pntr().
Referenced by popup_new_gene_window().
|
inline |
Definition at line 552 of file GEN_interface.cxx.
References CharPtrArray::size().
Referenced by LocationEditor::create_GEN_position_from_fields().
Definition at line 555 of file GEN_interface.cxx.
|
inline |
Definition at line 611 of file GEN_interface.cxx.
References Location::as_string(), error(), GBS_static_string(), gen_assert, GLE_READABLE, LocationEditor::loc_awar(), NULp, to_Location(), and AW_awar::write_string().
Referenced by gene_changed_cb(), and GLE_update_from_detailFields().
|
static |
Definition at line 626 of file GEN_interface.cxx.
References LocationEditor::create_GEN_position_from_fields(), error(), NULp, LocationEditor::set_pos(), LocationEditor::set_status(), and update_location_from_GEN_position().
Definition at line 646 of file GEN_interface.cxx.
References GBS_strstruct::cut_tail(), GBS_strstruct::put(), GBS_strstruct::putlong(), and GBS_strstruct::release().
Referenced by GLE_update_from_location().
Definition at line 655 of file GEN_interface.cxx.
References ARB_strpartdup().
Referenced by GLE_update_from_location().
Definition at line 659 of file GEN_interface.cxx.
Referenced by GLE_update_from_location().
|
static |
Definition at line 668 of file GEN_interface.cxx.
References LocationEditor::awar_charp_value(), GEN_position::complement, Location::create_GEN_position(), dupComplement(), dupSizedPart(), error(), GBS_static_string(), gen_assert, GLE_CERT1, GLE_CERT2, GLE_COMPLEMENT, GLE_JOINABLE, GLE_POS1, GLE_POS2, GLE_READABLE, GEN_position::joinable, LocationEditor::loc_awar(), NULp, parseLocation(), GEN_position::parts, LocationEditor::set_pos(), LocationEditor::set_status(), sizetarray2string(), GEN_position::start_pos, GEN_position::start_uncertain, GEN_position::stop_pos, GEN_position::stop_uncertain, AW_awar::write_int(), and AW_awar::write_string().
|
static |
Definition at line 703 of file GEN_interface.cxx.
References LocationEditor::revcomp().
Referenced by LocationEditor::createEditFields().
|
static |
Definition at line 738 of file GEN_interface.cxx.
References error(), GEN_get_current_gene(), GEN_read_position(), GEN_use_uncertainties(), LocationEditor::get_gb_main(), NULp, LocationEditor::set_pos(), LocationEditor::set_status(), and update_location_from_GEN_position().
Referenced by boundloc_changed_cb(), and get_gene_create_or_locationEdit_window().
|
static |
Definition at line 751 of file GEN_interface.cxx.
References aw_message(), error(), GB_end_transaction_show_error(), gb_main, GB_push_transaction(), gen_assert, GEN_get_current_gene(), GEN_write_position(), gene_changed_cb(), LocationEditor::get_gb_main(), and LocationEditor::get_pos().
Referenced by get_gene_create_or_locationEdit_window().
|
static |
Definition at line 772 of file GEN_interface.cxx.
References aw_message(), AW_root::awar(), AWAR_GENE_DEST, AWAR_GENE_NAME, error(), GB_await_error(), GB_begin_transaction(), GB_end_transaction_show_error(), GB_have_error(), GBS_global_string(), gen_assert, GEN_find_gene_rel_gene_data(), GEN_find_or_create_gene_rel_gene_data(), GEN_write_position(), get_current_gene_data(), LocationEditor::get_pos(), AW_window::get_root(), AW_window::hide(), AW_awar::read_string(), and AW_awar::write_string().
Referenced by get_gene_create_or_locationEdit_window().
|
static |
Definition at line 809 of file GEN_interface.cxx.
References AW_awar::add_callback(), LocationEditor::add_pos_changed_cb(), AW_POPDOWN(), AWAR_COMBINED_GENE_NAME, AWAR_GENE_DEST, AWAR_GENE_NAME, AWAR_ORGANISM_NAME, boundloc_changed_cb(), LocationEditor::createEditFields(), gen_assert, gene_changed_cb(), gene_create_cb(), makeHelpCallback(), NULp, and AW_awar::touch().
Referenced by create_gene_create_window(), and popup_gene_location_editor().
Definition at line 864 of file GEN_interface.cxx.
References AW_window::activate(), gb_main, get_gene_create_or_locationEdit_window(), and AW_window::get_root().
Referenced by popup_new_gene_window().
Definition at line 868 of file GEN_interface.cxx.
References get_gene_create_or_locationEdit_window().
Referenced by popup_new_gene_window().
Definition at line 872 of file GEN_interface.cxx.
References aw_ask_sure(), aw_message(), GB_transaction::close(), error(), GB_delete(), GEN_get_current_gene(), AW_window::get_root(), and ta.
Referenced by popup_new_gene_window().
Definition at line 885 of file GEN_interface.cxx.
References AD_F_ALL, DBUI::create_field_create_window(), DBUI::create_field_delete_window(), DBUI::create_fields_reorder_window(), MutableBoundItemSel::gb_main, gen_assert, GEN_get_selector(), gene_field_selection_list_unhide_all_cb(), gene_field_selection_list_update_cb(), AW_window::insert_menu_topic(), AW_window::local_id(), and AW_window::sep______________().
Referenced by popup_new_gene_window().
|
static |
Definition at line 911 of file GEN_interface.cxx.
References AD_F_ALL, InfoWindow::add_detach_area(), AW_window::at(), InfoWindow::attach_selected_item(), AW_POPDOWN(), AW_window::button_length(), AW_window::callback(), DbScanner::create(), AW_window::create_button(), create_gene_create_window(), AW_window::create_menu(), DB_KEYVIEWER, GEN_create_field_items(), GEN_create_gene_query_window(), GEN_get_selector(), gene_copy_cb(), gene_delete_cb(), gene_rename_cb(), InfoWindowRegistry::infowin, DBUI::init_info_window(), AW_window::insert_menu_topic(), InfoWindow::is_maininfo(), AW_window::load_xfig(), InfoWindowRegistry::localize_scanner_id(), makeHelpCallback(), popup_detached_gene_window(), popup_gene_location_editor(), InfoWindowRegistry::registerInfoWindow(), AW_window::sep______________(), and AW_window::show().
Referenced by GEN_popup_gene_infowindow(), and popup_detached_gene_window().
|
static |
Definition at line 899 of file GEN_interface.cxx.
References InfoWindowRegistry::allocate_detach_id(), InfoWindowRegistry::find_reusable_of_same_type_as(), InfoWindow::get_gbmain(), AW_window::get_root(), InfoWindowRegistry::infowin, popup_new_gene_window(), and InfoWindow::reuse().
Referenced by popup_new_gene_window().
Definition at line 960 of file GEN_interface.cxx.
References InfoWindow::MAIN_WINDOW, NULp, popup_new_gene_window(), and InfoWindowRegistry::reactivate().
Referenced by GEN_create_gene_query_window(), GEN_create_genes_submenu(), and GEN_graphic::handle_command().
Definition at line 970 of file GEN_interface.cxx.
References AW_window::at(), AW_POPDOWN(), AWAR_SPECIES_NAME, AWAR_TREE, AWM_ALL, AW_window::button_length(), QUERY::query_spec::by_pos_fig, AW_window::callback(), QUERY::query_spec::config_pos_fig, QUERY::query_spec::count_pos_fig, AW_window::create_button(), AW_window::create_menu(), QUERY::create_query_box(), QUERY::query_spec::do_delete_pos_fig, QUERY::query_spec::do_mark_nt_pos_fig, QUERY::query_spec::do_mark_pos_fig, QUERY::query_spec::do_query_pos_fig, QUERY::query_spec::do_refresh_pos_fig, QUERY::query_spec::do_set_pos_fig, QUERY::query_spec::do_unmark_nt_pos_fig, QUERY::query_spec::do_unmark_pos_fig, QUERY::query_spec::ere_pos_fig, gb_main, QUERY::query_spec::gb_main, GB_USERFLAG_QUERY, GEN_get_selector(), GEN_popup_gene_infowindow(), AW_window_simple_menu::init(), AW_window::insert_menu_topic(), QUERY::query_spec::key_pos_fig, AW_window::load_xfig(), makeHelpCallback(), NULp, QUERY::query_spec::open_parser_pos_fig, QUERY::query_spec::popup_info_window, QUERY::query_spec::qbox_pos_fig, QUERY::query_spec::query_pos_fig, QUERY::query_spec::result_pos_fig, QUERY::search_duplicated_field_content(), QUERY::query_spec::select_bit, QUERY::query_spec::species_name, QUERY::query_spec::tree_name, QUERY::query_spec::use_menu, and QUERY::query_spec::where_pos_fig.
Referenced by GEN_create_genes_submenu(), GEN_map_window::init(), and popup_new_gene_window().
Definition at line 107 of file GEN_interface.cxx.
|
static |
Definition at line 226 of file GEN_interface.cxx.
Referenced by GEN_get_selector().
|
static |
Definition at line 379 of file GEN_interface.cxx.
const int NAME_WIDTH = 33 |
Definition at line 463 of file GEN_interface.cxx.
const int POS_WIDTH = NAME_WIDTH |
Definition at line 464 of file GEN_interface.cxx.
Definition at line 465 of file GEN_interface.cxx.
const int LOC_WIDTH = 53 |
Definition at line 466 of file GEN_interface.cxx.
|
static |
Definition at line 609 of file GEN_interface.cxx.