void TprocsfsPage::preferred2dlg(void) { int prefsfs=cfgGet(IDFF_preferredsfs); setCheck(IDC_CHB_PREFERRED_PCM16 ,prefsfs&TsampleFormat::SF_PCM16 ); setCheck(IDC_CHB_PREFERRED_PCM32 ,prefsfs&TsampleFormat::SF_PCM32 ); setCheck(IDC_CHB_PREFERRED_FLOAT32,prefsfs&TsampleFormat::SF_FLOAT32); }
void TresizeBordersPage::cfg2dlg(void) { int inside = cfgGet(IDFF_bordersInside); setCheck(IDC_RBT_BORDER_INSIDE, inside == 1); setCheck(IDC_RBT_BORDER_OUTSIDE, inside == 0); int units = cfgGet(IDFF_bordersUnits); int lock = cfgGet(IDFF_bordersLocked); setCheck(IDC_CHB_BORDERSLOCKED, lock); enable(!lock, IDC_LBL_BORDER_VERT); static const int idHorizPercent[] = {IDC_LBL_BORDER_HORIZ_PERCENT, IDC_TBR_BORDER_HORIZ_PERCENT, 0}; static const int idVertPercent[] = {IDC_LBL_BORDER_VERT_PERCENT , IDC_TBR_BORDER_VERT_PERCENT , 0}; static const int idHorizPixels[] = {IDC_LBL_BORDER_HORIZ_PIXELS, IDC_TBR_BORDER_HORIZ_PIXELS, 0}; static const int idVertPixels[] = {IDC_LBL_BORDER_VERT_PIXELS , IDC_TBR_BORDER_VERT_PIXELS , 0}; setCheck(IDC_RBT_BORDER_PERCENT, units == 0); enable(units == 0, idHorizPercent); enable(units == 0 && !lock, idVertPercent); setCheck(IDC_RBT_BORDER_PIXELS , units == 1); enable(units == 1, idHorizPixels); enable(units == 1 && !lock, idVertPixels); int x; x = cfgGet(IDFF_bordersPercentX); tbrSet(IDC_TBR_BORDER_HORIZ_PERCENT, x); setText(IDC_LBL_BORDER_HORIZ_PERCENT, _l("%i%%"), x); x = cfgGet(IDFF_bordersPercentY); tbrSet(IDC_TBR_BORDER_VERT_PERCENT , x); setText(IDC_LBL_BORDER_VERT_PERCENT , _l("%i%%"), x); tbrSet(IDC_TBR_BORDER_HORIZ_PIXELS, cfgGet(IDFF_bordersPixelsX), IDC_LBL_BORDER_HORIZ_PIXELS); tbrSet(IDC_TBR_BORDER_VERT_PIXELS , cfgGet(IDFF_bordersPixelsY), IDC_LBL_BORDER_VERT_PIXELS); div2dlg(); }
// This routine called before any translations loaded, so strings must be translated explicitly. void Settings::makeDefault () { _regionID = "1"; // Default city _cities["1"] = tr ("Moscow"); _cities["10174"] = tr ("St.Petersburg"); _cities["20544"] = tr ("Kiev"); _cities["11162"] = tr ("Ekaterinburg"); setCheck (C_ShowLight, true); setCheck (C_ShowRank, true); setCheck (C_ShowHint, true); setCheck (C_UpdateOnWiFi, true); setCheck (C_UpdateWhenLocked, true); _updateIntervalIndex = 3; // languages _langs.append (Language (QString (""), tr ("System"))); _langs.append (Language (QString ("en"), tr ("English"))); _langs.append (Language (QString ("ru"), tr ("Russian"))); setLanguageIndex (0); }
void TdeinterlacePageYadif::cfg2dlg(void) { setCheck(IDC_CHB_YADIF_SKIP_CHECK, !!(cfgGet(IDFF_yadifMode) & 2)); setCheck(IDC_CHB_YADIF_DOUBLE_FRAMERATE, cfgGet(IDFF_yadifMode) & 1); int se=cfgGet(IDFF_yadifFieldOrder); cbxSetDataCurSel(IDC_CBX_YADIF_PARITY,se); }
void TpresetAutoloadDlgBase::init(void) { translate(); const char_t *capt = tr->translate(m_hwnd, dialogId, 0, NULL); if (capt && capt[0]) { setWindowText(m_hwnd, capt); } char_t presetname[MAX_PATH]; deciD->getActivePresetName(presetname, countof(presetname)); setText(IDC_LBL_AUTOLOAD, _(IDC_LBL_AUTOLOAD, _l("Preset '%s' will be autoloaded ...")), presetname); itemsw = new TitemsWindow(deci, m_hwnd, items); CRect ir = getChildRect(IDC_PLC_AUTOLOAD_ITEMS); SetWindowPos(itemsw->m_hwnd, GetDlgItem(m_hwnd, IDC_PLC_AUTOLOAD_ITEMS), ir.left, ir.top, ir.Width(), ir.Height(), 0); unsigned int cnt = deciD->getPresetAutoloadItemsCount2(); items.resize(cnt); for (unsigned int i = 0; i < cnt; i++) { deciD->getPresetAutoloadItemInfo(i, &items[i].name, &items[i].hint, &items[i].allowWildcard, &items[i].is, &items[i].isVal, items[i].val, sizeof(items[i].val), &items[i].isList, &items[i].isHelp); } itemsw->showItems(); setCheck(IDC_RBT_PRESETAUTOLOAD_OR , deci->getParam2(IDFF_presetAutoloadLogic) == 0); setCheck(IDC_RBT_PRESETAUTOLOAD_AND , deci->getParam2(IDFF_presetAutoloadLogic) != 0); static const int idScreenSize[] = {IDC_CHB_PRESETAUTOLOAD_SCREEN_SIZE, IDC_ED_PRESETAUTOLOAD_SIZE_SCREEN_XMIN, IDC_ED_PRESETAUTOLOAD_SIZE_SCREEN_XMAX, IDC_BT_PRESETAUTOLOAD_SIZE_SCREEN_COMP, IDC_ED_PRESETAUTOLOAD_SIZE_SCREEN_YMIN, IDC_ED_PRESETAUTOLOAD_SIZE_SCREEN_YMAX, IDC_LBL_PRESETAUTOLOAD_SCREEN_WIDTH, IDC_LBL_PRESETAUTOLOAD_SCREEN_HEIGHT, 0}; enable(1, idScreenSize); setCheck(IDC_CHB_PRESETAUTOLOAD_SCREEN_SIZE , deci->getParam2(IDFF_presetAutoloadScreenSize)); SetDlgItemInt(m_hwnd, IDC_ED_PRESETAUTOLOAD_SIZE_SCREEN_XMIN, deci->getParam2(IDFF_presetAutoloadScreenSizeXmin), FALSE); SetDlgItemInt(m_hwnd, IDC_ED_PRESETAUTOLOAD_SIZE_SCREEN_XMAX, deci->getParam2(IDFF_presetAutoloadScreenSizeXmax), FALSE); cond2dlg(); SetDlgItemInt(m_hwnd, IDC_ED_PRESETAUTOLOAD_SIZE_SCREEN_YMIN, deci->getParam2(IDFF_presetAutoloadScreenSizeYmin), FALSE); SetDlgItemInt(m_hwnd, IDC_ED_PRESETAUTOLOAD_SIZE_SCREEN_YMAX, deci->getParam2(IDFF_presetAutoloadScreenSizeYmax), FALSE); }
void TOSDpageDec::osd2dlg(void) { const char_t *osdsStr = cfgGetStr(IDFF_OSDformat); if (strncmp(osdsStr, _l("user"), 4) == 0) { ListView_SetExtendedListViewStyleEx(hlv, LVS_EX_CHECKBOXES, 0); setCheck(IDC_CHB_OSD_USER, 1); enable(1, IDC_ED_OSD_USER); setText(IDC_ED_OSD_USER, _l("%s"), osdsStr + 4); user = true; } else { ListView_SetExtendedListViewStyleEx(hlv, LVS_EX_CHECKBOXES, LVS_EX_CHECKBOXES); setCheck(IDC_CHB_OSD_USER, 0); enable(0, IDC_ED_OSD_USER); strtok(osdsStr, _l(" "), osds); int cnt = ListView_GetItemCount(hlv); nostate = true; for (int j = 0; j < cnt; j++) { ListView_SetCheckState(hlv, j, FALSE); } nostate = false; for (ints::const_iterator i = osds.begin(); i != osds.end(); i++) { checkOSDline(*i, true); } ListView_SortItems(hlv, osdsSort, LPARAM(this)); user = false; } int isAutoHide = cfgGet(IDFF_OSDisAutoHide); setCheck(IDC_CHB_OSD_IS_AUTO_HIDE, isAutoHide); enable(isAutoHide, IDC_ED_OSD_DURATION_VISIBLE); SetDlgItemInt(m_hwnd, IDC_ED_OSD_DURATION_VISIBLE, cfgGet(IDFF_OSDdurationVisible), FALSE); save2dlg(); }
void TresizeAspectPage::resize2dlg(void) { setCheck(IDC_CHB_RESIZE, cfgGet(IDFF_isResize)); int sarinternally = cfgGet(IDFF_resizeSARinternally); setCheck(IDC_CHB_SAR_INTERNALLY, sarinternally); SetDlgItemInt(m_hwnd, IDC_ED_RESIZEDX, cfgGet(IDFF_resizeDx), FALSE); int y = cfgGet(IDFF_resizeDy); SetDlgItemInt(m_hwnd, IDC_ED_RESIZEDY, y , FALSE); SetDlgItemInt(m_hwnd, IDC_ED_RESIZE_MOD_16, cfgGet(IDFF_resizeMultOf), FALSE); SetDlgItemInt(m_hwnd, IDC_ED_RESIZEA1, cfgGet(IDFF_resizeA1), FALSE); SetDlgItemInt(m_hwnd, IDC_ED_RESIZEA2, cfgGet(IDFF_resizeA2), FALSE); SetDlgItemInt(m_hwnd, IDC_ED_RESIZE_OUT_DEVICE_A1, cfgGet(IDFF_resizeOutDeviceA1), FALSE); SetDlgItemInt(m_hwnd, IDC_ED_RESIZE_OUT_DEVICE_A2, cfgGet(IDFF_resizeOutDeviceA2), FALSE); setText(IDC_ED_RESIZE_MULT, _l("%.3f"), float(cfgGet(IDFF_resizeMult1000) / 1000.0)); static const int idSai[] = {IDC_RBT_RESIZE_MODE_SIZE, IDC_LBL_NEW_SIZE, IDC_ED_RESIZEDX, IDC_ED_RESIZEDY, IDC_BT_RESIZE_SIZE_MENU, IDC_RBT_RESIZE_MODE_ASPECT, IDC_LBL_NEW_ASPECT, IDC_ED_RESIZEA1, IDC_LBL_NEW_ASPECT_SEP, IDC_ED_RESIZEA2, IDC_BT_RESIZE_ASPECT_MENU, IDC_RBT_RESIZE_MOD_16, IDC_ED_RESIZE_MOD_16, IDC_ED_RESIZE_MOD_16, IDC_BT_RESIZE_MOD_16, IDC_RBT_RESIZE_MODE_MULT, IDC_ED_RESIZE_MULT, IDC_CHB_SAR_INTERNALLY, IDC_RBT_RESIZE_MODE_SIZE_H, 0 }; bool isLibSai = TresizeAspectSettings::methodsProps[cfgGet(IDFF_resizeMethodLuma)].library == TresizeAspectSettings::LIB_SAI; enable(!isLibSai, idSai); static const int idParOutDev[] = {IDC_ED_RESIZE_OUT_DEVICE_A1, IDC_ED_RESIZE_OUT_DEVICE_A2, IDC_LBL_PAR_OUTDEV, 0}; enable(sarinternally && !isLibSai, idParOutDev); resizeMode2dlg(); }
void TdeinterlacePage::deint2dlg(void) { setCheck(IDC_CHB_DEINTERLACEALWAYS, cfgGet(IDFF_deinterlaceAlways)); setCheck(IDC_CHB_SWAP_FIELDS, cfgGet(IDFF_swapFields)); //enable(cfgGet(IDFF_isDeinterlace),IDC_CHB_SWAP_FIELDS); deint2dlgAgain: int method = cfgGet(IDFF_deinterlaceMethod); if (panel) { delete panel; } panel = NULL; const TdeinterlaceSettings::TmethodProps &methodProps = TdeinterlaceSettings::getMethod(method); if (methodProps.id != TdeinterlaceSettings::DSCALER) { cbxSetDataCurSel(IDC_CBX_DEINT_METHOD, method); if (methodProps.create) { panel = methodProps.create(this); } } else { strings::const_iterator diflnm = std::find(diflnms.begin(), diflnms.end(), cfgGetStr(IDFF_dscalerDIflnm)); if (diflnm != diflnms.end()) { cbxSetCurSel(IDC_CBX_DEINT_METHOD, int(diflnm - diflnms.begin() + dscalerstart)); panel = new TdeinterlacePageDScaler(this, diflnm->c_str()); } else { cfgSet(IDFF_deinterlaceMethod, 0); goto deint2dlgAgain; } } if (panel) { SetWindowPos(panel->m_hwnd, place, placer.left, placer.top, 0, 0, SWP_NOSIZE); panel->cfg2dlg(); } }
void TinPage::in2dlg(void) { setCheck(IDC_CHB_PROC,cfgGet(IDFF_enc_isProc)); setCheck(IDC_CHB_FLIP,cfgGet(IDFF_enc_flip)); static const int idProc[]= {IDC_CHB_PROC,IDC_BT_PROC_CONFIG,0}; enable(ffproc?1:0,idProc); }
void TkeysPage::keys2dlg(void) { setCheck(IDC_CHB_KEYS, cfgGet(IDFF_isKeys)); setCheck(IDC_CHB_KEYS_ALWAYS, cfgGet(IDFF_keysAlways)); setCheck(IDC_CHB_KEYS_SHORTOSD, cfgGet(IDFF_keysShortOsd)); SetDlgItemInt(m_hwnd, IDC_ED_KEYS_SEEK1, cfgGet(IDFF_keysSeek1), FALSE); SetDlgItemInt(m_hwnd, IDC_ED_KEYS_SEEK2, cfgGet(IDFF_keysSeek2), FALSE); }
void TgenericHuffyuvPage::cfg2dlg(void) { cbxSetCurSel(IDC_CBX_HUFFYUV_CSP, cfgGet(IDFF_enc_huffyuv_csp)); cbxSetCurSel(IDC_CBX_HUFFYUV_PRED, cfgGet(IDFF_enc_huffyuv_pred)); setCheck(IDC_CHB_HUFFYUV_CTX, cfgGet(IDFF_enc_huffyuv_ctx)); setCheck(IDC_CHB_GRAY, cfgGet(IDFF_enc_gray)); enable(0, IDC_CHB_GRAY); }
void TshowMVpage::cfg2dlg(void) { setCheck(IDC_CHB_VIS_MV, cfgGet(IDFF_visMV)); enable((filterMode & IDFF_FILTERMODE_VIDEORAW) == 0, IDC_CHB_VIS_MV); setCheck(IDC_CHB_VIS_QUANTS, cfgGet(IDFF_visQuants)); enable((filterMode & IDFF_FILTERMODE_VIDEORAW) == 0, IDC_CHB_VIS_QUANTS); setCheck(IDC_CHB_VIS_GRAPH, cfgGet(IDFF_visGraph)); }
void TvolumePage::mute2dlg(void) { for (int i = 0; i < countof(idffsMS); i++) { int v = cfgGet(idffsMS[i]); setCheck(mutes[i], v == 1); setCheck(solos[i], v == 2); } }
void TvolumePage::cfg2dlg(void) { setCheck(IDC_CHB_VOL_DB, isdb); setCheck(IDC_CHB_VOLUME_SHOWCURRENT, cfgGet(IDFF_showCurrentVolume)); master2dlg(); speakers2dlg(); normalize2dlg(); }
void Order2IWidget::checkText(const QString &text) { if (text.length() == 0) { emit setCheck(false); return; } emit setCheck(true); }
void TgraphPage::debug2dlg(void) { setCheck(IDC_CHB_OUTPUTDEBUG, cfgGet(IDFF_outputdebug)); setCheck(IDC_CHB_OUTPUTDEBUGFILE, cfgGet(IDFF_outputdebugfile)); setDlgItemText(m_hwnd, IDC_ED_OUTPUTDEBUGFILE, cfgGetStr(IDFF_debugfile)); static const int idDebugFile[] = {IDC_ED_OUTPUTDEBUGFILE, IDC_BT_OUTPUTDEBUGFILE, 0}; enable(cfgGet(IDFF_outputdebugfile), idDebugFile); setCheck(IDC_CHB_ERRORBOX, cfgGet(IDFF_errorbox)); }
void TfiltersPage::noise2dlg(void) { setCheck(IDC_CHB_NOISE ,cfgGet(IDFF_isNoise)); setCheck(IDC_RBT_NOISE_MOJ ,cfgGet(IDFF_noiseMethod)==0); setCheck(IDC_RBT_NOISE_AVIH ,cfgGet(IDFF_noiseMethod)==1); setCheck(IDC_CHB_NOISE_UNIFORM,cfgGet(IDFF_uniformNoise)); SendDlgItemMessage(m_hwnd,IDC_TBR_NOISESTRENGTH,TBM_SETPOS,TRUE,writeNoiseStrength(cfgGet(IDFF_noiseStrength))); SendDlgItemMessage(m_hwnd,IDC_TBR_NOISESTRENGTH_CHROMA,TBM_SETPOS,TRUE,writeNoiseStrengthChroma(cfgGet(IDFF_noiseStrengthChroma))); }
void ToutPage::out2dlg(void) { setCheck(IDC_CHB_STORE_AVI,cfgGet(IDFF_enc_storeAVI)); setCheck(IDC_CHB_STORE_EXTERNAL,cfgGet(IDFF_enc_storeExt)); static const int idStoreExt[]= {IDC_CBX_MUXER,IDC_BT_STORE_EXTERNAL,IDC_ED_STORE_EXTERNAL,0}; setDlgItemText(m_hwnd,IDC_ED_STORE_EXTERNAL,cfgGetStr(IDFF_enc_storeExtFlnm)); cbxSetCurSel(IDC_CBX_MUXER,cfgGet(IDFF_enc_muxer)); enable(cfgGet(IDFF_enc_storeExt),idStoreExt); }
void TdctPage::cfg2dlg(void) { int mode = cfgGet(IDFF_dctMode); setCheck(IDC_RBT_DCT_COEFFS, mode == 0); coeffs2dlg(); setCheck(IDC_RBT_DCT_H263 , mode == 1); setCheck(IDC_RBT_DCT_MPEG , mode == 2); quant2dlg(); }
void TpostProcPage::postProc2dlg(void) { SendDlgItemMessage(m_hwnd,IDC_TBR_PPQUAL,TBM_SETPOS,TRUE,cfgGet(IDFF_ppqual)); setCheck(IDC_CHB_AUTOQ , cfgGet(IDFF_autoq)); setCheck(IDC_RBT_PPPRESETS,!cfgGet(IDFF_ppIsCustom)); setCheck(IDC_RBT_PPCUSTOM , cfgGet(IDFF_ppIsCustom)); setCheck(IDC_CHB_LEVELFIX_LUM ,cfgGet(IDFF_levelFixLum)); setCheck(IDC_CHB_LEVELFIX_CHROM,cfgGet(IDFF_levelFixChrom)); setPPchbs(); }
void TlevelsPage::cfg2dlg(void) { repaint(GetDlgItem(m_hwnd,IDC_BMP_LEVELS_IN )); repaint(GetDlgItem(m_hwnd,IDC_BMP_LEVELS_OUT)); setCheck(IDC_CHB_LEVELS_SHOW_HISTOGRAM,cfgGet(IDFF_buildHistogram)); setCheck(IDC_CHB_LEVELS_SHOW_HISTOGRAM_FULL,cfgGet(IDFF_levelsFullY)); cbxSetCurSel(IDC_CBX_LEVELS_MODE,cfgGet(IDFF_levelsMode)); levels2dlg(); setCheck(IDC_CHB_LEVELS_INPUT_AUTO,cfgGet(IDFF_levelsInAuto)); }
void TvolumePage::normalize2dlg(void) { setCheck(IDC_CHB_VOLUME_NORMALIZE, cfgGet(IDFF_volumeNormalize)); int val = cfgGet(IDFF_maxNormalization); if (isdb) { val = limit(ff_round(value2db(val / 100.0)), 0, 30); } SetDlgItemInt(m_hwnd, IDC_ED_VOLUME_NORMALIZE_MAX, val, FALSE); setCheck(IDC_CHB_NORMALIZE_RESETONSEEK, cfgGet(IDFF_volumeNormalizeResetOnSeek)); setCheck(IDC_CHB_NORMALIZE_REGAINVOLUME, cfgGet(IDFF_volumeNormalizeRegainVolume)); }
void ToutsfsPage::ac32dlg(int &outsfs) { if (enabled(IDC_CHB_OUT_AC3)) { int isAC3 = outsfs & TsampleFormat::SF_AC3; setCheck(IDC_CHB_OUT_AC3, isAC3); cbxSetDataCurSel(IDC_CBX_OUT_AC3, cfgGet(IDFF_outAC3bitrate)); static const int ac3s[] = {IDC_LBL_OUT_AC3, IDC_CBX_OUT_AC3, IDC_CHB_AOUT_AC3ENCODE_MODE, 0}; enable(isAC3, ac3s, FALSE); setCheck(IDC_CHB_AOUT_AC3ENCODE_MODE, (cfgGet(IDFF_aoutAC3EncodeMode) == 1)); } }
void TpresetsPage::cfg2dlg(void) { ListView_SetItemCountEx(hlv,parent->localPresets->size(),0); int ii=(int)SendMessage(GetDlgItem(parent->m_hwnd,IDC_CBX_PRESETS),CB_GETCURSEL,0,0); lvSetSelItem(IDC_LV_PRESETS,ii); enable(ii!=0 && wndEnabled,IDC_BT_PRESET_REMOVE); ListView_EnsureVisible(hlv,ii,FALSE); setCheck(IDC_CHB_AUTOPRESET,cfgGet(IDFF_autoPreset)); setCheck(IDC_CHB_AUTOPRESET_FILEFIRST,cfgGet(IDFF_autoPresetFileFirst)); autopreset2dlg(); }
void TquantPage::bias2dlg(void) { int is = sup_quantBias(codecId); setCheck(IDC_CHB_QUANT_INTER_BIAS, cfgGet(IDFF_enc_isInterQuantBias)); enable(is, IDC_CHB_QUANT_INTER_BIAS); SetDlgItemInt(m_hwnd, IDC_ED_QUANT_INTER_BIAS, cfgGet(IDFF_enc_interQuantBias), TRUE); enable(is && cfgGet(IDFF_enc_isInterQuantBias), IDC_ED_QUANT_INTER_BIAS); setCheck(IDC_CHB_QUANT_INTRA_BIAS, cfgGet(IDFF_enc_isIntraQuantBias)); enable(is, IDC_CHB_QUANT_INTRA_BIAS); SetDlgItemInt(m_hwnd, IDC_ED_QUANT_INTRA_BIAS, cfgGet(IDFF_enc_intraQuantBias), TRUE); enable(is && cfgGet(IDFF_enc_isIntraQuantBias), IDC_ED_QUANT_INTRA_BIAS); }
void TkeysPage::remote2dlg(void) { setCheck(IDC_CHB_REMOTE, cfgGet(IDFF_isRemote)); int messageMode = cfgGet(IDFF_remoteMessageMode); if (messageMode == 0) { setCheck(IDC_RBT_REMOTE_FFDSHOW, 1); } else if (messageMode == 1) { setCheck(IDC_RBT_REMOTE_USER, 1); } SetDlgItemInt(m_hwnd, IDC_ED_REMOTE_USER, cfgGet(IDFF_remoteMessageUser), FALSE); setCheck(IDC_CHB_REMOTE_ACCEPTKEYS, cfgGet(IDFF_remoteAcceptKeys)); }
void TffdshowPageDec::setFullHalf(void) { if (!page || !hasFull) { return; } int processFull = page->getProcessFull(); enable(processFull != -1, IDC_CHB_PROCESSFULL); setCheck(IDC_CHB_PROCESSFULL, processFull > 0); int processHalf = page->getProcessHalf(); enable(processHalf != -1, IDC_CHB_PROCESSHALF); setCheck(IDC_CHB_PROCESSHALF, processHalf > 0); }
void TpostProcPage::postProc2dlg(void) { SendDlgItemMessage(m_hwnd,IDC_TBR_PPQUAL,TBM_SETPOS,TRUE,cfgGet(IDFF_ppqual)); setCheck(IDC_CHB_AUTOQ , cfgGet(IDFF_autoq)); setCheck(IDC_RBT_PPPRESETS,!cfgGet(IDFF_ppIsCustom)); setCheck(IDC_RBT_PPCUSTOM , cfgGet(IDFF_ppIsCustom)); setCheck(IDC_CHB_LEVELFIX_LUM ,cfgGet(IDFF_levelFixLum)); setCheck(IDC_CHB_LEVELFIX_CHROM,cfgGet(IDFF_levelFixChrom)); SendDlgItemMessage(m_hwnd,IDC_TBR_DEBLOCKSTRENGTH,TBM_SETPOS,TRUE,cfgGet(IDFF_deblockStrength)); char pomS[256]; sprintf(pomS,"Processing strength: %i%%",100*cfgGet(IDFF_deblockStrength)/256);SendDlgItemMessage(m_hwnd,IDC_LBL_DEBLOCKSTRENGTH,WM_SETTEXT,0,LPARAM(pomS)); setPPchbs(); }
void ToutsfsPage::dlg2compatmode(void) { if (!warningShowed) { MessageBox(hwndParent, _l("Changing this parameter should only be done if your card (like asus xonar) support HD audio bitstream but doesn't work with FFDShow (auzentech xfi not supported)"), _l("Caution"), 0); } warningShowed = 1; // If in compatibility mode publish a PCM format to enable connection (the format will be dynamically changed after the connection) if (cbxGetCurItemData(IDC_CBX_OUT_PASSTHROUGH_DEVICEID) == 0) { setCheck(IDC_CHB_PASSTHROUGH_PCM_CONNECT, 0); } else { setCheck(IDC_CHB_PASSTHROUGH_PCM_CONNECT, 1); } }
void TgraphPage::cfg2dlg(void) { debug2dlg(); graph2dlg(); int working = cfgGet(IDFF_enc_working); if (working) { enable(sup_PSNR(codecId) && !working, IDC_CHB_STATS_PSNR); setCheck(IDC_CHB_STATS_PSNR, cfgGet(IDFF_enc_psnr)); } else { setCheck(IDC_CHB_STATS_PSNR, cfgGet(IDFF_enc_psnr)); enable(sup_PSNR(codecId) && !working, IDC_CHB_STATS_PSNR); } setCheck(IDC_CHB_ADDTOROT, cfgGet(IDFF_addToROT)); }