ARB
|
#include "NT_local.h"
#include <item_sel_list.h>
#include <aw_awar.hxx>
#include <arb_progress.h>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <TreeNode.h>
#include <arb_sort.h>
#include <arb_global_defs.h>
Go to the source code of this file.
Classes | |
struct | customCriterion |
Macros | |
#define | FIELD_FILTER_RESORT (1<<GB_STRING)|(1<<GB_INT)|(1<<GB_FLOAT) |
#define | CUSTOM_CRITERIA 3 |
#define | AWAR_TREE_SORT1 "db_sort/sort_1" |
#define | AWAR_TREE_SORT2 "db_sort/sort_2" |
#define | AWAR_TREE_SORT3 "db_sort/sort_3" |
#define | AWAR_TREE_REV1 "db_sort/rev1" |
#define | AWAR_TREE_REV2 "db_sort/rev2" |
#define | AWAR_TREE_REV3 "db_sort/rev3" |
Functions | |
static int | cmpByKey (GBDATA *gbd1, GBDATA *gbd2, const customCriterion &by) |
static void | NT_resort_data_base_by_tree (TreeNode *tree, GBDATA *gb_species_data) |
static int | resort_data_by_customOrder (const void *v1, const void *v2, void *cd_sortBy) |
static GB_ERROR | resort_data_base (GBDATA *gb_main, TreeNode *tree, const customCriterion *sortBy) |
static GB_ERROR | strict_resort_data_base (GBDATA *gb_main, const customCriterion *sortBy) |
void | NT_resort_data_by_phylogeny (AW_window *, TREE_canvas *ntw) |
static void | NT_resort_data_by_user_criteria (AW_window *aw) |
void | NT_create_resort_awars (AW_root *awr, AW_default aw_def) |
AW_window * | NT_create_resort_window (AW_root *awr) |
Variables | |
static GBDATA ** | gb_resort_data_list |
static long | gb_resort_data_count |
static bool | customOrderIsStrict = true |
static bool | customDefinesOrder = false |
Definition at line 22 of file NT_sort.cxx.
Referenced by NT_create_resort_window().
#define CUSTOM_CRITERIA 3 |
Definition at line 24 of file NT_sort.cxx.
Referenced by NT_resort_data_by_user_criteria(), and resort_data_by_customOrder().
#define AWAR_TREE_SORT1 "db_sort/sort_1" |
Definition at line 177 of file NT_sort.cxx.
Referenced by NT_create_resort_awars(), NT_create_resort_window(), and NT_resort_data_by_user_criteria().
#define AWAR_TREE_SORT2 "db_sort/sort_2" |
Definition at line 178 of file NT_sort.cxx.
Referenced by NT_create_resort_awars(), NT_create_resort_window(), and NT_resort_data_by_user_criteria().
#define AWAR_TREE_SORT3 "db_sort/sort_3" |
Definition at line 179 of file NT_sort.cxx.
Referenced by NT_create_resort_awars(), NT_create_resort_window(), and NT_resort_data_by_user_criteria().
#define AWAR_TREE_REV1 "db_sort/rev1" |
Definition at line 181 of file NT_sort.cxx.
Referenced by NT_create_resort_awars(), NT_create_resort_window(), and NT_resort_data_by_user_criteria().
#define AWAR_TREE_REV2 "db_sort/rev2" |
Definition at line 182 of file NT_sort.cxx.
Referenced by NT_create_resort_awars(), NT_create_resort_window(), and NT_resort_data_by_user_criteria().
#define AWAR_TREE_REV3 "db_sort/rev3" |
Definition at line 183 of file NT_sort.cxx.
Referenced by NT_create_resort_awars(), NT_create_resort_window(), and NT_resort_data_by_user_criteria().
|
static |
Definition at line 42 of file NT_sort.cxx.
References cmp, GB_entry(), GB_FLOAT, GB_INT, GB_read_char_pntr(), GB_read_float(), GB_read_int(), GB_read_type(), GB_STRING, customCriterion::is_valid, customCriterion::key, and customCriterion::reverse.
Referenced by resort_data_by_customOrder().
Definition at line 89 of file NT_sort.cxx.
References TreeNode::gb_node, gb_resort_data_count, gb_species_data, and TreeNode::is_leaf().
Referenced by resort_data_base().
|
static |
Definition at line 106 of file NT_sort.cxx.
References cmp, cmpByKey(), CUSTOM_CRITERIA, customDefinesOrder, and customOrderIsStrict.
Referenced by resort_data_base().
|
static |
Definition at line 123 of file NT_sort.cxx.
References ARB_calloc(), error(), GB_await_error(), GB_begin_transaction(), GB_end_transaction(), GB_nsons(), GB_resort_data_base(), gb_resort_data_count, GB_sort(), GBT_gen_species_array(), GBT_get_species_data(), implicated, nt_assert, NT_resort_data_base_by_tree(), and resort_data_by_customOrder().
Referenced by NT_resort_data_by_phylogeny(), and strict_resort_data_base().
|
static |
Definition at line 153 of file NT_sort.cxx.
References customDefinesOrder, customOrderIsStrict, NULp, and resort_data_base().
Referenced by NT_resort_data_by_user_criteria().
void NT_resort_data_by_phylogeny | ( | AW_window * | , |
TREE_canvas * | ntw | ||
) |
Definition at line 167 of file NT_sort.cxx.
References aw_message(), error(), NT_global::gb_main, GLOBAL, NT_get_tree_root_of_canvas(), NULp, and resort_data_base().
Referenced by popup_new_main_window().
|
static |
Definition at line 185 of file NT_sort.cxx.
References aw_message(), AW_root::awar(), AWAR_TREE_REV1, AWAR_TREE_REV2, AWAR_TREE_REV3, AWAR_TREE_SORT1, AWAR_TREE_SORT2, AWAR_TREE_SORT3, CUSTOM_CRITERIA, NT_global::gb_main, AW_window::get_root(), GLOBAL, AW_awar::read_char_pntr(), AW_awar::read_int(), and strict_resort_data_base().
Referenced by NT_create_resort_window().
void NT_create_resort_awars | ( | AW_root * | awr, |
AW_default | aw_def | ||
) |
Definition at line 199 of file NT_sort.cxx.
References AW_root::awar_int(), AW_root::awar_string(), AWAR_TREE_REV1, AWAR_TREE_REV2, AWAR_TREE_REV3, AWAR_TREE_SORT1, AWAR_TREE_SORT2, AWAR_TREE_SORT3, and NO_FIELD_SELECTED.
Referenced by nt_create_all_awars().
Definition at line 209 of file NT_sort.cxx.
References AW_POPDOWN(), AWAR_TREE_REV1, AWAR_TREE_REV2, AWAR_TREE_REV3, AWAR_TREE_SORT1, AWAR_TREE_SORT2, AWAR_TREE_SORT3, create_itemfield_selection_button(), FIELD_FILTER_RESORT, NT_global::gb_main, GLOBAL, AW_window::load_xfig(), makeHelpCallback(), NT_resort_data_by_user_criteria(), and SPECIES_get_selector().
Referenced by popup_new_main_window().
|
static |
Definition at line 86 of file NT_sort.cxx.
|
static |
Definition at line 87 of file NT_sort.cxx.
Referenced by NT_resort_data_base_by_tree(), and resort_data_base().
|
static |
Definition at line 103 of file NT_sort.cxx.
Referenced by resort_data_by_customOrder(), and strict_resort_data_base().
|
static |
Definition at line 104 of file NT_sort.cxx.
Referenced by resort_data_by_customOrder(), and strict_resort_data_base().