• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ wxCommandEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中wxCommandEvent的典型用法代码示例。如果您正苦于以下问题:C++ wxCommandEvent类的具体用法?C++ wxCommandEvent怎么用?C++ wxCommandEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了wxCommandEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: onUpdates

void CAnalogueRepeaterFrame::onUpdates(wxCommandEvent& event)
{
	m_updates = event.IsChecked();
}
开发者ID:BackupTheBerlios,项目名称:opendv-svn,代码行数:4,代码来源:AnalogueRepeaterFrame.cpp


示例2: OnStopIgnoreFileSaved

void ContinuousBuild::OnStopIgnoreFileSaved(wxCommandEvent& e)
{
	e.Skip();
	m_buildInProgress = false;
}
开发者ID:RVictor,项目名称:EmbeddedLite,代码行数:5,代码来源:continuousbuild.cpp


示例3: OnCommand

void TranslDlg::OnCommand(wxCommandEvent& event)
{//=============================================
	#define N_PH_LIST  N_PHONEME_LIST

	void *vp;
	int translate_text = 0;
	char buf[1000];
	char phon_out[N_PH_LIST*2];
	int clause_tone;
	int clause_count;
	int use_ipa = 0;
	FILE *f;
	int  fd_temp;
	char fname_temp[100];
	static int n_ph_list;
	static PHONEME_LIST ph_list[N_PH_LIST+1];

	if(translator==NULL)
	{
		wxLogError(_T("Voice not set"));
		return;
	}

	option_phonemes = 0;

	switch(event.GetId())
	{
	case T_RULES:
	case MENU_SPEAK_RULES:
#ifdef PLATFORM_POSIX
		strcpy(fname_temp,"/tmp/espeakXXXXXX");
		if((fd_temp = mkstemp(fname_temp)) >= 0)
		{
			close(fd_temp);

			if((f = fopen(fname_temp,"w+")) != NULL)
			{
				f_trans = f;   // write translation rule trace to a temp file
			}
		}
#else
		strcpy(fname_temp,tmpnam(NULL));
		if((f = fopen(fname_temp,"w+")) != NULL)
		{
			f_trans = f;   // write translation rule trace to a temp file
		}
#endif
		t_phonetic->SetDefaultStyle(style_phonetic);
		translate_text = 2;
		break;

	case T_TRANSLATE:
	case MENU_SPEAK_TRANSLATE:
		t_phonetic->SetDefaultStyle(style_phonetic);
		translate_text = 1;
		break;

	case T_TRANSLATE_IPA:
	case MENU_SPEAK_IPA:
		t_phonetic->SetDefaultStyle(style_phonetic_large);

		translate_text = 3;
		use_ipa = 1;
		break;

	case T_PROCESS:
	case MENU_SPEAK_TEXT:
        myframe->OnProsody(event);
		prosodycanvas->LayoutData(ph_list,n_ph_list);
        myframe->Refresh();
		option_phoneme_events = espeakINITIALIZE_PHONEME_EVENTS;
		option_log_frames = 1;
		MakeWave2(ph_list,n_ph_list);
		option_log_frames = 0;
		break;
	}

	if(translate_text)
	{
		option_phonemes = translate_text;

		option_multibyte = espeakCHARS_AUTO;
		SpeakNextClause(NULL,NULL,2);  // stop speaking file

		strncpy0(buf,t_source->GetValue().mb_str(wxConvUTF8),sizeof(buf));
		phon_out[0] = 0;
		n_ph_list = 0;
		clause_count = 0;

		vp = buf;
		InitText(0);
		while((vp != NULL) && (n_ph_list < N_PH_LIST))
		{
			vp = TranslateClause(translator,NULL,vp,&clause_tone,NULL);
			CalcPitches(translator,clause_tone);
			CalcLengths(translator);

			GetTranslatedPhonemeString(translator->phon_out, sizeof(translator->phon_out), use_ipa);
			if(clause_count++ > 0)
				strcat(phon_out," ||");
//.........这里部分代码省略.........
开发者ID:Shqip,项目名称:ar-espeak,代码行数:101,代码来源:transldlg.cpp


示例4: OnThemeChanged

void clThemedChoice::OnThemeChanged(wxCommandEvent& event)
{
    event.Skip();
    ApplyTheme();
}
开发者ID:eranif,项目名称:codelite,代码行数:5,代码来源:clThemedChoice.cpp


示例5: OnHttpThreadMessage

//
// void frmOdaGet::OnHttpThreadMessage(wxCommandEvent &event)
//
// Events sent back by HTTP thread
void frmOdaGet::OnHttpThreadMessage(wxCommandEvent &event)
{
    wxString String;

    switch (event.GetId())
    {
        case HTTP_BADURL:
        {
            String = wxString::Format(wxT("Invalid URL: %s\n"),
                                      event.GetString().c_str());

            m_LocationDisplay->AppendText(String);
        }
        break;

        case HTTP_CONNECTED:
        {
            String = wxString::Format(wxT("Connected to %s:%u\n"),
                                      event.GetString().c_str(),
                                      event.GetInt());

            m_LocationDisplay->AppendText(String);
        }
        break;

        case HTTP_DISCONNECTED:
        {
            String = wxString::Format(wxT("Failed to connect to %s:%u\n"),
                                      event.GetString().c_str(),
                                      event.GetInt());

            m_LocationDisplay->AppendText(String);
        }
        break;

        case HTTP_GOTFILEINFO:
        {
            String = wxString::Format(wxT("File size is %llu\n"),
                                      (size_t)event.GetInt());

            m_DownloadGauge->SetRange((size_t)event.GetInt());

            m_LocationDisplay->AppendText(String);
        }
        break;

        case HTTP_DOWNLOADING:
        {
            String = wxString::Format(wxT("Now downloading file to %s\n"),
                                      event.GetString().c_str());

            m_LocationDisplay->AppendText(String);
        }
        break;

        case HTTP_DOWNLOADERROR:
        {
            String = wxString::Format(wxT("Download of file %s failed\n"),
                                        event.GetString().c_str());

            m_LocationDisplay->AppendText(String);
        }
        break;

        case HTTP_DOWNLOADTERMINATED:
        {
            String = wxT("User stopped download\n");

            m_LocationDisplay->AppendText(String);
        }
        break;

        case SIZE_UPDATE:
        {
            int i = m_DownloadGauge->GetValue();
            
            m_DownloadGauge->SetValue((size_t)event.GetInt() + i);
        }
        break;

        case HTTP_DOWNLOADCOMPLETE:
        {
            String = wxT("Download complete\n");

            m_LocationDisplay->AppendText(String);
        }
        break;

        default:
            break;
    }
}
开发者ID:JohnnyonFlame,项目名称:odamex,代码行数:96,代码来源:frm_odaget.cpp


示例6: OnInitDone

void LLDBPlugin::OnInitDone(wxCommandEvent& event)
{
    event.Skip();
}
开发者ID:blitz-research,项目名称:codelite,代码行数:4,代码来源:LLDBPlugin.cpp


示例7: OnCoherenceCheck

void XFunctionsDialog::OnCoherenceCheck( wxCommandEvent& event )
{
    m_pXf->SetCoherenceWeighting(event.IsChecked());
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:4,代码来源:gui.cpp


示例8: OnSaveMultispectrumCheck

void XFunctionsDialog::OnSaveMultispectrumCheck( wxCommandEvent& event )
{
    m_pXf->SetSaveMultispectrum(event.IsChecked());
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:4,代码来源:gui.cpp


示例9: OnShiftToHalfWindowCheck

void XFunctionsDialog::OnShiftToHalfWindowCheck( wxCommandEvent& event )
{
    m_pXf->SetShiftToHalfWindow(event.IsChecked());
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:4,代码来源:gui.cpp


示例10: OnTimeReversalCheck

void XFunctionsDialog::OnTimeReversalCheck( wxCommandEvent& event )
{
    m_pXf->SetTimeReversal(event.IsChecked());
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:4,代码来源:gui.cpp


示例11: OnHilbertCheck

void XFunctionsDialog::OnHilbertCheck( wxCommandEvent& event )
{
    m_pXf->SetHilbertTransform(event.IsChecked());
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:4,代码来源:gui.cpp


示例12: OnNormalizeLeftChannelCheck

void XFunctionsDialog::OnNormalizeLeftChannelCheck( wxCommandEvent& event )
{
    m_pXf->SetNormalize(event.IsChecked());
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:4,代码来源:gui.cpp


示例13:

void GameCubeConfigPane::OnSP1Changed(wxCommandEvent& event)
{
	ChooseEXIDevice(event.GetString(), 2);
}
开发者ID:BananaMuffinFrenzy,项目名称:dolphin,代码行数:4,代码来源:GameCubeConfigPane.cpp


示例14: OnTagThreadProg

//------------------------------------------------------------------//
//--- an progress thread event was caught, figure out what to do ---//
//------------------------------------------------------------------//
void MusikTagFrame::OnTagThreadProg( wxCommandEvent& event )
{
	gProgress->SetValue( event.GetExtraLong() );
}
开发者ID:BackupTheBerlios,项目名称:musik-svn,代码行数:7,代码来源:MusikTagFrame.cpp


示例15: OnDiracPulseCheck

void XFunctionsDialog::OnDiracPulseCheck( wxCommandEvent& event )
{
    m_pXf->SetDiracPulse(event.IsChecked());
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:4,代码来源:gui.cpp


示例16: UpdateValue

void SettingChoice::UpdateValue(wxCommandEvent& ev)
{
  m_setting = ev.GetInt();
  ev.Skip();
}
开发者ID:Antidote,项目名称:dolphin,代码行数:5,代码来源:VideoConfigDiag.cpp


示例17: OnExportAllSpectrumsCheck

void XFunctionsShowDialog::OnExportAllSpectrumsCheck( wxCommandEvent& event )
{
	mExportData.SetExportAll(event.IsChecked());
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:4,代码来源:gui.cpp


示例18: OnWorkspaceLoaded

void LLDBPlugin::OnWorkspaceLoaded(wxCommandEvent& event)
{
    event.Skip();
}
开发者ID:blitz-research,项目名称:codelite,代码行数:4,代码来源:LLDBPlugin.cpp


示例19: OnFftSizeChoice

void XFunctionsDialog::OnFftSizeChoice( wxCommandEvent& event )
{
    wxString wxszValue = event.GetString();
    m_pXf->SetFFTLength(AFSampleCount(::StringToLong(wxszValue)));
    UpdateLag();
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:6,代码来源:gui.cpp


示例20: Command

void wxSlider::Command (wxCommandEvent & event)
{
    SetValue (event.GetInt());
    ProcessCommand (event);
}
开发者ID:Asmodean-,项目名称:Ishiiruka,代码行数:5,代码来源:slider.cpp



注:本文中的wxCommandEvent类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ wxConfigBase类代码示例发布时间:2022-05-31
下一篇:
C++ wxColourPickerEvent类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap