Example #1
0
void CSetDialogs3::LoadDataImpl(git_config * config)
{
	{
		CString value;
		if (GetConfigValue(config, PROJECTPROPNAME_PROJECTLANGUAGE, value) == GIT_ENOTFOUND && m_iConfigSource != 0)
			m_langCombo.SetCurSel(0);
		else if (value == _T("-1"))
			m_langCombo.SetCurSel(2);
		else if (!value.IsEmpty())
		{
			LPTSTR strEnd;
			long longValue = _tcstol(value, &strEnd, 0);
			if (longValue == 0)
			{
				if (m_iConfigSource == 0)
					SelectLanguage(m_langCombo, CRegDWORD(_T("Software\\TortoiseGit\\LanguageID"), 1033));
				else
					m_langCombo.SetCurSel(1);
			}
			else
				SelectLanguage(m_langCombo, longValue);
		}
		else if (m_iConfigSource == 0)
			SelectLanguage(m_langCombo, CRegDWORD(_T("Software\\TortoiseGit\\LanguageID"), 1033));
		else
			m_langCombo.SetCurSel(1);
	}

	{
		m_LogMinSize = _T("");
		CString value;
		m_bInheritLogMinSize = (GetConfigValue(config, PROJECTPROPNAME_LOGMINSIZE, value) == GIT_ENOTFOUND);
		if (!value.IsEmpty() || m_iConfigSource == 0)
		{
			int nMinLogSize = _ttoi(value);
			m_LogMinSize.Format(L"%d", nMinLogSize);
			m_bInheritLogMinSize = FALSE;
		}
	}

	{
		m_Border = _T("");
		CString value;
		m_bInheritBorder = (GetConfigValue(config, PROJECTPROPNAME_LOGWIDTHLINE, value) == GIT_ENOTFOUND);
		if (!value.IsEmpty() || m_iConfigSource == 0)
		{
			int nLogWidthMarker = _ttoi(value);
			m_Border.Format(L"%d", nLogWidthMarker);
			m_bInheritBorder = FALSE;
		}
	}

	GetBoolConfigValueComboBox(config, PROJECTPROPNAME_WARNNOSIGNEDOFFBY, m_cWarnNoSignedOffBy);

	m_bInheritIconFile = (GetConfigValue(config, PROJECTPROPNAME_ICON, m_iconFile) == GIT_ENOTFOUND);

	m_bNeedSave = false;
	SetModified(FALSE);
	UpdateData(FALSE);
}
void CTDLLanguageComboBox::BuildLanguageList()
{
	if (GetCount())
		return; // already done

	// build the language list from csv files in the Resources\Translations folder
	CString sFolder = GetTranslationFolder();
	CStringArray aFiles;

	int nNumFiles = FileMisc::FindFiles(sFolder, aFiles, FALSE, m_sFilter);
	
	// add english as a default item
	HBITMAP hbmFlag = CEnBitmap::LoadImageResource(IDR_GB_FLAG, _T("GIF"));
	AddString(DEFLANG, hbmFlag, 1);

	// add rest of available languages
	for (int nFile = 0; nFile < nNumFiles; nFile++)
	{
		CString sFileName;
		FileMisc::SplitPath(aFiles[nFile], NULL, NULL, &sFileName, NULL);

		// load icon file
		CString sIconPath(aFiles[nFile]);
		FileMisc::ReplaceExtension(sIconPath, _T("gif"));

		hbmFlag = CEnBitmap::LoadImageFile(sIconPath);
		AddString(sFileName, hbmFlag, 0);
	}

	SelectLanguage(m_sSelLanguage);
}
USHORT SETTINGS :: FileNotOpenError (VOID)
{
    DisplayError (RSTR(IDS_HEADER_ERROR), RSTR(IDS_ERROR_INIFILENOTOPEN),
                  QueryProfileName ());
    SelectLanguage();
    return 0;
}
void CSynBCGPEditCtrl::LoadColor( BOOL bRedraw /*= FALSE*/ )
{
	m_clrBack = g_GlobalUtils.m_sColorScheme.m_clrBack;	//背景色
	m_clrText = g_GlobalUtils.m_sColorScheme.m_clrText; //正常色

	m_clrBackSelActive = g_GlobalUtils.m_sColorScheme.m_clrBackSelActive;	//选定的背景色
	m_clrBackSelInActive = g_GlobalUtils.m_sColorScheme.m_clrBackSelInActive;	//非活动的选定背景色
	m_clrTextSelActive = g_GlobalUtils.m_sColorScheme.m_clrTextSelActive;	//选定的文本色
	m_clrTextSelInActive = g_GlobalUtils.m_sColorScheme.m_clrTextSelInActive;	//非活动的选定文本色

	m_clrBackOutline = g_GlobalUtils.m_sColorScheme.m_clrBackOutline;	//折叠块背景色
	m_clrLineOutline = g_GlobalUtils.m_sColorScheme.m_clrLineOutline;	//折叠块线色

	m_clrBackLineNumber = g_GlobalUtils.m_sColorScheme.m_clrBackLineNumber;	//行号背景色
	m_clrTextLineNumber = g_GlobalUtils.m_sColorScheme.m_clrTextLineNumber;	//行号色
	m_clrBackSidebar = g_GlobalUtils.m_sColorScheme.m_clrBackSidebar;		//分隔线色
	m_clrHyperlink = g_GlobalUtils.m_sColorScheme.m_clrHyperlink;		//超链接色

	m_clrSyn = g_GlobalUtils.m_sColorScheme.m_clrSyn;		//语法颜色
	m_clrType = g_GlobalUtils.m_sColorScheme.m_clrType;		//类型颜色
	m_clrNumber = g_GlobalUtils.m_sColorScheme.m_clrNumber;	//数字颜色
	m_clrString = g_GlobalUtils.m_sColorScheme.m_clrString;	//字符串颜色
	m_clrChar = g_GlobalUtils.m_sColorScheme.m_clrChar;		//字符颜色
	m_clrComment = g_GlobalUtils.m_sColorScheme.m_clrComment;	//注释颜色

	if (bRedraw)
	{
		SelectLanguage(m_SynLanguage.GetCurLanguage());
	}
}
USHORT SETTINGS :: VersionError (VOID)
{
    DisplayError (RSTR(IDS_HEADER_WARNING), RSTR(IDS_ERROR_INIFILEWRONGVERSION),
                  QueryProfileName ());
    SelectLanguage();
    return 0;
}
void CTDLLanguageComboBox::SetLanguageFile(LPCTSTR szFile)
{
	if (GetDefaultLanguage() == szFile)
	{
		if (GetSafeHwnd())
			SelectLanguage(szFile);
		else
			m_sSelLanguage = szFile;
	}
	else
	{
		CString sPath = FileMisc::GetFullPath(szFile, FileMisc::GetAppFolder());
		
		if (FileMisc::FileExists(sPath))
		{
			FileMisc::SplitPath(szFile, NULL, NULL, &m_sSelLanguage, NULL);

			if (GetSafeHwnd())
				SelectLanguage(m_sSelLanguage);
		}
	}
}
Example #7
0
bool wxFlybotDLL::OnInit()
{
    m_taskBarIcon = NULL;
    m_locale = NULL;
    
    Config.Read(SETTING_BOT_ONLINE, &m_online, true);
    
    SelectLanguage(wxLANGUAGE_RUSSIAN);
    
    m_taskBarIcon = new FlybotTaskBarIcon();
    if (!m_taskBarIcon)
    {
        return false;
    }
    // set new logger (SetActiveTarget returns old logger)
    delete wxLog::SetActiveTarget(new wxLogBalloon(m_taskBarIcon));
    
    Dict.Load();
    
    // reload when dictionary file is changed
    m_dictWatcher = new DictionaryFSWatcher();
    m_dictWatcher->Start(DICTIONARY_WATCH_INTERVAL_MS);
    return true;
}
Example #8
0
Properties::Properties(QWidget *parent, CWmClient *wm)
    : QDialog(parent)
{
	ui.setupUi(this);
	ppl6::CString Tmp;

	this->wm=wm;

	Config *c=&wm->conf;

	// Registration verbergen
	ui.serial_label->setVisible(false);
	ui.serial->setVisible(false);
	ui.registerButton->setVisible(false);

	// General Options
	ui.wmDataPath->setText(c->DataPath);
	ui.tmpPath->setText(c->TmpPath);
	ui.showSplashscreen->setChecked(c->bShowSplashScreen);
	ui.checkForUpdates->setChecked(c->bCheckForUpdatesOnStartup);
	ui.suggestArtist->setChecked(c->bAutomaticArtistSuggestion);
	ui.suggestTitle->setChecked(c->bAutomaticTitleSuggestion);
	ui.automaticEditSearch->setChecked(c->bAutomaticEditSearch);
	ui.printColors->setChecked(c->bPrintColors);
	//ui.font->setText(c->PrinterFont);

	//Devices
	ui.devicePathCassette->setText(c->DevicePath[1]);
	ui.devicePathCD->setText(c->DevicePath[2]);
	ui.devicePathDataStorage->setText(c->DevicePath[3]);
	ui.devicePathRecord->setText(c->DevicePath[4]);
	ui.devicePathVHS->setText(c->DevicePath[5]);
	ui.devicePathOther->setText(c->DevicePath[6]);
	ui.devicePathMP3->setText(c->DevicePath[7]);
	ui.devicePathTape->setText(c->DevicePath[8]);
	ui.devicePathDVD->setText(c->DevicePath[9]);

	// MP3
	ui.mp3Player->setText(c->MP3Player);
	ui.aiffPlayer->setText(c->AIFFPlayer);
	if (c->ReadId3Tag==1) ui.readID3v1->setChecked(true);
	if (c->ReadId3Tag==2) ui.readID3v2->setChecked(true);
	ui.writeID3->setChecked(c->bWriteID3Tags);
	ui.removeOriginalTags->setChecked(c->bRemoveOriginalId3Tags);
	Tmp.Setf("%i",c->ID3v2Padding);
	ui.ID3v2Padding->setText(Tmp);
	ui.saveOriginalTags->setChecked(c->bSaveOriginalMp3Tags);
	ui.saveOriginalTagsOnAutoImport->setChecked(c->bSaveOriginalMp3TagsOnAutoImport);
	ui.normalizeFilenames->setChecked(c->bNormalizeFilename);
	ui.retryIntervall->setValue(c->TagSaverRetryIntervall);
	if (c->MaxFilenameLength<=64) ui.maxFilenameLength->setCurrentIndex(0);
	else if (c->MaxFilenameLength<=100) ui.maxFilenameLength->setCurrentIndex(1);
	else if (c->MaxFilenameLength<=207) ui.maxFilenameLength->setCurrentIndex(2);
	else if (c->MaxFilenameLength<=255) ui.maxFilenameLength->setCurrentIndex(3);
	else ui.maxFilenameLength->setCurrentIndex(4);

	ui.JpegQualityCover->setValue(c->JpegQualityCover);
	ui.JpegQualityPreview->setValue(c->JpegQualityPreview);


	// User
	ui.name->setText(c->UserName);
	ui.company->setText(c->UserCompany);
	ui.serial->setText(c->Serial);
	ui.currency->setText(c->Currency);

	int index=ui.font->findText(c->PrinterFont);
	if (index>=0) ui.font->setCurrentIndex(index);
	SelectLanguage();
	ui.tabWidget->setCurrentIndex(0);

	// Debug
	ui.enableDebug->setChecked(wm->conf.bEnableDebug);
	ui.logfile->setText(c->Logfile);
	ui.debuglevel->setValue(c->Debuglevel);
	ui.generations->setValue(c->LogfileGenerations);
	Tmp.Setf("%i",c->LogfileSize);
	ui.logfileSize->setText(Tmp);

	// Devices
	ui.device_1->setChecked(wm->conf.VisibleDevice[1]);
	ui.device_2->setChecked(wm->conf.VisibleDevice[2]);
	ui.device_3->setChecked(wm->conf.VisibleDevice[3]);
	ui.device_4->setChecked(wm->conf.VisibleDevice[4]);
	ui.device_5->setChecked(wm->conf.VisibleDevice[5]);
	ui.device_6->setChecked(wm->conf.VisibleDevice[6]);
	ui.device_7->setChecked(wm->conf.VisibleDevice[7]);
	ui.device_8->setChecked(wm->conf.VisibleDevice[8]);
	ui.device_9->setChecked(wm->conf.VisibleDevice[9]);

	// Directory search
	ui.cacheDirectories->setChecked(c->bCacheDirectorySearch);
	c->DirectorySearch.Reset();
	const char* row;
	while ((row=c->DirectorySearch.GetNext())) {
		ui.directoryList->addItem(row);
	}

	// Server
	if (c->bserverEnabled) ui.serverEnable->setChecked(true);
	else ui.serverEnable->setChecked(false);
	if (c->bserverEnableSSL) ui.serverEnableSSL->setChecked(true);
	else ui.serverEnableSSL->setChecked(false);
	ui.serverHostname->setText(c->serverHost);
	Tmp.Setf("%i",c->serverPort);
	ui.serverPort->setText(Tmp);
	ui.serverKeyfile->setText(c->serverSSLKeyfile);
	ui.serverKeyPassword->setText(wm->DeCrypt(c->serverSSLPassword));



	// MusicKey
	switch (c->musicKeyDisplay) {
		case musicKeyTypeMusicalSharps: ui.displayMusicKey->setCurrentIndex(0); break;
		case musicKeyTypeOpenKey: ui.displayMusicKey->setCurrentIndex(1); break;
		case musicKeyTypeCustom: ui.displayMusicKey->setCurrentIndex(2); break;
		default: ui.displayMusicKey->setCurrentIndex(1); break;

	}

	switch (c->musicKeyTag) {
		case musicKeyTypeNone: ui.saveMusicKey->setCurrentIndex(0); break;
		case musicKeyTypeMusicalSharps: ui.saveMusicKey->setCurrentIndex(1); break;
		case musicKeyTypeOpenKey: ui.saveMusicKey->setCurrentIndex(2); break;
		case musicKeyTypeCustom: ui.saveMusicKey->setCurrentIndex(3); break;
		default: ui.saveMusicKey->setCurrentIndex(2); break;
	}
	ui.customMusicKeyName->setText(c->customMusicKeyName);
	ui.customMusicalKey_1->setText(c->customMusicKey[1]);
	ui.customMusicalKey_2->setText(c->customMusicKey[2]);
	ui.customMusicalKey_3->setText(c->customMusicKey[3]);
	ui.customMusicalKey_4->setText(c->customMusicKey[4]);
	ui.customMusicalKey_5->setText(c->customMusicKey[5]);
	ui.customMusicalKey_6->setText(c->customMusicKey[6]);
	ui.customMusicalKey_7->setText(c->customMusicKey[7]);
	ui.customMusicalKey_8->setText(c->customMusicKey[8]);
	ui.customMusicalKey_9->setText(c->customMusicKey[9]);
	ui.customMusicalKey_10->setText(c->customMusicKey[10]);
	ui.customMusicalKey_11->setText(c->customMusicKey[11]);
	ui.customMusicalKey_12->setText(c->customMusicKey[12]);
	ui.customMusicalKey_13->setText(c->customMusicKey[13]);
	ui.customMusicalKey_14->setText(c->customMusicKey[14]);
	ui.customMusicalKey_15->setText(c->customMusicKey[15]);
	ui.customMusicalKey_16->setText(c->customMusicKey[16]);
	ui.customMusicalKey_17->setText(c->customMusicKey[17]);
	ui.customMusicalKey_18->setText(c->customMusicKey[18]);
	ui.customMusicalKey_19->setText(c->customMusicKey[19]);
	ui.customMusicalKey_20->setText(c->customMusicKey[20]);
	ui.customMusicalKey_21->setText(c->customMusicKey[21]);
	ui.customMusicalKey_22->setText(c->customMusicKey[22]);
	ui.customMusicalKey_23->setText(c->customMusicKey[23]);
	ui.customMusicalKey_24->setText(c->customMusicKey[24]);
	ui.customMusicalKey_25->setText(c->customMusicKey[25]);

	// CDDB
	if (ppl6::AudioCD::isSupported()==true && ppl6::CDDB::isSupported()==true) {
		ui.cddbServer->setText(c->cddb.server);
		Tmp.Setf("%i",c->cddb.port);
		ui.cddbPort->setText(Tmp);
		ui.cdioDevice->clear();
		std::list<ppl6::CString> devices=ppl6::AudioCD::getDevices();
		ui.cdioDevice->addItem(tr("Default"),"default");
		std::list<ppl6::CString>::const_iterator it;
		for (it=devices.begin();it!=devices.end();++it) {
			ui.cdioDevice->addItem((*it),(*it));

		}
		index=ui.cdioDevice->findData(c->cddb.cddevice);
		if (index>=0) ui.cdioDevice->setCurrentIndex(index);

		ui.cddbQueryPath->setText(c->cddb.querypath);
		ui.cddbUserName->setText(c->cddb.username);
		ui.cddbHostName->setText(c->cddb.hostname);
		ui.cddbProxyServer->setText(c->cddb.proxy_server);
		Tmp.Setf("%i",c->cddb.proxy_port);
		ui.cddbProxyPort->setText(Tmp);
		ui.cddbUseProxy->setChecked(c->cddb.useProxy);
		ui.cddbProxyLayout_2->setEnabled(c->cddb.useProxy);

	} else {
		ui.tab_cddb->setEnabled(false);
	}


	// Finish
	ui.acceptButton->setEnabled(false);
	QString Style="QTreeView::item {\n"
	    		"border-right: 1px solid #b9b9b9;\n"
	    		"border-bottom: 1px solid #b9b9b9;\n"
	    		"}\n"
	    		"QTreeView::item:selected {\n"
	    		"background: #d0d0ff;\n"
	    		"color: #000000;\n"
	    		"}\n"
	    		"";
	ui.regexpTable->setStyleSheet(Style);
	UpdateRegExpPatternTable();
}
Example #9
0
int Properties::Save()
{
	ppl6::CString Tmp;
	int index;

	if (!wm) {
		// This should never happen
		QMessageBox::critical(this, tr("WinMusik - Internal error!"),
				tr("An internal data pointer is NULL, this should never happen and is a Bug. Please write a bugreport."));
		return 0;
	}
	Config *c=&wm->conf;

	Tmp=ui.wmDataPath->text();

	// DataPath has changed, we need to close the database and all currently opened
	// Windows before
	if (Tmp!=wm->conf.DataPath) wm->CloseDatabase();

	// General Options
	c->DataPath=ui.wmDataPath->text();
	c->TmpPath=ui.tmpPath->text();
	c->bShowSplashScreen=ui.showSplashscreen->isChecked();
	c->bCheckForUpdatesOnStartup=ui.checkForUpdates->isChecked();
	c->bAutomaticArtistSuggestion=ui.suggestArtist->isChecked();
	c->bAutomaticTitleSuggestion=ui.suggestTitle->isChecked();
	c->bAutomaticEditSearch=ui.automaticEditSearch->isChecked();
	c->bPrintColors=ui.printColors->isChecked();
	c->PrinterFont=ui.font->currentText();
	c->bCacheDirectorySearch=ui.cacheDirectories->isChecked();

	// Devices
	c->DevicePath[1]=ui.devicePathCassette->text();
	c->DevicePath[2]=ui.devicePathCD->text();
	c->DevicePath[3]=ui.devicePathDataStorage->text();
	c->DevicePath[4]=ui.devicePathRecord->text();
	c->DevicePath[5]=ui.devicePathVHS->text();
	c->DevicePath[6]=ui.devicePathOther->text();
	c->DevicePath[7]=ui.devicePathMP3->text();
	c->DevicePath[8]=ui.devicePathTape->text();
	c->DevicePath[9]=ui.devicePathDVD->text();

	// MP3
	c->MP3Player=ui.mp3Player->text();
	c->AIFFPlayer=ui.aiffPlayer->text();
	if (ui.readID3v1->isChecked()) c->ReadId3Tag=1;
	else c->ReadId3Tag=2;
	c->bWriteID3Tags=ui.writeID3->isChecked();
	c->bRemoveOriginalId3Tags=ui.removeOriginalTags->isChecked();
	c->ID3v2Padding=ui.ID3v2Padding->text().toInt();
	c->bSaveOriginalMp3Tags=ui.saveOriginalTags->isChecked();
	c->bSaveOriginalMp3TagsOnAutoImport=ui.saveOriginalTagsOnAutoImport->isChecked();
	c->bNormalizeFilename=ui.normalizeFilenames->isChecked();
	c->TagSaverRetryIntervall=ui.retryIntervall->value();
	if (ui.maxFilenameLength->currentIndex()==0) c->MaxFilenameLength=64;
	else if (ui.maxFilenameLength->currentIndex()==1) c->MaxFilenameLength=100;
	else if (ui.maxFilenameLength->currentIndex()==2) c->MaxFilenameLength=207;
	else if (ui.maxFilenameLength->currentIndex()==3) c->MaxFilenameLength=255;
	else c->MaxFilenameLength=1024;
	c->JpegQualityCover=ui.JpegQualityCover->value();
	c->JpegQualityPreview=ui.JpegQualityPreview->value();

	// User
	Tmp=c->Locale;
	c->Locale=GetLocale();
	if (c->Locale!=Tmp) {
		wm->ReloadTranslation();
		ui.retranslateUi(this);
		SelectLanguage();
	}
	c->UserName=ui.name->text();
	c->UserCompany=ui.company->text();
	c->Serial=ui.serial->text();
	c->Currency=ui.currency->text();

	// Debug
	c->bEnableDebug=ui.enableDebug->isChecked();
	c->Logfile=ui.logfile->text();
	c->LogfileSize=ui.logfileSize->text().toInt();
	c->LogfileGenerations=ui.generations->value();
	c->Debuglevel=ui.debuglevel->value();

	// Devices
	wm->conf.VisibleDevice[1]=ui.device_1->isChecked();
	wm->conf.VisibleDevice[2]=ui.device_2->isChecked();
	wm->conf.VisibleDevice[3]=ui.device_3->isChecked();
	wm->conf.VisibleDevice[4]=ui.device_4->isChecked();
	wm->conf.VisibleDevice[5]=ui.device_5->isChecked();
	wm->conf.VisibleDevice[6]=ui.device_6->isChecked();
	wm->conf.VisibleDevice[7]=ui.device_7->isChecked();
	wm->conf.VisibleDevice[8]=ui.device_8->isChecked();
	wm->conf.VisibleDevice[9]=ui.device_9->isChecked();

	c->DirectorySearch.Clear();
	for (int i=0;i<ui.directoryList->count();i++) {
		QListWidgetItem * item=ui.directoryList->item(i);
		Tmp=item->text();
		c->DirectorySearch.Add(Tmp);
	}

	// Server
	bool serverChanged=false;
	if (c->bserverEnabled!=ui.serverEnable->isChecked()) serverChanged=true;
	if (c->bserverEnableSSL!=ui.serverEnableSSL->isChecked()) serverChanged=true;
	if (c->serverHost!=ppl6::CString(ui.serverHostname->text())) serverChanged=true;
	if (c->serverPort!=ui.serverHostname->text().toInt()) serverChanged=true;
	if (c->serverSSLKeyfile!=ppl6::CString(ui.serverKeyfile->text())) serverChanged=true;
	Tmp=wm->Crypt(ppl6::CString(ui.serverKeyPassword->text()));
	if (Tmp!=c->serverSSLPassword) serverChanged=true;

	if (serverChanged) wm->StopServer();

	c->bserverEnabled=ui.serverEnable->isChecked();
	c->bserverEnableSSL=ui.serverEnableSSL->isChecked();
	c->serverHost=ui.serverHostname->text();
	c->serverPort=ui.serverPort->text().toInt();
	c->serverSSLKeyfile=ui.serverKeyfile->text();
	Tmp=ui.serverKeyPassword->text();
	c->serverSSLPassword=wm->Crypt(Tmp);

	// MusicKey
	switch (ui.displayMusicKey->currentIndex()) {
		case 0: c->musicKeyDisplay=musicKeyTypeMusicalSharps; break;
		case 1: c->musicKeyDisplay=musicKeyTypeOpenKey; break;
		case 2: c->musicKeyDisplay=musicKeyTypeCustom; break;
		default: c->musicKeyDisplay=musicKeyTypeOpenKey; break;
	}
	switch (ui.saveMusicKey->currentIndex()) {
		case 0: c->musicKeyTag=musicKeyTypeNone; break;
		case 1: c->musicKeyTag=musicKeyTypeMusicalSharps; break;
		case 2: c->musicKeyTag=musicKeyTypeOpenKey; break;
		case 3: c->musicKeyTag=musicKeyTypeCustom; break;
		default: c->musicKeyTag=musicKeyTypeOpenKey; break;
	}
	c->customMusicKeyName=ui.customMusicKeyName->text();
	c->customMusicKey[1]=ui.customMusicalKey_1->text();
	c->customMusicKey[2]=ui.customMusicalKey_2->text();
	c->customMusicKey[3]=ui.customMusicalKey_3->text();
	c->customMusicKey[4]=ui.customMusicalKey_4->text();
	c->customMusicKey[5]=ui.customMusicalKey_5->text();
	c->customMusicKey[6]=ui.customMusicalKey_6->text();
	c->customMusicKey[7]=ui.customMusicalKey_7->text();
	c->customMusicKey[8]=ui.customMusicalKey_8->text();
	c->customMusicKey[9]=ui.customMusicalKey_9->text();
	c->customMusicKey[10]=ui.customMusicalKey_10->text();
	c->customMusicKey[11]=ui.customMusicalKey_11->text();
	c->customMusicKey[12]=ui.customMusicalKey_12->text();
	c->customMusicKey[13]=ui.customMusicalKey_13->text();
	c->customMusicKey[14]=ui.customMusicalKey_14->text();
	c->customMusicKey[15]=ui.customMusicalKey_15->text();
	c->customMusicKey[16]=ui.customMusicalKey_16->text();
	c->customMusicKey[17]=ui.customMusicalKey_17->text();
	c->customMusicKey[18]=ui.customMusicalKey_18->text();
	c->customMusicKey[19]=ui.customMusicalKey_19->text();
	c->customMusicKey[20]=ui.customMusicalKey_20->text();
	c->customMusicKey[21]=ui.customMusicalKey_21->text();
	c->customMusicKey[22]=ui.customMusicalKey_22->text();
	c->customMusicKey[23]=ui.customMusicalKey_23->text();
	c->customMusicKey[24]=ui.customMusicalKey_24->text();
	c->customMusicKey[25]=ui.customMusicalKey_25->text();

	// CDDB
	if (ppl6::AudioCD::isSupported()==true && ppl6::CDDB::isSupported()==true) {
		c->cddb.server=ui.cddbServer->text();
		c->cddb.port=ui.cddbPort->text().toInt();
		index=ui.cdioDevice->currentIndex();
		if (index>=0) c->cddb.cddevice=ui.cdioDevice->itemData(index).toString();

		c->cddb.proxy_server=ui.cddbProxyServer->text();
		c->cddb.proxy_port=ui.cddbProxyPort->text().toInt();
		c->cddb.username=ui.cddbUserName->text();
		c->cddb.hostname=ui.cddbHostName->text();
		c->cddb.querypath=ui.cddbQueryPath->text();
		c->cddb.useProxy=ui.cddbUseProxy->isChecked();

	}

	// Save

	if (!wm->conf.Save()) {
		return 0;
	}

	if (c->bserverEnabled==true && serverChanged==true) wm->StartServer();

	wm->InitLogging();
	wm->UpdateMenue();
	return 1;
}
Example #10
0
bool SelectHelpLanguage() {return SelectLanguage(true);}
Example #11
0
bool SelectInterfaceLanguage() {return SelectLanguage(false);}
Example #12
0
void CSynBCGPEditCtrl::SelectLanguageByExt( CString strExt )
{
	SelectLanguage(g_GlobalUtils.m_sLanguageExt.GetLanguageByExt(strExt));
}
Example #13
0
bool SelectHelpLanguage(string& Dest) {return SelectLanguage(true, Dest);}
Example #14
0
bool SelectInterfaceLanguage(string& Dest) {return SelectLanguage(false, Dest);}