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/WINDOW/AW_advice.cxx

    r6490 r6666  
    3131// ------------------------- 
    3232 
    33 static bool        initialized  = false; 
    34 static AW_root    *advice_root  = 0; 
    35 static AW_default  advice_props = 0; 
     33static bool     initialized = false; 
     34static AW_root *advice_root = 0; 
    3635 
    3736// -------------------------------------------------------- 
    3837 
    39 void init_Advisor(AW_root *awr, AW_default def) 
    40 { 
     38void init_Advisor(AW_root *awr) { 
    4139    aw_assert(!initialized);   // can't init twice 
    4240 
    4341    advice_root  = awr; 
    44     advice_props = def; 
    4542 
    46     advice_root->awar_string(AWAR_ADVICE_TEXT, "<no advice>", advice_props); 
    47     advice_root->awar_int(AWAR_ADVICE_UNDERSTOOD, 0, advice_props); 
     43    advice_root->awar_string(AWAR_ADVICE_TEXT, "<no advice>"); 
     44    advice_root->awar_int(AWAR_ADVICE_UNDERSTOOD, 0); 
    4845 
    4946    initialized = true; 
     
    5552 
    5653static AW_awar *get_disabled_advices() { 
    57     return advice_root->awar_string(AWAR_ADVICE_DISABLED, "", advice_props); 
     54    return advice_root->awar_string(AWAR_ADVICE_DISABLED, ""); 
    5855} 
    5956