// Export: void AboutOpera::generateData( URL& url ) { writePreamble( url ); // <html><body> surplus // <require> each of these should close exactly the HTML tags it opens: writeVersion( url ); writeUA( url ); writeRegInfo( url ); writePaths( url ); writeSound( url ); writeCredits( url ); // </require> url.WriteDocumentData(UNI_L("\n\n <address>")); #ifdef GEIR_MEMORIAL OP_STATUS rc; OpString span; TRAP(rc, g_languageManager->GetStringL(Str::S_DEDICATED_TO, span)); if (OpStatus::IsSuccess(rc)) { url.WriteDocumentData(UNI_L("<span>")); // In memory of Geir Ivarsøy. url.WriteDocumentData(span); url.WriteDocumentData(UNI_L("</span> ")); } #endif outASCII(url, "Copyright © 1995-"); outASCII(url, __DATE__ + 7); // "Mmm dd Year" + 7 == "Year" outASCII(url, " Opera Software ASA.\n" "All rights reserved.</address>\n" "</body>\n</html>\n"); url.WriteDocumentDataFinished(); }
/** * Slot called when the Apply or OK button is pressed. */ void DlgPrefSound::slotApply() { if (!m_settingsModified) { return; } m_config.clearInputs(); m_config.clearOutputs(); emit(writePaths(&m_config)); SoundDeviceError err = SOUNDDEVICE_ERROR_OK; { ScopedWaitCursor cursor; m_pKeylockEngine->set(keylockComboBox->currentIndex()); m_pConfig->set(ConfigKey("[Master]", "keylock_engine"), ConfigValue(keylockComboBox->currentIndex())); err = m_pSoundManager->setConfig(m_config); } if (err != SOUNDDEVICE_ERROR_OK) { QString error = m_pSoundManager->getLastErrorMessage(err); QMessageBox::warning(NULL, tr("Configuration error"), error); } else { m_settingsModified = false; m_bLatencyChanged = false; } m_bSkipConfigClear = true; loadSettings(); // in case SM decided to change anything it didn't like checkLatencyCompensation(); m_bSkipConfigClear = false; }