source: tags/cvs_2_svn/WETC/WETC_main.cxx

Last change on this file was 5390, checked in by westram, 16 years ago
  • TAB-Ex
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 901 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
10AW_HEADER_MAIN
11
12
13int 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("ARB_NT");
27
28    if (!strcmp(com,"-fileedit")){
29        AWT_show_file(aw_root, argv[2]);
30    }else{
31        GB_export_error("wrong parameter, allowed: [-fileedit] file");
32        GB_print_error();
33        exit(-1);
34    }
35    aw_root->window_hide();
36    aw_root->main_loop();
37    return 0;
38}
39
40void AD_map_viewer(GBDATA *,AD_MAP_VIEWER_TYPE)
41{
42    ;
43}
Note: See TracBrowser for help on using the repository browser.