source: branches/profile/PARSIMONY/PARS_klprops.cxx

Last change on this file was 11146, checked in by westram, 10 years ago
  • use makeHelpCallback
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
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
13#include <aw_window.hxx>
14
15
16AW_window *create_kernighan_window(AW_root *aw_root) {
17
18    AW_window_simple *aws = new AW_window_simple;
19    aws->init(aw_root, "OPTIMIZATION_PROPS", "Kernighan Lin Properties");
20    aws->load_xfig("pars/kernlin.fig");
21    aws->button_length(10);
22
23    aws->at("close");
24    aws->callback((AW_CB0)AW_POPDOWN);
25    aws->create_button("CLOSE", "CLOSE", "C");
26
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("nodes");
35    aws->create_input_field("genetic/kh/nodes");
36    aws->at("maxdepth");
37    aws->create_input_field("genetic/kh/maxdepth");
38    aws->at("incdepth");
39    aws->create_input_field("genetic/kh/incdepth");
40
41
42    aws->at("static");
43    aws->create_toggle("genetic/kh/static/enable");
44
45    aws->button_length(4);
46    aws->at("input_6");
47    aws->create_input_field("genetic/kh/static/depth0");
48    aws->at("input_7");
49    aws->create_input_field("genetic/kh/static/depth1");
50    aws->at("input_8");
51    aws->create_input_field("genetic/kh/static/depth2");
52    aws->at("input_9");
53    aws->create_input_field("genetic/kh/static/depth3");
54    aws->at("input_10");
55    aws->create_input_field("genetic/kh/static/depth4");
56
57
58    aws->at("dynamic");
59    aws->create_toggle("genetic/kh/dynamic/enable");
60
61    aws->button_length(4);
62    aws->at("start");
63    aws->create_input_field("genetic/kh/dynamic/start");
64    aws->at("maxx");
65    aws->create_input_field("genetic/kh/dynamic/maxx");
66    aws->at("maxy");
67    aws->create_input_field("genetic/kh/dynamic/maxy");
68
69#if 0
70    aws->at("button_4");
71    aws->create_option_menu("genetic/kh/function_type");
72    aws->insert_option("start_x^2", "d", AP_QUADRAT_START);
73    aws->insert_option("max_x^2", "d", AP_QUADRAT_MAX);
74    aws->insert_default_option("???", "?", AP_QUADRAT_START);
75    aws->update_option_menu();
76#endif
77    return (AW_window *)aws;
78}
79
Note: See TracBrowser for help on using the repository browser.