这篇教程C++ EnableApply函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中EnableApply函数的典型用法代码示例。如果您正苦于以下问题:C++ EnableApply函数的具体用法?C++ EnableApply怎么用?C++ EnableApply使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了EnableApply函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: WXUNUSEDvoid EffectChangePitch::OnText_PercentChange(wxCommandEvent & WXUNUSED(evt)){ if (m_bLoopDetect) return; if (!m_pTextCtrl_PercentChange->GetValidator()->TransferFromWindow()) { EnableApply(false); return; } Calc_SemitonesChange_fromPercentChange(); Calc_ToPitch(); // Call *after* m_dSemitonesChange is updated. Calc_ToFrequency(); Calc_ToOctave(); // Call after Calc_ToFrequency(). m_bLoopDetect = true; { Update_Choice_ToPitch(); Update_Spin_ToOctave(); Update_Text_SemitonesChange(); Update_Text_ToFrequency(); Update_Slider_PercentChange(); } m_bLoopDetect = false; // Success. Make sure OK and Preview are enabled, in case we disabled above during editing. EnableApply(true);}
开发者ID:Avi2011class,项目名称:audacity,代码行数:29,
示例2: ncvoid EffectRepeat::DisplayNewTime(){ long l; wxString str; mRepeatCount->GetValue().ToLong(&l); NumericConverter nc(NumericConverter::TIME, GetSelectionFormat(), mT1 - mT0, mProjectRate); str = _("Current selection length: ") + nc.GetString(); mCurrentTime->SetLabel(str); mCurrentTime->SetName(str); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs) if (l > 0) { EnableApply(true); repeatCount = l; nc.SetValue((mT1 - mT0) * (repeatCount + 1)); str = _("New selection length: ") + nc.GetString(); } else { str = _("Warning: No repeats."); EnableApply(false); } mTotalTime->SetLabel(str); mTotalTime->SetName(str); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)}
开发者ID:AthiVarathan,项目名称:audacity,代码行数:30,
示例3: EnableApplyvoid EffectPhaser::OnFreqSlider(wxCommandEvent & evt){ mFreq = (double) evt.GetInt() / SCL_Freq; if (mFreq < MIN_Freq) mFreq = MIN_Freq; mFreqT->GetValidator()->TransferToWindow(); EnableApply(mUIParent->Validate());}
开发者ID:henricj,项目名称:audacity,代码行数:7,
示例4: WXUNUSEDvoid EffectToneGen::OnControlUpdate(wxCommandEvent & WXUNUSED(evt)){ if (!EnableApply(mUIParent->TransferDataFromWindow())) { return; }}
开发者ID:MartynShaw,项目名称:audacity,代码行数:7,
示例5: EnableApplyvoid EffectPhaser::OnStagesSlider(wxCommandEvent & evt){ mStages = (evt.GetInt() / SCL_Stages) & ~1; // must be even; mPhaseS->SetValue(mStages * SCL_Stages); mStagesT->GetValidator()->TransferToWindow(); EnableApply(mUIParent->Validate());}
开发者ID:Azpidatziak,项目名称:audacity,代码行数:7,
示例6: EnableApplyvoid EffectBassTreble::OnGainSlider(wxCommandEvent & evt){ mGain = (double) evt.GetInt() / SCL_Gain; mGainT->GetValidator()->TransferToWindow(); EnableApply(mUIParent->Validate());}
开发者ID:MindFy,项目名称:audacity,代码行数:7,
示例7: WXUNUSEDvoid EffectWahwah::OnGainText(wxCommandEvent & WXUNUSED(evt)){ if (!EnableApply(mUIParent->TransferDataFromWindow())) { return; } mOutGainS->SetValue((int) (mOutGain * SCL_OutGain));}
开发者ID:SteveDaulton,项目名称:audacity,代码行数:9,
示例8: WXUNUSEDvoid EffectScienFilter::OnStopbandRipple(wxCommandEvent & WXUNUSED(evt)){ if (!EnableApply(mUIParent->TransferDataFromWindow())) { return; } mPanel->Refresh(false);}
开发者ID:MartynShaw,项目名称:audacity,代码行数:9,
示例9: EnableApplyvoid EffectWahwah::OnPhaseSlider(wxCommandEvent & evt){ int val = ((evt.GetInt() + 5) / 10) * 10; // round to nearest multiple of 10 val = val > MAX_Phase * SCL_Phase ? MAX_Phase * SCL_Phase : val; mPhaseS->SetValue(val); mPhase = (double) val / SCL_Phase; mPhaseT->GetValidator()->TransferToWindow(); EnableApply(mUIParent->Validate());}
开发者ID:SteveDaulton,项目名称:audacity,代码行数:9,
示例10: WXUNUSEDvoid EffectPhaser::OnDryWetText(wxCommandEvent & WXUNUSED(evt)){ if (!EnableApply(mUIParent->TransferDataFromWindow())) { return; } mDryWetS->SetValue((int) (mDryWet * SCL_DryWet));}
开发者ID:henricj,项目名称:audacity,代码行数:9,
示例11: EnableApplyvoid CUCPDetail::OnUcpdAccessLogOnoff(){ m_ucinfo->m_access_log = !m_ucinfo->m_access_log; if (m_ucinfo->m_access_log) { m_ucpd_access_log.SetWindowText("Access LOG ON"); } else { m_ucpd_access_log.SetWindowText("Access LOG OFF"); } EnableApply();}
开发者ID:CUBRID,项目名称:cubrid,代码行数:11,
示例12: WXUNUSEDvoid EffectTruncSilence::OnControlChange(wxCommandEvent & WXUNUSED(evt)){ mActionChoice->GetValidator()->TransferFromWindow(); UpdateUI(); if (!EnableApply(mUIParent->TransferDataFromWindow())) { return; }}
开发者ID:jengelh,项目名称:audacity,代码行数:11,
示例13: WXUNUSEDvoid EffectBassTreble::OnBassText(wxCommandEvent & WXUNUSED(evt)){ double oldBass = mBass; if (!EnableApply(mUIParent->TransferDataFromWindow())) { return; } if (mLink) UpdateGain(oldBass, kBass); mBassS->SetValue((int) (mBass * SCL_Bass));}
开发者ID:MindFy,项目名称:audacity,代码行数:12,
注:本文中的EnableApply函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ EnableControl函数代码示例 C++ Enable3dControlsStatic函数代码示例 |