Last change
on this file was
5901,
checked in by westram, 16 years ago
|
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
959 bytes
|
Line | |
---|
1 | #include <stdlib.h> |
---|
2 | #include <stdio.h> |
---|
3 | #include <string.h> |
---|
4 | #include <arbdb.h> |
---|
5 | #include <aw_root.hxx> |
---|
6 | #include <aw_window.hxx> |
---|
7 | #include <awt.hxx> |
---|
8 | |
---|
9 | |
---|
10 | AW_HEADER_MAIN |
---|
11 | |
---|
12 | |
---|
13 | int main(int argc,char **argv){ |
---|
14 | if (argc <1){ |
---|
15 | GB_export_error("Syntax: arb_wetc [-fileedit]"); |
---|
16 | GB_print_error(); |
---|
17 | exit(-1); |
---|
18 | } |
---|
19 | |
---|
20 | const char *com = argv[1]; |
---|
21 | AW_root *aw_root; |
---|
22 | AW_default aw_default; |
---|
23 | aw_root = new AW_root; |
---|
24 | aw_default = aw_root->open_default(".arb_prop/ntree.arb"); |
---|
25 | aw_root->init_variables(aw_default); |
---|
26 | // aw_root->init_root("ARB_NT", false); |
---|
27 | aw_root->init_root("ARB_WETC", false); |
---|
28 | |
---|
29 | if (!strcmp(com,"-fileedit")){ |
---|
30 | AWT_show_file(aw_root, argv[2]); |
---|
31 | }else{ |
---|
32 | GB_export_error("wrong parameter, allowed: [-fileedit] file"); |
---|
33 | GB_print_error(); |
---|
34 | exit(-1); |
---|
35 | } |
---|
36 | aw_root->window_hide(); |
---|
37 | aw_root->main_loop(); |
---|
38 | return 0; |
---|
39 | } |
---|
40 | |
---|
41 | void AD_map_viewer(GBDATA *,AD_MAP_VIEWER_TYPE) |
---|
42 | { |
---|
43 | ; |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.