ARB
Classes | Macros | Enumerations | Functions | Variables
NT_ins_col.cxx File Reference
#include "NT_local.h"
#include <RangeList.h>
#include <arbdbt.h>
#include <insdel.h>
#include <aw_window.hxx>
#include <aw_root.hxx>
#include <aw_awars.hxx>
#include <aw_msg.hxx>
#include <awt_sel_boxes.hxx>
#include <arb_defs.h>
#include <awt_config_manager.hxx>
Include dependency graph for NT_ins_col.cxx:

Go to the source code of this file.

Classes

class  StaticData
 

Macros

#define AWAR_INSDEL   "insdel/"
 
#define TMP_AWAR_INSDEL   "tmp/" AWAR_INSDEL
 
#define AWAR_INSDEL_AMOUNT   AWAR_INSDEL "nchar"
 
#define AWAR_INSDEL_DELETABLE   AWAR_INSDEL "characters"
 
#define AWAR_INSDEL_RANGE   AWAR_INSDEL "range"
 
#define AWAR_INSDEL_SAI   AWAR_INSDEL "sainame"
 
#define AWAR_INSDEL_CONTAINS   AWAR_INSDEL "contain"
 
#define AWAR_INSDEL_SAI_CHARS   AWAR_INSDEL "saichars"
 
#define AWAR_INSDEL_AFFECTED   TMP_AWAR_INSDEL "affected"
 
#define AWAR_INSDEL_WHAT   TMP_AWAR_INSDEL "what"
 
#define AWAR_INSDEL_DIRECTION   AWAR_INSDEL "direction"
 

Enumerations

enum  SaiContains { DOESNT_CONTAIN, CONTAINS }
 
enum  InsdelMode { INSERT, DELETE }
 

Functions

static void cleanup_when_closing (AW_window *)
 
static int columns_of (const RangeList &ranges)
 
static void range_count_update_cb (AW_root *root)
 
static void range_changed_cb (AW_root *root)
 
static GB_ERROR update_RangeList (AW_root *root, GBDATA *gb_main)
 
static void update_RangeList_cb (AW_root *root)
 
void create_insertDeleteColumn_variables (AW_root *root, AW_default props)
 
static void insdel_event (AW_window *aws, InsdelMode mode)
 
static void insdel_sai_event (AW_window *aws, InsdelMode mode)
 
AW_windowcreate_insertDeleteColumn_window (AW_root *root)
 
AW_windowcreate_insertDeleteBySAI_window (AW_root *root, GBDATA *gb_main)
 

Variables

static StaticData SELECTED
 
static AWT_config_mapping_def insdel_by_SAI_config_def []
 
static AWT_predefined_config insdel_by_SAI_predef_config []
 

Macro Definition Documentation

#define AWAR_INSDEL   "insdel/"

Definition at line 24 of file NT_ins_col.cxx.

#define TMP_AWAR_INSDEL   "tmp/" AWAR_INSDEL

Definition at line 25 of file NT_ins_col.cxx.

#define AWAR_INSDEL_AMOUNT   AWAR_INSDEL "nchar"
#define AWAR_INSDEL_DELETABLE   AWAR_INSDEL "characters"
#define AWAR_INSDEL_RANGE   AWAR_INSDEL "range"
#define AWAR_INSDEL_SAI   AWAR_INSDEL "sainame"
#define AWAR_INSDEL_CONTAINS   AWAR_INSDEL "contain"
#define AWAR_INSDEL_SAI_CHARS   AWAR_INSDEL "saichars"
#define AWAR_INSDEL_AFFECTED   TMP_AWAR_INSDEL "affected"
#define AWAR_INSDEL_WHAT   TMP_AWAR_INSDEL "what"
#define AWAR_INSDEL_DIRECTION   AWAR_INSDEL "direction"

Enumeration Type Documentation

Enumerator
DOESNT_CONTAIN 
CONTAINS 

Definition at line 37 of file NT_ins_col.cxx.

enum InsdelMode
Enumerator
INSERT 
DELETE 

Definition at line 38 of file NT_ins_col.cxx.

Function Documentation

static void cleanup_when_closing ( AW_window )
static

Definition at line 63 of file NT_ins_col.cxx.

Referenced by create_insertDeleteBySAI_window().

static int columns_of ( const RangeList ranges)
static

Definition at line 67 of file NT_ins_col.cxx.

References RangeList::begin(), and RangeList::end().

Referenced by range_count_update_cb().

static void range_count_update_cb ( AW_root root)
static
static void range_changed_cb ( AW_root root)
static
static GB_ERROR update_RangeList ( AW_root root,
GBDATA gb_main 
)
static
static void update_RangeList_cb ( AW_root root)
static
void create_insertDeleteColumn_variables ( AW_root root,
AW_default  props 
)
static void insdel_event ( AW_window aws,
InsdelMode  mode 
)
static
static void insdel_sai_event ( AW_window aws,
InsdelMode  mode 
)
static
AW_window* create_insertDeleteColumn_window ( AW_root root)
AW_window* create_insertDeleteBySAI_window ( AW_root root,
GBDATA gb_main 
)

Variable Documentation

StaticData SELECTED
static

Definition at line 61 of file NT_ins_col.cxx.

AWT_config_mapping_def insdel_by_SAI_config_def[]
static
Initial value:
= {
{ AWAR_INSDEL_RANGE, "range" },
{ AWAR_INSDEL_SAI, "sai" },
{ AWAR_INSDEL_CONTAINS, "contain" },
{ AWAR_INSDEL_SAI_CHARS, "chars" },
{ AWAR_INSDEL_DELETABLE, "deletable" },
{ AWAR_INSDEL_AMOUNT, "amount" },
{ AWAR_INSDEL_DIRECTION, "direction" },
{ NULp, NULp },
}
#define AWAR_INSDEL_SAI
Definition: NT_ins_col.cxx:30
#define AWAR_INSDEL_DELETABLE
Definition: NT_ins_col.cxx:28
#define AWAR_INSDEL_AMOUNT
Definition: NT_ins_col.cxx:27
#define AWAR_INSDEL_RANGE
Definition: NT_ins_col.cxx:29
#define AWAR_INSDEL_CONTAINS
Definition: NT_ins_col.cxx:31
#define NULp
Definition: cxxforward.h:116
#define AWAR_INSDEL_DIRECTION
Definition: NT_ins_col.cxx:35
#define AWAR_INSDEL_SAI_CHARS
Definition: NT_ins_col.cxx:32

Definition at line 242 of file NT_ins_col.cxx.

AWT_predefined_config insdel_by_SAI_predef_config[]
static
Initial value:
= {
{
"*gaps_by_variability",
"Use to insert 2 gaps next to all\ncolumns with high variability",
"amount='2';chars='123';contain='1';direction='1';range='1';sai='POS_VAR_BY_PARSIMONY'",
},
{
"*erase_columns_without_data",
"selects all columns where \nMAX_FREQUENCY contains '='",
"chars='=';contain='1';deletable='-.';range='1';sai='MAX_FREQUENCY'",
},
{ NULp, NULp, NULp },
}
#define NULp
Definition: cxxforward.h:116

Definition at line 254 of file NT_ins_col.cxx.