ARB
PARS_klprops.cxx
Go to the documentation of this file.
1 // =============================================================== //
2 // //
3 // File : PARS_klprops.cxx //
4 // Purpose : //
5 // //
6 // Institute of Microbiology (Technical University Munich) //
7 // http://www.arb-home.de/ //
8 // //
9 // =============================================================== //
10 
11 #include "pars_klprops.hxx"
12 #include "pars_awars.h"
13 
14 #include <aw_window.hxx>
15 
16 
18 
19  AW_window_simple *aws = new AW_window_simple;
20  aws->init(aw_root, "OPTIMIZATION_PROPS", "Kernighan Lin Properties");
21  aws->load_xfig("pars/kernlin.fig");
22  aws->button_length(10);
23 
24  aws->at("close");
25  aws->callback(AW_POPDOWN);
26  aws->create_button("CLOSE", "CLOSE", "C");
27 
28  aws->at("help");
29  aws->callback(makeHelpCallback("kernlin.hlp"));
30  aws->create_button("HELP", "HELP", "H");
31 
32  aws->button_length(6);
33 
34  aws->at("maxdepth");
35  aws->create_input_field(AWAR_KL_MAXDEPTH);
36  aws->at("incdepth");
37  aws->create_input_field(AWAR_KL_INCDEPTH);
38 
39 
40  aws->at("static");
41  aws->create_toggle(AWAR_KL_STATIC_ENABLED);
42 
43  aws->button_length(4);
44  aws->at("sred1"); aws->create_input_field(AWAR_KL_STATIC_DEPTH1);
45  aws->at("sred2"); aws->create_input_field(AWAR_KL_STATIC_DEPTH2);
46  aws->at("sred3"); aws->create_input_field(AWAR_KL_STATIC_DEPTH3);
47  aws->at("sred4"); aws->create_input_field(AWAR_KL_STATIC_DEPTH4);
48  aws->at("sred5"); aws->create_input_field(AWAR_KL_STATIC_DEPTH5);
49 
50 
51  aws->at("dynamic");
52  aws->create_toggle(AWAR_KL_DYNAMIC_ENABLED);
53 
54  aws->button_length(4);
55  aws->at("start");
56  aws->create_input_field(AWAR_KL_DYNAMIC_START);
57  aws->at("maxx");
58  aws->create_input_field(AWAR_KL_DYNAMIC_MAXX);
59  aws->at("maxy");
60  aws->create_input_field(AWAR_KL_DYNAMIC_MAXY);
61 
62 #if 0
63  aws->at("button_4");
64  aws->create_option_menu(AWAR_KL_FUNCTION_TYPE);
65  aws->insert_option("start_x^2", "d", AP_QUADRAT_START);
66  aws->insert_option("max_x^2", "d", AP_QUADRAT_MAX);
67  aws->insert_default_option("???", "?", AP_QUADRAT_START);
68  aws->update_option_menu();
69 #endif
70  return aws;
71 }
72 
#define AWAR_KL_DYNAMIC_MAXY
Definition: pars_awars.h:43
void load_xfig(const char *file, bool resize=true)
Definition: AW_window.cxx:720
#define AWAR_KL_DYNAMIC_MAXX
Definition: pars_awars.h:42
#define AWAR_KL_STATIC_DEPTH4
Definition: pars_awars.h:37
void AW_POPDOWN(AW_window *window)
Definition: AW_window.cxx:52
WindowCallback makeHelpCallback(const char *helpfile)
Definition: aw_window.hxx:106
#define AWAR_KL_INCDEPTH
Definition: pars_awars.h:31
#define AWAR_KL_STATIC_DEPTH1
Definition: pars_awars.h:34
#define AWAR_KL_DYNAMIC_START
Definition: pars_awars.h:41
AW_window * create_kernighan_properties_window(AW_root *aw_root)
#define AWAR_KL_STATIC_DEPTH2
Definition: pars_awars.h:35
#define AWAR_KL_STATIC_DEPTH5
Definition: pars_awars.h:38
#define AWAR_KL_FUNCTION_TYPE
Definition: pars_awars.h:45
#define AWAR_KL_MAXDEPTH
Definition: pars_awars.h:30
#define AWAR_KL_DYNAMIC_ENABLED
Definition: pars_awars.h:40
#define AWAR_KL_STATIC_ENABLED
Definition: pars_awars.h:33
#define AWAR_KL_STATIC_DEPTH3
Definition: pars_awars.h:36