Changeset 6666 for trunk/EDIT4/ED4_main.cxx
- Timestamp:
- 21/05/10 19:44:17 (2 years ago)
- Files:
-
- 1 modified
-
trunk/EDIT4/ED4_main.cxx (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EDIT4/ED4_main.cxx
r6513 r6666 482 482 } 483 483 484 485 static void openProperties() {486 for (int mode = 0; mode <= 2; ++mode) { // search for defaults-database487 const char *name = ED4_propertyName(mode);488 AW_default found = ED4_ROOT->aw_root->open_default(name, mode == 2); // if mode == 2 -> create if missing489 490 if (found) {491 ED4_ROOT->props_db = found;492 ED4_ROOT->db_name = strdup(name);493 break;494 }495 }496 497 GB_informationf("Using properties from '%s'", ED4_ROOT->db_name);498 #if defined(DEBUG)499 AWT_announce_properties_to_browser(ED4_ROOT->props_db, ED4_ROOT->db_name);500 #endif // DEBUG501 ED4_ROOT->aw_root->init_variables(ED4_ROOT->props_db); // pass defaults502 }503 504 484 int main(int argc, char **argv) 505 485 { … … 542 522 } 543 523 524 aw_initstatus(); 525 544 526 GLOBAL_gb_main = GB_open(data_path, "rwt"); 545 527 if (!GLOBAL_gb_main) … … 552 534 AWT_announce_db_to_browser(GLOBAL_gb_main, GBS_global_string("ARB database (%s)", data_path)); 553 535 #endif // DEBUG 536 554 537 ED4_ROOT = new ED4_root; 555 556 openProperties(); // open properties database557 558 ED4_ROOT->aw_root->init_root("ARB_EDIT4", false); // initialize window-system559 538 560 539 ED4_ROOT->database = new EDB_root_bact; … … 563 542 564 543 ED4_ROOT->st_ml = STAT_create_ST_ML(GLOBAL_gb_main); 565 ED4_ROOT->sequence_colors = new AWT_seq_colors( (GBDATA *)ED4_ROOT->aw_root->application_database, (int)ED4_G_SEQUENCES, ED4_refresh_window, 0, 0);544 ED4_ROOT->sequence_colors = new AWT_seq_colors(AW_ROOT_DEFAULT, ED4_G_SEQUENCES, ED4_refresh_window, 0, 0); 566 545 567 546 ED4_ROOT->edk = new ed_key;
