ARB
Macros | Functions | Variables
ED4_flags.cxx File Reference
#include "ed4_flags.hxx"
#include "ed4_class.hxx"
#include <item_sel_list.h>
#include <awt_config_manager.hxx>
#include <aw_awar.hxx>
#include <aw_root.hxx>
#include <arbdbt.h>
#include <arb_strbuf.h>
Include dependency graph for ED4_flags.cxx:

Go to the source code of this file.

Macros

#define MAX_SPECIES_FLAGS   5
 
#define AWAR_FLAGS_PREFIX   "arb_edit/flags"
 
#define AWAR_FLAGS_ENABLED   AWAR_FLAGS_PREFIX "/display"
 
#define AWAR_FLAG_PREFIX_TEMPLATE   AWAR_FLAGS_PREFIX "/flag%i"
 
#define AWAR_FLAG_ENABLE_TEMPLATE   AWAR_FLAG_PREFIX_TEMPLATE "/enable"
 
#define AWAR_FLAG_HEADER_TEMPLATE   AWAR_FLAG_PREFIX_TEMPLATE "/header"
 
#define AWAR_FLAG_FIELD_TEMPLATE   AWAR_FLAG_PREFIX_TEMPLATE "/field"
 
#define MAX_AWARNAME_LENGTH   40
 

Functions

const charawarname (const char *awarname_template, int idx)
 
static void header_changed_cb (AW_root *)
 
static void init_flag_awars ()
 
const charsettingName (const char *name, int idx)
 
static void setup_species_flags_config (AWT_config_definition &cfg)
 
AW_windowED4_configure_species_flags (AW_root *root, GBDATA *gb_main)
 

Variables

static AWT_predefined_config predefined_flag_setup []
 

Macro Definition Documentation

#define MAX_SPECIES_FLAGS   5
#define AWAR_FLAGS_PREFIX   "arb_edit/flags"

Definition at line 28 of file ED4_flags.cxx.

#define AWAR_FLAGS_ENABLED   AWAR_FLAGS_PREFIX "/display"
#define AWAR_FLAG_PREFIX_TEMPLATE   AWAR_FLAGS_PREFIX "/flag%i"

Definition at line 30 of file ED4_flags.cxx.

#define AWAR_FLAG_ENABLE_TEMPLATE   AWAR_FLAG_PREFIX_TEMPLATE "/enable"
#define AWAR_FLAG_HEADER_TEMPLATE   AWAR_FLAG_PREFIX_TEMPLATE "/header"
#define AWAR_FLAG_FIELD_TEMPLATE   AWAR_FLAG_PREFIX_TEMPLATE "/field"
#define MAX_AWARNAME_LENGTH   40

Definition at line 35 of file ED4_flags.cxx.

Referenced by awarname().

Function Documentation

const char* awarname ( const char awarname_template,
int  idx 
)
inline
static void header_changed_cb ( AW_root )
static

Definition at line 50 of file ED4_flags.cxx.

References ED4_request_relayout(), and SpeciesFlags::forget().

Referenced by init_flag_awars().

static void init_flag_awars ( )
static
const char* settingName ( const char name,
int  idx 
)
inline

Definition at line 184 of file ED4_flags.cxx.

References buffer, BUFSIZE, and e4_assert.

Referenced by setup_species_flags_config().

static void setup_species_flags_config ( AWT_config_definition cfg)
static
AW_window* ED4_configure_species_flags ( AW_root root,
GBDATA gb_main 
)

Variable Documentation

AWT_predefined_config predefined_flag_setup[]
static
Initial value:
= {
{ "*curation", "Curation of newly inserted sequences:\n - mark sequence / alignment as bad\n - mark as done (curated)", "display='1';enable0='1';enable1='1';enable2='1';enable3='0';enable4='0';field0='bad_sequence';field1='bad_alignment';field2='curated';header0='bad';header1='align';header2='cur'" },
{ "*example1", "Example from help (phase1)", "display='1';enable0='1';enable1='1';enable2='1';enable3='0';enable4='0';field0='tocheck';field1='bad_sequence';field2='bad_alignment';field3='fixed';header0='2chk';header1='bad';header2='align';header3='fixed'" },
{ "*example2", "Example from help (phase2)", "display='1';enable0='0';enable1='0';enable2='1';enable3='1';enable4='0';field0='tocheck';field1='bad_sequence';field2='bad_alignment';field3='fixed';header0='2chk';header1='bad';header2='align';header3='fixed'" },
{ NULp, NULp, NULp }
}
#define NULp
Definition: cxxforward.h:116

Definition at line 206 of file ED4_flags.cxx.