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/PARSIMONY/PARS_main.cxx

    r6592 r6666  
    14361436        awm->insert_menu_topic("props_tree2", "Tree: Settings ...",                      "T", "nt_tree_settings.hlp", AWM_ALL, AW_POPUP, (AW_CL)NT_create_tree_setting, (AW_CL)ntw); 
    14371437        awm->insert_menu_topic("props_kl",    "KERN. LIN ...",                           "K", "kernlin.hlp",          AWM_ALL, AW_POPUP, (AW_CL)create_kernighan_window, 0); 
    1438         awm->insert_menu_topic("save_props",  "Save Defaults (in ~/.arb_prop/pars.arb)", "D", "savedef.hlp",          AWM_ALL, (AW_CB)AW_save_defaults, 0, 0); 
     1438        awm->insert_menu_topic("save_props",  "Save Defaults (in ~/.arb_prop/pars.arb)", "D", "savedef.hlp",          AWM_ALL, (AW_CB)AW_save_properties, 0, 0); 
    14391439    } 
    14401440    awm->button_length(5); 
     
    17071707    aw_initstatus(); 
    17081708 
    1709     AW_root    *aw_root    = new AW_root; 
    1710     AW_default  aw_default = AWT_open_properties(aw_root, ".arb_prop/pars.arb"); 
    1711     aw_root->init_variables(aw_default); 
    1712     aw_root->init_root("ARB_PARS", false); 
    1713  
     1709    AW_root *aw_root      = AWT_create_root(".arb_prop/pars.arb", "ARB_PARS"); 
    17141710    AD_map_viewer_aw_root = aw_root; 
    17151711 
     
    17591755#endif // DEBUG 
    17601756 
    1761     pars_create_all_awars(aw_root, aw_default); 
     1757    pars_create_all_awars(aw_root, AW_ROOT_DEFAULT); 
    17621758 
    17631759    AW_window *aww = create_pars_init_window(aw_root, &cmds);