src/configDialog.cpp

changeset 431
ec1e2059319b
parent 430
8458cf2719d1
child 452
47cc663e4ff4
equal deleted inserted replaced
430:8458cf2719d1 431:ec1e2059319b
45 extern_cfg (str, gui_colortoolbar); 45 extern_cfg (str, gui_colortoolbar);
46 extern_cfg (bool, edit_schemanticinline); 46 extern_cfg (bool, edit_schemanticinline);
47 extern_cfg (bool, gl_blackedges); 47 extern_cfg (bool, gl_blackedges);
48 extern_cfg (bool, gui_implicitfiles); 48 extern_cfg (bool, gui_implicitfiles);
49 extern_cfg (str, net_downloadpath); 49 extern_cfg (str, net_downloadpath);
50 extern_cfg (bool, net_guesspaths);
51 extern_cfg (bool, net_autoclose);
50 52
51 extern_cfg (str, prog_ytruder); 53 extern_cfg (str, prog_ytruder);
52 extern_cfg (str, prog_rectifier); 54 extern_cfg (str, prog_rectifier);
53 extern_cfg (str, prog_intersector); 55 extern_cfg (str, prog_intersector);
54 extern_cfg (str, prog_coverer); 56 extern_cfg (str, prog_coverer);
76 initQuickColorTab(); 78 initQuickColorTab();
77 initGridTab(); 79 initGridTab();
78 initExtProgTab(); 80 initExtProgTab();
79 81
80 ui->downloadPath->setText (net_downloadpath); 82 ui->downloadPath->setText (net_downloadpath);
83 ui->guessNetPaths->setChecked (net_guesspaths);
84 ui->autoCloseNetPrompt->setChecked (net_autoclose);
81 connect (ui->findDownloadPath, SIGNAL (clicked(bool)), this, SLOT (slot_findDownloadFolder())); 85 connect (ui->findDownloadPath, SIGNAL (clicked(bool)), this, SLOT (slot_findDownloadFolder()));
82 } 86 }
83 87
84 // ============================================================================= 88 // =============================================================================
85 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 89 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
576 // edit_schemanticinline = dlg.getUI()->scemanticInlining->isChecked(); 580 // edit_schemanticinline = dlg.getUI()->scemanticInlining->isChecked();
577 gl_blackedges = dlg.getUI()->blackEdges->isChecked(); 581 gl_blackedges = dlg.getUI()->blackEdges->isChecked();
578 gl_maincolor_alpha = ((double) dlg.getUI()->mainColorAlpha->value()) / 10.0f; 582 gl_maincolor_alpha = ((double) dlg.getUI()->mainColorAlpha->value()) / 10.0f;
579 gl_linethickness = dlg.getUI()->lineThickness->value(); 583 gl_linethickness = dlg.getUI()->lineThickness->value();
580 gui_implicitfiles = dlg.getUI()->implicitFiles->isChecked(); 584 gui_implicitfiles = dlg.getUI()->implicitFiles->isChecked();
581
582 net_downloadpath = dlg.getUI()->downloadPath->text(); 585 net_downloadpath = dlg.getUI()->downloadPath->text();
586 net_guesspaths = dlg.getUI()->guessNetPaths->isChecked();
587 net_autoclose = dlg.getUI()->autoCloseNetPrompt->isChecked();
588
583 if (net_downloadpath.value.right (1) != DIRSLASH) 589 if (net_downloadpath.value.right (1) != DIRSLASH)
584 net_downloadpath += DIRSLASH; 590 net_downloadpath += DIRSLASH;
585 591
586 // Rebuild the quick color toolbar 592 // Rebuild the quick color toolbar
587 g_win->setQuickColors (dlg.quickColors); 593 g_win->setQuickColors (dlg.quickColors);

mercurial