49 extern_cfg (Bool, gui_implicitfiles); |
49 extern_cfg (Bool, gui_implicitfiles); |
50 extern_cfg (String, net_downloadpath); |
50 extern_cfg (String, net_downloadpath); |
51 extern_cfg (Bool, net_guesspaths); |
51 extern_cfg (Bool, net_guesspaths); |
52 extern_cfg (Bool, net_autoclose); |
52 extern_cfg (Bool, net_autoclose); |
53 extern_cfg (Bool, gl_logostuds); |
53 extern_cfg (Bool, gl_logostuds); |
54 |
54 extern_cfg (String, ld_defaultname); |
|
55 extern_cfg (String, ld_defaultuser); |
|
56 extern_cfg (Int, ld_defaultlicense); |
55 extern_cfg (String, prog_ytruder); |
57 extern_cfg (String, prog_ytruder); |
56 extern_cfg (String, prog_rectifier); |
58 extern_cfg (String, prog_rectifier); |
57 extern_cfg (String, prog_intersector); |
59 extern_cfg (String, prog_intersector); |
58 extern_cfg (String, prog_coverer); |
60 extern_cfg (String, prog_coverer); |
59 extern_cfg (String, prog_isecalc); |
61 extern_cfg (String, prog_isecalc); |
89 |
91 |
90 ui->downloadPath->setText (net_downloadpath); |
92 ui->downloadPath->setText (net_downloadpath); |
91 ui->guessNetPaths->setChecked (net_guesspaths); |
93 ui->guessNetPaths->setChecked (net_guesspaths); |
92 ui->autoCloseNetPrompt->setChecked (net_autoclose); |
94 ui->autoCloseNetPrompt->setChecked (net_autoclose); |
93 connect (ui->findDownloadPath, SIGNAL (clicked(bool)), this, SLOT (slot_findDownloadFolder())); |
95 connect (ui->findDownloadPath, SIGNAL (clicked(bool)), this, SLOT (slot_findDownloadFolder())); |
|
96 |
|
97 ui->m_profileName->setText (ld_defaultname); |
|
98 ui->m_profileUsername->setText (ld_defaultuser); |
|
99 ui->m_profileLicense->setCurrentIndex (ld_defaultlicense); |
94 } |
100 } |
95 |
101 |
96 // ============================================================================= |
102 // ============================================================================= |
97 // ----------------------------------------------------------------------------- |
103 // ----------------------------------------------------------------------------- |
98 ConfigDialog::~ConfigDialog() { |
104 ConfigDialog::~ConfigDialog() { |
578 // ----------------------------------------------------------------------------- |
584 // ----------------------------------------------------------------------------- |
579 void ConfigDialog::staticDialog() { |
585 void ConfigDialog::staticDialog() { |
580 ConfigDialog dlg (g_win); |
586 ConfigDialog dlg (g_win); |
581 |
587 |
582 if (dlg.exec()) { |
588 if (dlg.exec()) { |
|
589 const alias ui = *dlg.getUI(); |
|
590 |
583 // Apply configuration |
591 // Apply configuration |
584 lv_colorize = dlg.getUI()->colorizeObjects->isChecked(); |
592 lv_colorize = ui.colorizeObjects->isChecked(); |
585 gl_colorbfc = dlg.getUI()->colorBFC->isChecked(); |
593 gl_colorbfc = ui.colorBFC->isChecked(); |
586 // edit_schemanticinline = dlg.getUI()->scemanticInlining->isChecked(); |
594 // edit_schemanticinline = ui.scemanticInlining->isChecked(); |
587 gl_blackedges = dlg.getUI()->blackEdges->isChecked(); |
595 gl_blackedges = ui.blackEdges->isChecked(); |
588 gl_maincolor_alpha = ((double) dlg.getUI()->mainColorAlpha->value()) / 10.0f; |
596 gl_maincolor_alpha = ((double) ui.mainColorAlpha->value()) / 10.0f; |
589 gl_linethickness = dlg.getUI()->lineThickness->value(); |
597 gl_linethickness = ui.lineThickness->value(); |
590 gui_implicitfiles = dlg.getUI()->implicitFiles->isChecked(); |
598 gui_implicitfiles = ui.implicitFiles->isChecked(); |
591 net_downloadpath = dlg.getUI()->downloadPath->text(); |
599 net_downloadpath = ui.downloadPath->text(); |
592 net_guesspaths = dlg.getUI()->guessNetPaths->isChecked(); |
600 net_guesspaths = ui.guessNetPaths->isChecked(); |
593 net_autoclose = dlg.getUI()->autoCloseNetPrompt->isChecked(); |
601 net_autoclose = ui.autoCloseNetPrompt->isChecked(); |
594 gl_logostuds = dlg.getUI()->m_logostuds->isChecked(); |
602 gl_logostuds = ui.m_logostuds->isChecked(); |
|
603 ld_defaultuser = ui.m_profileUsername->text(); |
|
604 ld_defaultname = ui.m_profileName->text(); |
|
605 ld_defaultlicense = ui.m_profileLicense->currentIndex(); |
595 |
606 |
596 if (net_downloadpath.value.right (1) != DIRSLASH) |
607 if (net_downloadpath.value.right (1) != DIRSLASH) |
597 net_downloadpath += DIRSLASH; |
608 net_downloadpath += DIRSLASH; |
598 |
609 |
599 // Rebuild the quick color toolbar |
610 // Rebuild the quick color toolbar |