ARB
Classes | Macros | Enumerations | Functions | Variables
NT_main.cxx File Reference
#include "NT_local.h"
#include <mg_merge.hxx>
#include <awti_import.hxx>
#include <insdel.h>
#include <macros.hxx>
#include <awt.hxx>
#include <awt_misc.hxx>
#include <awt_sel_boxes.hxx>
#include <awt_TreeAwars.hxx>
#include <aw_advice.hxx>
#include <aw_question.hxx>
#include <aw_awars.hxx>
#include <aw_edit.hxx>
#include <aw_file.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <arbdbt.h>
#include <adGene.h>
#include <arb_version.h>
#include <arb_progress.h>
#include <arb_file.h>
#include <signal.h>
Include dependency graph for NT_main.cxx:

Go to the source code of this file.

Classes

class  NtreeCommandLine
 
class  SelectedDatabase
 
struct  merge_scheme
 

Macros

#define MAXNAMELEN   35
 
#define AWAR_DB_FILTER   AWAR_DBBASE "/filter"
 
#define AWAR_DB_DIRECTORY   AWAR_DBBASE "/directory"
 
#define ABORTED_BY_USER   "aborted by user"
 

Enumerations

enum  ArgType {
  RUNNING_DB, DIRECTORY, EXISTING_DB, NEW_DB,
  FILEMASK, EXISTING_FILE, UNKNOWN_ARG
}
 
enum  RunMode { NORMAL, IMPORT, MERGE, BROWSE }
 

Functions

GB_ERROR NT_format_all_alignments (GBDATA *gb_main)
 
static GB_ERROR nt_check_database_consistency ()
 
static __ATTR__USERESULT GB_ERROR startup_mainwindow_and_dbserver (AW_root *aw_root, const char *autorun_macro, TREE_canvas *&result_ntw)
 
static ARB_ERROR load_and_startup_main_window (AW_root *aw_root, const char *autorun_macro)
 
static void nt_delete_database (AW_window *aww)
 
static void start_main_window_after_import (AW_root *aw_root)
 
static void nt_intro_start_existing (AW_window *aw_intro)
 
static void nt_intro_start_merge (AW_window *aw_intro)
 
static void nt_intro_start_import (AW_window *aw_intro)
 
static AW_windownt_create_intro_window (AW_root *awr)
 
static void AWAR_DB_PATH_changed_cb (AW_root *awr)
 
bool has_arb_suffix (const char *arg)
 
static ArgType detectArgType (const char *arg)
 
static ARB_ERROR check_argument_for_mode (const char *database, char *&browser_startdir, RunMode &mode)
 
static void exit_from_merge (const char *restart_args)
 
static void merge_startup_abort_cb (AW_window *)
 
static AW_windowmerge_startup_error_window (AW_root *aw_root, GB_ERROR error)
 
static AW_windowstartup_merge_main_window (AW_root *aw_root, merge_scheme *ms)
 
static AW_windowstartup_merge_prompting_for_nonexplicit_dst_db (AW_root *aw_root, merge_scheme *ms)
 
static AW_windowstartup_merge_prompting_for_nonexplicit_dbs (AW_root *aw_root, merge_scheme *ms)
 
static void startup_gui (NtreeCommandLine &cl, ARB_ERROR &error)
 
int ARB_main (int argc, char *argv[])
 

Variables

AW_HEADER_MAIN NT_global GLOBAL
 
static bool merge_tool_running_as_client = true
 

Macro Definition Documentation

#define MAXNAMELEN   35
#define AWAR_DB_FILTER   AWAR_DBBASE "/filter"

Definition at line 212 of file NT_main.cxx.

Referenced by nt_delete_database().

#define AWAR_DB_DIRECTORY   AWAR_DBBASE "/directory"

Definition at line 213 of file NT_main.cxx.

Referenced by AWAR_DB_PATH_changed_cb(), nt_intro_start_merge(), and startup_gui().

#define ABORTED_BY_USER   "aborted by user"

Definition at line 480 of file NT_main.cxx.

Referenced by check_argument_for_mode(), and startup_gui().

Enumeration Type Documentation

enum ArgType
Enumerator
RUNNING_DB 
DIRECTORY 
EXISTING_DB 
NEW_DB 
FILEMASK 
EXISTING_FILE 
UNKNOWN_ARG 

Definition at line 446 of file NT_main.cxx.

enum RunMode
Enumerator
NORMAL 
IMPORT 
MERGE 
BROWSE 

Definition at line 478 of file NT_main.cxx.

Function Documentation

GB_ERROR NT_format_all_alignments ( GBDATA gb_main)
static GB_ERROR nt_check_database_consistency ( )
static
static __ATTR__USERESULT GB_ERROR startup_mainwindow_and_dbserver ( AW_root aw_root,
const char autorun_macro,
TREE_canvas *&  result_ntw 
)
static
static ARB_ERROR load_and_startup_main_window ( AW_root aw_root,
const char autorun_macro 
)
static
static void nt_delete_database ( AW_window aww)
static
static void start_main_window_after_import ( AW_root aw_root)
static
static void nt_intro_start_existing ( AW_window aw_intro)
static
static void nt_intro_start_merge ( AW_window aw_intro)
static
static void nt_intro_start_import ( AW_window aw_intro)
static
static AW_window* nt_create_intro_window ( AW_root awr)
static
static void AWAR_DB_PATH_changed_cb ( AW_root awr)
static
bool has_arb_suffix ( const char arg)
inline

Definition at line 456 of file NT_main.cxx.

Referenced by detectArgType().

static ArgType detectArgType ( const char arg)
static
static ARB_ERROR check_argument_for_mode ( const char database,
char *&  browser_startdir,
RunMode mode 
)
static
static void exit_from_merge ( const char restart_args)
static
static void merge_startup_abort_cb ( AW_window )
static
static AW_window* merge_startup_error_window ( AW_root aw_root,
GB_ERROR  error 
)
static
static AW_window* startup_merge_main_window ( AW_root aw_root,
merge_scheme ms 
)
static
static AW_window* startup_merge_prompting_for_nonexplicit_dst_db ( AW_root aw_root,
merge_scheme ms 
)
static
static AW_window* startup_merge_prompting_for_nonexplicit_dbs ( AW_root aw_root,
merge_scheme ms 
)
static
static void startup_gui ( NtreeCommandLine cl,
ARB_ERROR error 
)
static
int ARB_main ( int  argc,
char argv[] 
)

Variable Documentation

Definition at line 44 of file NT_main.cxx.

Referenced by ad_move_tree_info(), ad_tree_set_security(), addSpeciesToConcatenateList(), AP_calc_pos_var_pars(), AP_create_con_expert_window(), AP_create_consensus_var(), AP_create_max_freq_window(), AP_create_pos_var_pars_window(), colstat_2_gnuplot_cb(), colstat_ali_changed_cb(), CON_calc_max_freq_cb(), CON_calculate_cb(), concatenateAlignments(), concatenateFieldsCreateNewSpecies(), config_comment_changed_cb(), copy_SAI_cb(), copy_SAI_to_species_cb(), create_colorize_species_window(), create_configuration_admin_window(), create_configuration_marker_window(), create_consense_tree_cb(), create_insertDeleteColumn_variables(), create_select_other_tree_window(), createMergeSimilarSpeciesWindow(), delete_SAI_cb(), edit_SAI_description(), export_nds_cb(), fillSelNamList(), init_config_admin_awars(), init_config_awars(), insdel_event(), insdel_sai_event(), launch_MapViewer_cb(), map_SAI_to_scanner(), mergeSimilarSpecies(), modify_configurations(), nt_build_conf_marked(), nt_build_sai_string(), nt_changesecurity(), NT_create_alignment_admin_window(), nt_create_all_awars(), NT_create_colstat_2_gnuplot_window(), nt_create_configuration(), NT_create_consense_window(), NT_create_database_optimization_window(), NT_create_dna_2_pro_window(), NT_create_extendeds_window(), NT_create_main_window(), NT_create_mask_submenu(), NT_create_realign_dna_window(), NT_create_resort_window(), NT_create_sai_from_pfold(), NT_create_searchManuallyNames_window(), NT_create_select_alignment_window(), NT_create_select_tree_window(), NT_create_species_join_window(), NT_create_startEditorOnOldConfiguration_window(), NT_create_trackAliChanges_Awars(), NT_create_trackAliChanges_window(), NT_create_twoTreeSelection(), NT_createConcatenationWindow(), NT_database_optimization(), nt_delete_configuration(), NT_deleteValidNames(), NT_exit(), nt_extract_configuration(), NT_import_sequences(), NT_importValidNames(), nt_rename_configuration(), NT_resort_data_by_phylogeny(), NT_resort_data_by_user_criteria(), NT_restart(), NT_save_as_cb(), NT_save_quick_as_cb(), NT_save_quick_cb(), NT_select_bottom_tree(), nt_seq_load_cb(), NT_suggestValidNames(), NT_undo_cb(), NT_update_marked_counter(), popup_new_main_window(), popup_tree_admin_window(), realign_event(), rename_SAI_cb(), reorder_trees_cb(), selected_config_changed_cb(), selectValidNameFromList(), sort_dtree_by_other_tree_cb(), species_rename_join(), trackAlignmentChanges(), transpro_event(), tree_load_cb(), tree_save_cb(), tree_vars_callback(), update_default_treename_cb(), and update_RangeList_cb().

bool merge_tool_running_as_client = true
static

Definition at line 740 of file NT_main.cxx.

Referenced by exit_from_merge(), and startup_gui().