本文整理汇总了C++中setCheck函数的典型用法代码示例。如果您正苦于以下问题:C++ setCheck函数的具体用法?C++ setCheck怎么用?C++ setCheck使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setCheck函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
}
示例9: setCheck
void TvolumePage::cfg2dlg(void)
{
setCheck(IDC_CHB_VOL_DB, isdb);
setCheck(IDC_CHB_VOLUME_SHOWCURRENT, cfgGet(IDFF_showCurrentVolume));
master2dlg();
speakers2dlg();
normalize2dlg();
}
示例10: setCheck
void Order2IWidget::checkText(const QString &text)
{
if (text.length() == 0) {
emit setCheck(false);
return;
}
emit setCheck(true);
}
示例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));
}
示例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)));
}
示例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);
}
示例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();
}
示例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();
}