本文整理汇总了C++中setCheck函数的典型用法代码示例。如果您正苦于以下问题:C++ setCheck函数的具体用法?C++ setCheck怎么用?C++ setCheck使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setCheck函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: setCheck
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);
}
开发者ID:JERUKA9,项目名称:ffdshow-tryouts,代码行数:7,代码来源:Cprocsfs.cpp
示例2: cfgGet
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();
}
开发者ID:TheRyuu,项目名称:ffdshow,代码行数:30,代码来源:CresizeBorders.cpp
示例3: tr
// 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);
}
开发者ID:Shmuma,项目名称:yandex-traffic-widget,代码行数:26,代码来源:settings.cpp
示例4: setCheck
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);
}
开发者ID:JERUKA9,项目名称:ffdshow-tryouts,代码行数:7,代码来源:CdeinterlaceYadif.cpp
示例5: translate
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);
}
开发者ID:TheRyuu,项目名称:ffdshow,代码行数:32,代码来源:TpresetAutoload.cpp
示例6: setCheck
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);
}
开发者ID:JERUKA9,项目名称:ffdshow-tryouts,代码行数:7,代码来源:Cin.cpp
示例7: setCheck
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);
}
开发者ID:TheRyuu,项目名称:ffdshow,代码行数:8,代码来源:Ckeys.cpp
示例8: cfgGet
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);
}
}
开发者ID:xinjiguaike,项目名称:ffdshow,代码行数:8,代码来源:Cvolume.cpp
示例9: setCheck
void TvolumePage::cfg2dlg(void)
{
setCheck(IDC_CHB_VOL_DB, isdb);
setCheck(IDC_CHB_VOLUME_SHOWCURRENT, cfgGet(IDFF_showCurrentVolume));
master2dlg();
speakers2dlg();
normalize2dlg();
}
开发者ID:xinjiguaike,项目名称:ffdshow,代码行数:8,代码来源:Cvolume.cpp
示例10: setCheck
void Order2IWidget::checkText(const QString &text)
{
if (text.length() == 0) {
emit setCheck(false);
return;
}
emit setCheck(true);
}
开发者ID:shul20,项目名称:proprint,代码行数:8,代码来源:order2iwidget.cpp
示例11: setCheck
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));
}
开发者ID:TheRyuu,项目名称:ffdshow,代码行数:9,代码来源:Cgraph.cpp
示例12: setCheck
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)));
}
开发者ID:BackupTheBerlios,项目名称:ffdshow-svn,代码行数:9,代码来源:CfiltersPage.cpp
示例13: setCheck
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);
}
开发者ID:JERUKA9,项目名称:ffdshow-tryouts,代码行数:9,代码来源:Cout.cpp
示例14: cfgGet
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();
}
开发者ID:TheRyuu,项目名称:ffdshow,代码行数:9,代码来源:Cdct.cpp
示例15: SendDlgItemMessage
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();
}
开发者ID:BackupTheBerlios,项目名称:ffdshow-svn,代码行数:10,代码来源:CpostProc.cpp
示例16: repaint
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));
}
开发者ID:JERUKA9,项目名称:ffdshow-tryouts,代码行数:10,代码来源:Clevels.cpp
示例17: setCheck
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));
}
}
开发者ID:TheRyuu,项目名称:ffdshow,代码行数:11,代码来源:Coutsfs.cpp
示例18: ListView_SetItemCountEx
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();
}
开发者ID:JERUKA9,项目名称:ffdshow-tryouts,代码行数:11,代码来源:Cpresets.cpp
示例19: sup_quantBias
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);
}
开发者ID:TheRyuu,项目名称:ffdshow,代码行数:12,代码来源:Cquant.cpp
示例20: SendDlgItemMessage
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();
}
开发者ID:BackupTheBerlios,项目名称:ffdshow-svn,代码行数:13,代码来源:CpostProc.cpp
注:本文中的setCheck函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论