static void Apply( DImage& image, const Convolution& convolution ) { DoApply( image, convolution ); if ( convolution.IsHighPassFilter() ) HighPassRescaleFloatImage( image, convolution ); }
EyeConfig::EyeConfig (eyes *parent) :pEyes(parent) { setupUi(this); connect (cancelBut,SIGNAL(clicked()),this,SLOT(DoCancel())); connect (okBut,SIGNAL(clicked()),this,SLOT(DoOk())); connect (applyBut, SIGNAL(clicked()),this,SLOT(DoApply())); connect (quitBut, SIGNAL(clicked()),this,SLOT(quit())); connect (versionButton, SIGNAL(clicked()), this,SLOT(DoShowVersion())); connect (authorButton, SIGNAL(clicked()), this,SLOT(DoLinkAuthor())); connect (eyesCheck, SIGNAL(stateChanged(int)), this,SLOT(DoCheckEyes(int))); connect (arrowCheck, SIGNAL(stateChanged(int)), this,SLOT(DoCheckArrow(int))); connect (bubbleCheck, SIGNAL(stateChanged(int)), this,SLOT(DoCheckBubble(int))); connect (frameCheck, SIGNAL(stateChanged(int)), this,SLOT(DoCheckFrame(int))); }
BOOL CHHMRConfig2::OnWizardFinish() { //This is only called in the temporary ISO // ASSERT(m_bCollectingParametersForNewISO); ((CHHMRModParam*)m_pPS->GetPage(0))->DoApply(); DoApply(); return CPropertyPage::OnWizardFinish(); }
void CMCAModParam::OnModparamsApply() { if(m_pPS) m_pPS->SetToClose(0); DoApply(); m_bChange = false; m_pApplyButton->EnableWindow(FALSE); }
void Apply( ImageActor actor, const std::string& maskImage ) { Vector2 maskSize = Image::GetImageSize( maskImage ); const float leftRight = (maskSize.width - 1.0f) * 0.5f; const float topBottom = (maskSize.height - 1.0f) * 0.5f; DoApply( actor, maskImage, maskSize, Vector4( leftRight, topBottom, leftRight, topBottom ) ); }
void CHHMRConfig2::OnHHMRConfig2Apply() { if(m_pPS)m_pPS->SetToClose(0); if (m_pParent->Validate()) { ((CHHMRModParam*)m_pPS->GetPage(0))->DoApply(); DoApply(); } }
void CEventModParam::OnModparamsApply() { //for all the comm device must exist if (m_pPS) m_pPS->SetToClose(0); //disable first so user can't click on it multiple times m_pApplyButton->EnableWindow(FALSE); DoApply(); m_bChange = false; }
BOOL CEventModParam::OnWizardFinish() { // ASSERT(m_bCollectingParametersForNewISO); //Put the name of the instrument in the ini file WritePrivateProfileString( INSTRUMENTS,m_pParent->m_pName,EVENT_DISCOVERY_TYPE,m_pParent->m_szIniFile); //Put the parameters for the instrument into the INI file DoApply(); //This does the validate return CPropertyPage::OnWizardFinish(); }
BOOL CMCAModParam::OnWizardFinish() { // ASSERT(m_bCollectingParametersForNewISO); //Put the name of the instrument in the ini file WritePrivateProfileString( INSTRUMENTS,m_pParent->m_pName,MCA_DISCOVERY_TYPE,m_pParent->m_szIniFile); DoApply(); ((CMCAConfig2*)m_pPS->GetPage(1))->DoApply(); return CPropertyPage::OnWizardFinish(); }
template <class P> static void Apply( GenericImage<P>& image, const Convolution& convolution ) { if ( convolution.IsHighPassFilter() ) { if ( P::BitsPerSample() < 32 ) HighPassIntegerImage( image, convolution, reinterpret_cast<Image*>( 0 ) ); else HighPassIntegerImage( image, convolution, reinterpret_cast<DImage*>( 0 ) ); } else DoApply( image, convolution ); }
void CJSRModParam::OnModparamsApply() { if (m_pPS)m_pPS->SetToClose(0); if (m_pParent->Validate()) { DoApply(); //tell the graphic window to update params char szTemp[_MAX_PATH]; strcpy(szTemp,m_pParent->m_pName); strcat(szTemp," Watcher"); CWnd * pcWnd = FindWindow(NULL,szTemp); if (pcWnd) pcWnd->PostMessage(UPDATE_MESSAGE,1,0); m_bChange = false; m_pApplyButton->EnableWindow(FALSE); } }
void CHHMRConfig2::OnHHMRCameraApply() { if (m_pPS)m_pPS->SetToClose(0); //if we are not doing initial configuration continue if (!m_bCollectingParametersForNewISO) { //do security if (m_pParent->Validate()) { if (m_pCameraApplyButton) m_pCameraApplyButton->EnableWindow(false); //GetDlgItem(IDC_HHMRCONFIG_CAMERAAPPLY)->EnableWindow(false); //save stuff to ini file DoApply(); //save stuff to MIC itself m_pPS->SetCamera(); //update parallel port stuff } } }
void EyeConfig::DoOk () { DoApply(); CloseWin(); }
void Apply( ImageActor actor, const std::string& maskImage, const Vector4& maskBorder ) { Vector2 maskSize = Image::GetImageSize( maskImage ); DoApply( actor, maskImage, maskSize, maskBorder ); }
void SettingsDialog::OnApply(wxCommandEvent& event) { DoApply(); }
void SettingsDialog::OnOK(wxCommandEvent& event) { if (DoApply()) event.Skip(); }