ARB
Classes | Macros | Functions | Variables
nds.cxx File Reference
#include "nds.h"
#include <awt_config_manager.hxx>
#include <awt_sel_boxes.hxx>
#include <aw_awar.hxx>
#include <aw_file.hxx>
#include <aw_msg.hxx>
#include <aw_root.hxx>
#include <aw_select.hxx>
#include <TreeNode.h>
#include <items.h>
#include <item_sel_list.h>
#include <gb_aci.h>
#include <arb_msg_fwd.h>
#include <arb_global_defs.h>
Include dependency graph for nds.cxx:

Go to the source code of this file.

Classes

class  NodeTextBuilder
 

Macros

#define nds_assert(cond)   arb_assert(cond)
 
#define NDS_PER_PAGE   10
 
#define NDS_PAGES   6
 
#define NDS_COUNT   (NDS_PER_PAGE*NDS_PAGES)
 
#define AWAR_NDS_USE_ALL   "arb_presets/all"
 
#define AWAR_NDS_PAGE   "arb_presets/page"
 
#define NDS_STRING_SIZE   4000
 

Functions

const charviewkeyAwarName (int i, const char *name)
 
AW_awarviewkeyAwar (AW_root *aw_root, AW_default awdef, int i, const char *name, bool string_awar)
 
static void map_viewkey (AW_root *aw_root, AW_default awdef, int i, GBDATA *gb_viewkey)
 
static void map_viewkeys (AW_root *aw_root, GBDATA *awdef, GBDATA *gb_main)
 
void create_nds_vars (AW_root *aw_root, AW_default awdef, GBDATA *gb_main, bool force_reinit)
 
static const charscript_part_of (const char *predef_entry)
 
static void awt_pre_to_view (AW_root *aw_root)
 
static void awt_select_pre_from_view (AW_root *aw_root, AW_selection_list *programs)
 
void AWT_popup_select_srtaci_window (AW_window *aww, const char *acisrt_awarname)
 
static void nds_init_config (AWT_config_definition &cdef)
 
static charnds_store_config ()
 
static void nds_restore_config (const char *stored, GBDATA *gb_main)
 
AW_windowAWT_create_nds_window (AW_root *aw_root, GBDATA *gb_main)
 
static charquoted_if_containing_separator (const char *text, char separator)
 
static NodeTextBuildertheBuilder ()
 
void make_node_text_init (GBDATA *gb_main)
 
const charmake_node_text_nds (GBDATA *gb_main, GBDATA *gbd, NDS_Type mode, TreeNode *species, const char *tree_name)
 
const charmake_group_text_nds (GBDATA *gb_main, GBDATA *gbd, NDS_Type mode, TreeNode *species, const char *tree_name)
 
static const charcreateReplaceTable ()
 
charNDS_mask_nonprintable_chars (char *const str)
 

Variables

static bool in_pre_update = false
 

Macro Definition Documentation

#define nds_assert (   cond)    arb_assert(cond)

Definition at line 29 of file nds.cxx.

Referenced by map_viewkey(), map_viewkeys(), viewkeyAwarName(), and NodeTextBuilder::work().

#define NDS_PER_PAGE   10
#define NDS_PAGES   6

Definition at line 32 of file nds.cxx.

Referenced by AWT_create_nds_window(), and map_viewkeys().

#define NDS_COUNT   (NDS_PER_PAGE*NDS_PAGES)
#define AWAR_NDS_USE_ALL   "arb_presets/all"

Definition at line 36 of file nds.cxx.

Referenced by AWT_create_nds_window(), and create_nds_vars().

#define AWAR_NDS_PAGE   "arb_presets/page"

Definition at line 37 of file nds.cxx.

Referenced by AWT_create_nds_window(), and map_viewkeys().

#define NDS_STRING_SIZE   4000

Definition at line 42 of file nds.cxx.

Function Documentation

const char* viewkeyAwarName ( int  i,
const char name 
)
inline

Definition at line 133 of file nds.cxx.

References GBS_global_string(), nds_assert, and NDS_PER_PAGE.

Referenced by AWT_create_nds_window(), nds_init_config(), and viewkeyAwar().

AW_awar* viewkeyAwar ( AW_root aw_root,
AW_default  awdef,
int  i,
const char name,
bool  string_awar 
)
inline

Definition at line 138 of file nds.cxx.

References AW_root::awar_int(), AW_root::awar_string(), NULp, and viewkeyAwarName().

Referenced by map_viewkey().

static void map_viewkey ( AW_root aw_root,
AW_default  awdef,
int  i,
GBDATA gb_viewkey 
)
static

Definition at line 146 of file nds.cxx.

References GB_entry(), AW_awar::map(), nds_assert, AW_awar::set_minmax(), and viewkeyAwar().

Referenced by map_viewkeys().

static void map_viewkeys ( AW_root aw_root,
GBDATA awdef,
GBDATA gb_main 
)
static
void create_nds_vars ( AW_root aw_root,
AW_default  awdef,
GBDATA gb_main,
bool  force_reinit 
)
static const char* script_part_of ( const char predef_entry)
static

Definition at line 299 of file nds.cxx.

Referenced by awt_pre_to_view(), and awt_select_pre_from_view().

static void awt_pre_to_view ( AW_root aw_root)
static
static void awt_select_pre_from_view ( AW_root aw_root,
AW_selection_list programs 
)
static
void AWT_popup_select_srtaci_window ( AW_window aww,
const char acisrt_awarname 
)
static void nds_init_config ( AWT_config_definition cdef)
static

Definition at line 379 of file nds.cxx.

References AWT_config_definition::add(), NDS_PER_PAGE, and viewkeyAwarName().

Referenced by nds_restore_config(), and nds_store_config().

static char* nds_store_config ( )
static

Definition at line 389 of file nds.cxx.

References nds_init_config(), and AWT_config_definition::read().

Referenced by AWT_create_nds_window().

static void nds_restore_config ( const char stored,
GBDATA gb_main 
)
static
AW_window* AWT_create_nds_window ( AW_root aw_root,
GBDATA gb_main 
)
static char* quoted_if_containing_separator ( const char text,
char  separator 
)
static

Definition at line 657 of file nds.cxx.

References GBS_global_string_copy(), and NULp.

Referenced by NodeTextBuilder::work().

static NodeTextBuilder& theBuilder ( )
static

Definition at line 845 of file nds.cxx.

Referenced by make_group_text_nds(), make_node_text_init(), and make_node_text_nds().

void make_node_text_init ( GBDATA gb_main)
const char* make_node_text_nds ( GBDATA gb_main,
GBDATA gbd,
NDS_Type  mode,
TreeNode species,
const char tree_name 
)
const char* make_group_text_nds ( GBDATA gb_main,
GBDATA gbd,
NDS_Type  mode,
TreeNode species,
const char tree_name 
)

Definition at line 857 of file nds.cxx.

References theBuilder(), and NodeTextBuilder::work().

static const char* createReplaceTable ( )
static

Definition at line 862 of file nds.cxx.

Referenced by NDS_mask_nonprintable_chars().

char* NDS_mask_nonprintable_chars ( char *const  str)

Definition at line 877 of file nds.cxx.

References createReplaceTable(), and safeCharIndex().

Referenced by ED4_get_NDS_text(), GEN_make_node_text_nds(), and NodeTextBuilder::work().

Variable Documentation

bool in_pre_update = false
static

Definition at line 304 of file nds.cxx.

Referenced by awt_pre_to_view(), and awt_select_pre_from_view().