27 GBDATA *gbd = species_man->get_species_pointer();
59 RootCallback ndsRefreshCb = makeRootCallback(
NDS_changed,
true);
73 case 0: desc =
"Short name";
break;
74 case 1: desc =
"Full name";
break;
75 default: desc =
"";
break;
82 case 0: aci =
"readdb(name)";
break;
83 case 1: aci =
"readdb(full_name)";
break;
84 default: aci =
"\"<not defined>\"";
break;
91 case 0: len = 8;
break;
92 case 1: len = 26;
break;
93 default: len = 20;
break;
112 AW_window_simple *aws =
new AW_window_simple;
114 aws->init(root,
"E4_NDS_PROPS",
"NDS");
119 aws->create_button(
"CLOSE",
"CLOSE",
"C");
123 aws->create_button(
"HELP",
"HELP",
"H");
125 aws->at(
"infowidth");
126 aws->label(
"Display width used for info-field");
129 aws->at(
"ecoli_name");
130 aws->label(
"Name displayed for SAI: ECOLI");
133 aws->auto_space(10, 2);
138 int dummy, fieldselectx, description_x, aci_x, length_x;
139 aws->get_at_position(&fieldselectx, &dummy);
145 aws->create_toggle(buf);
147 aws->get_at_position(&description_x, &dummy);
149 aws->create_input_field(buf, 15);
151 aws->get_at_position(&aci_x, &dummy);
153 aws->create_input_field(buf, 30);
155 aws->get_at_position(&length_x, &dummy);
157 aws->create_input_field(buf, 3);
163 aws->at_x(description_x);
164 aws->create_button(
NULp,
"DESCRIPTION");
166 aws->create_button(
NULp,
"ACI PROGRAM");
168 aws->create_button(
NULp,
"WIDTH");
void ED4_create_NDS_awars(AW_root *root)
void load_xfig(const char *file, bool resize=true)
void ED4_request_relayout()
#define ED4_AWAR_NDS_SELECT
#define ED4_AWAR_NDS_DESCRIPTION_TEMPLATE
AW_awar * set_minmax(float min, float max)
const char * GBS_global_string(const char *templat,...)
void AW_POPDOWN(AW_window *window)
char * ED4_get_NDS_text(ED4_species_manager *species_man)
AW_awar * add_callback(const RootCallback &cb)
GB_ERROR GB_await_error()
#define ED4_AWAR_NDS_ECOLI_NAME
WindowCallback makeHelpCallback(const char *helpfile)
static void ed4_nds_select_change(AW_window *aww, int selected)
GBDATA * get_gb_main() const
#define ED4_AWAR_NDS_INFO_WIDTH
char * read_string() const
AW_awar * awar(const char *awar)
char * NDS_mask_nonprintable_chars(char *const str)
static char * NDS_command
AW_window * ED4_create_nds_window(AW_root *root)
static void NDS_changed(AW_root *root, bool doRefresh)
AW_awar * awar_int(const char *var_name, long default_value=0, AW_default default_file=AW_ROOT_DEFAULT)
#define ED4_AWAR_NDS_WIDTH_TEMPLATE
#define ED4_AWAR_NDS_SELECT_TEMPLATE
#define ED4_AWAR_NDS_ACI_TEMPLATE
NOT4PERL char * GB_command_interpreter_in_env(const char *str, const char *commands, const GBL_call_env &callEnv)
GB_transaction ta(gb_var)
AW_awar * awar_string(const char *var_name, const char *default_value="", AW_default default_file=AW_ROOT_DEFAULT)
GB_ERROR write_int(long aw_int)
char * GBS_global_string_copy(const char *templat,...)