54 EXTERN_CFGENTRY (Bool, autoCloseDownloadDialog); |
54 EXTERN_CFGENTRY (Bool, autoCloseDownloadDialog); |
55 EXTERN_CFGENTRY (Bool, useLogoStuds); |
55 EXTERN_CFGENTRY (Bool, useLogoStuds); |
56 EXTERN_CFGENTRY (Bool, drawLineLengths); |
56 EXTERN_CFGENTRY (Bool, drawLineLengths); |
57 EXTERN_CFGENTRY (String, defaultName); |
57 EXTERN_CFGENTRY (String, defaultName); |
58 EXTERN_CFGENTRY (String, defaultUser); |
58 EXTERN_CFGENTRY (String, defaultUser); |
59 EXTERN_CFGENTRY (Int, defaultLicense); |
59 EXTERN_CFGENTRY (Bool, UseCALicense); |
60 EXTERN_CFGENTRY (String, selectColorBlend); |
60 EXTERN_CFGENTRY (String, selectColorBlend); |
61 EXTERN_CFGENTRY (String, ytruderPath); |
61 EXTERN_CFGENTRY (String, ytruderPath); |
62 EXTERN_CFGENTRY (String, rectifierPath); |
62 EXTERN_CFGENTRY (String, rectifierPath); |
63 EXTERN_CFGENTRY (String, intersectorPath); |
63 EXTERN_CFGENTRY (String, intersectorPath); |
64 EXTERN_CFGENTRY (String, covererPath); |
64 EXTERN_CFGENTRY (String, covererPath); |
176 ui->autoCloseNetPrompt->setChecked (cfg::autoCloseDownloadDialog); |
176 ui->autoCloseNetPrompt->setChecked (cfg::autoCloseDownloadDialog); |
177 connect (ui->findDownloadPath, SIGNAL (clicked (bool)), this, SLOT (slot_findDownloadFolder())); |
177 connect (ui->findDownloadPath, SIGNAL (clicked (bool)), this, SLOT (slot_findDownloadFolder())); |
178 |
178 |
179 ui->m_profileName->setText (cfg::defaultName); |
179 ui->m_profileName->setText (cfg::defaultName); |
180 ui->m_profileUsername->setText (cfg::defaultUser); |
180 ui->m_profileUsername->setText (cfg::defaultUser); |
181 ui->m_profileLicense->setCurrentIndex (cfg::defaultLicense); |
181 ui->UseCALicense->setChecked (cfg::UseCALicense); |
182 ui->gridCoarseCoordinateSnap->setValue (cfg::gridCoarseCoordinateSnap); |
182 ui->gridCoarseCoordinateSnap->setValue (cfg::gridCoarseCoordinateSnap); |
183 ui->gridCoarseAngleSnap->setValue (cfg::gridCoarseAngleSnap); |
183 ui->gridCoarseAngleSnap->setValue (cfg::gridCoarseAngleSnap); |
184 ui->gridMediumCoordinateSnap->setValue (cfg::gridMediumCoordinateSnap); |
184 ui->gridMediumCoordinateSnap->setValue (cfg::gridMediumCoordinateSnap); |
185 ui->gridMediumAngleSnap->setValue (cfg::gridMediumAngleSnap); |
185 ui->gridMediumAngleSnap->setValue (cfg::gridMediumAngleSnap); |
186 ui->gridFineCoordinateSnap->setValue (cfg::gridFineCoordinateSnap); |
186 ui->gridFineCoordinateSnap->setValue (cfg::gridFineCoordinateSnap); |
293 cfg::autoCloseDownloadDialog = ui->autoCloseNetPrompt->isChecked(); |
293 cfg::autoCloseDownloadDialog = ui->autoCloseNetPrompt->isChecked(); |
294 cfg::useLogoStuds = ui->m_logostuds->isChecked(); |
294 cfg::useLogoStuds = ui->m_logostuds->isChecked(); |
295 cfg::drawLineLengths = ui->linelengths->isChecked(); |
295 cfg::drawLineLengths = ui->linelengths->isChecked(); |
296 cfg::defaultUser = ui->m_profileUsername->text(); |
296 cfg::defaultUser = ui->m_profileUsername->text(); |
297 cfg::defaultName = ui->m_profileName->text(); |
297 cfg::defaultName = ui->m_profileName->text(); |
298 cfg::defaultLicense = ui->m_profileLicense->currentIndex(); |
298 cfg::UseCALicense = ui->UseCALicense->isChecked(); |
299 cfg::antiAliasedLines = ui->m_aa->isChecked(); |
299 cfg::antiAliasedLines = ui->m_aa->isChecked(); |
300 cfg::highlightObjectBelowCursor = ui->highlightObjectBelowCursor->isChecked(); |
300 cfg::highlightObjectBelowCursor = ui->highlightObjectBelowCursor->isChecked(); |
301 cfg::roundPosition = ui->roundPosition->value(); |
301 cfg::roundPosition = ui->roundPosition->value(); |
302 cfg::roundMatrix = ui->roundMatrix->value(); |
302 cfg::roundMatrix = ui->roundMatrix->value(); |
303 |
303 |
327 { |
327 { |
328 auto item = static_cast<ShortcutListItem*> (ui->shortcutsList->item (i)); |
328 auto item = static_cast<ShortcutListItem*> (ui->shortcutsList->item (i)); |
329 item->action()->setShortcut (item->sequence()); |
329 item->action()->setShortcut (item->sequence()); |
330 } |
330 } |
331 |
331 |
332 Config::save(); |
332 Config::Save(); |
333 reloadAllSubfiles(); |
333 reloadAllSubfiles(); |
334 loadLogoedStuds(); |
334 loadLogoedStuds(); |
335 g_win->R()->setBackground(); |
335 g_win->R()->setBackground(); |
336 g_win->doFullRefresh(); |
336 g_win->doFullRefresh(); |
337 g_win->updateDocumentList(); |
337 g_win->updateDocumentList(); |