source: trunk/PARSIMONY/PARS_klprops.cxx

Last change on this file was 16766, checked in by westram, 7 years ago
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 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#include "pars_awars.h"
13
14#include <aw_window.hxx>
15
16
17AW_window *create_kernighan_properties_window(AW_root *aw_root) {
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
Note: See TracBrowser for help on using the repository browser.