Show
Ignore:
Timestamp:
21/05/10 19:44:17 (2 years ago)
Author:
westram
Message:
  • AW_root
    • ctor initializes AWAR subsystem
    • made more clear that AW_root is a singleton
    • call dtor atexit; unlink AWARs from prop-DB and free memory (AW_window instances and releated mem still remain)
    • close properties DB
    • renamed some functions
  • AW_awar
    • added dtor
  • added AWT_create_root (necessary to add properties DB to DB-browser)
  • removed AWT_open_properties (done inside AW_root-ctor now)
  • EDIT properties
    • detect existing properties before constructing AW_root
  • removed AW_config_struct
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/NTREE/NT_extern.cxx

    r6639 r6666  
    399399void NT_save_as_cb(AW_window *aww) { 
    400400    char *filename = aww->get_root()->awar(AWAR_DB_PATH)->read_string(); 
    401     char *filetype = aww->get_root()->awar(AWAR_DB"type")->read_string(); 
     401    char *filetype = aww->get_root()->awar(AWAR_DB_TYPE)->read_string(); 
    402402 
    403403    GB_ERROR error = GB_save(GLOBAL_gb_main, filename, filetype); 
     
    431431    aws->at("type"); 
    432432    aws->label("Type "); 
    433     aws->create_option_menu(AWAR_DB"type"); 
     433    aws->create_option_menu(AWAR_DB_TYPE); 
    434434    aws->insert_option("Binary", "B", "b"); 
    435435    aws->insert_option("Bin (with FastLoad File)", "f", "bm"); 
     
    15381538            AWMIMT("!toggle_expert", "Toggle expert mode",                          "x", 0,           AWM_ALL, NT_toggle_expert_mode, 0, 0); 
    15391539            SEP________________________SEP(); 
    1540             AWMIMT("save_props",     "Save properties (in ~/.arb_prop/ntree.arb)",  "S", "savedef.hlp", AWM_ALL, (AW_CB) AW_save_defaults, 0, 0); 
     1540            AWMIMT("save_props",     "Save properties (in ~/.arb_prop/ntree.arb)",  "S", "savedef.hlp", AWM_ALL, (AW_CB) AW_save_properties, 0, 0); 
    15411541        } 
    15421542    }