当前位置: 首页>>代码示例>>C++>>正文


C++ wxCommandEvent::GetSelection方法代码示例

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


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

示例1: OnSecondPlotChoice

void XFunctionsShowDialog::OnSecondPlotChoice( wxCommandEvent& event )
{
    wxString wxszLabel = mSecondPlotChoice->GetString(event.GetSelection());
//    mLowerPlot->SetPlotTypeByString(wxszLabel);
    UpdatePlotData(mLowerPlot, wxszLabel);

    mLowerPlot->Refresh();
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:8,代码来源:gui.cpp

示例2: OnFrequencyRangeChoice

void XFunctionsShowDialog::OnFrequencyRangeChoice( wxCommandEvent& event )
{
   int nChoice = event.GetSelection();
   SetFrequencyRange(mUpperPlot, nChoice, !mLinearScaleCheck->IsChecked());
   SetFrequencyRange(mLowerPlot, nChoice, !mLinearScaleCheck->IsChecked());
   mUpperPlot->Refresh();
   mLowerPlot->Refresh();
}
开发者ID:TheHamSlam,项目名称:aurora-for-audacity,代码行数:8,代码来源:gui.cpp

示例3: OnCheck

	void OnCheck(wxCommandEvent& event)
	{
		if (!event.GetSelection() && !event.IsChecked())
		{
			wxCheckListBox* pListBox = XRCCTRL(*this, "ID_ACTIVE", wxCheckListBox);
			pListBox->Check(0);
			wxMessageBoxEx(_("The filename column can neither be hidden nor moved."), _("Column properties"));
		}
	}
开发者ID:juaristi,项目名称:filezilla,代码行数:9,代码来源:listctrlex.cpp

示例4: physicsProblemComboBox

void OmniFEMMainFrame::physicsProblemComboBox(wxCommandEvent &event)
{
	int physicsSelection = event.GetSelection();
	
	if(physicsSelection == 0)
		controller.setAbstractProblemPhysics(physicProblems::electrostatics);
	else if(physicsSelection == 1)
		controller.setAbstractProblemPhysics(physicProblems::magnetics);
}
开发者ID:OmniFEM,项目名称:Omni-FEM,代码行数:9,代码来源:mainOmniFEMUI.cpp

示例5: OnInfoListBoxDoubleClick

void CameraTrackSettingDialog::OnInfoListBoxDoubleClick( wxCommandEvent &event )
{
    Ogre::String selectStr( mCameraInfoListBox->GetString( event.GetSelection() ).c_str() );

    Ogre::StringVector infos = Ogre::StringUtil::split(selectStr, ",");

    if (infos.size() == 3)
    {
        mPointIndexTextCtrl->SetValue( Ogre::StringConverter::toString(event.GetSelection() + 1).c_str() );
        mPositionTextCtrl->SetValue( infos[0].c_str() );
        mOrientationTextCtrl->SetValue( infos[1].c_str() );
        mTimeTextCtrl->SetValue( infos[2].c_str() );

        // 定位摄像机
        mCamera->setPosition( Ogre::StringConverter::parseVector3(infos[0]) );
        mCamera->setOrientation( Ogre::StringConverter::parseQuaternion(infos[1]) );
    }
}
开发者ID:jjiezheng,项目名称:pap_full,代码行数:18,代码来源:CameraTrackSettingDialog.cpp

示例6:

void
AnimationFrame::OnCmd_anim_collisions(wxCommandEvent& event)
{
	if (mAnimationView)
	{
		mAnimationView->SetCollisionType(static_cast<CollisionWarning>(event.GetSelection()));
	}
	Refresh();
}
开发者ID:superoven,项目名称:calchart,代码行数:9,代码来源:animation_frame.cpp

示例7: OnDrawMode

void VtxSceneTabs::OnDrawMode(wxCommandEvent& event){
	int mode=event.GetSelection();
	if(mode==0)
		Render.show_points();
	else if(mode==1)
		Render.show_lines();
	else
		Render.show_shaded();
	TheScene->set_changed_render();
}
开发者ID:dwsindorf,项目名称:VTX,代码行数:10,代码来源:VtxSceneTabs.cpp

示例8: OnModChoiceSelected

        void MapPropertiesDialog::OnModChoiceSelected(wxCommandEvent& event) {
            int index = event.GetSelection();
            if (index < 0 || index >= static_cast<int>(m_modChoice->GetCount()))
                return;

            const String mod = m_modChoice->GetString(static_cast<unsigned int>(index)).ToStdString();
            Controller::EntityPropertyCommand* command = Controller::EntityPropertyCommand::setEntityPropertyValue(*m_document, m_document->worldspawn(), Model::Entity::ModKey, mod, true);
            m_document->GetCommandProcessor()->Submit(command);
            init();
        }
开发者ID:WakaLakaLake,项目名称:TrenchBroom,代码行数:10,代码来源:MapPropertiesDialog.cpp

示例9: m_combo_line_colourOnSelect

void SeriesTool::m_combo_line_colourOnSelect(wxCommandEvent & event)
{
    DPRINTF("SeriesTool::m_combo_line_colourOnSelect\n");
    if (m_series == nullptr)
        return;

    m_series->GetRenderer()->GetLine()->SetColourIndex(event.GetSelection());
    m_series->Validate();

}
开发者ID:ainur-giniyatov,项目名称:wxPlot,代码行数:10,代码来源:SeriesTool.cpp

示例10: OnComboEol

void SettingsDlg::OnComboEol(wxCommandEvent& event) {
	wxString eolStr;
	switch(event.GetSelection()) {
		case 0: eolStr = wxT("crlf"); break;
		case 1: eolStr = wxT("lf"); break;
		case 2: eolStr = wxT("cr"); break;
	}

	m_settings.SetSettingString(wxT("formatEol"), eolStr);
}
开发者ID:MattStopa,项目名称:e,代码行数:10,代码来源:SettingsDlg.cpp

示例11: OnComboEncoding

void SettingsDlg::OnComboEncoding(wxCommandEvent& event) {
	const wxFontEncoding enc = wxFontMapper::GetEncoding(event.GetSelection());
	const wxString encStr = wxFontMapper::GetEncodingName(enc);

	if (enc == wxFONTENCODING_DEFAULT) m_settings.RemoveSetting(wxT("formatEncoding"));
	else m_settings.SetSettingString(wxT("formatEncoding"), encStr);


	// Check if bom ctrl should be enabled
	m_defBom->Enable(encoding_allows_bom(enc));
}
开发者ID:MattStopa,项目名称:e,代码行数:11,代码来源:SettingsDlg.cpp

示例12: OnCertificateChoice

void CVerifyCertDialog::OnCertificateChoice(wxCommandEvent& event)
{
	int sel = event.GetSelection();
	if (sel < 0 || sel > (int)m_certificates.size())
		return;
	DisplayCert(m_pDlg, m_certificates[sel]);

	m_pDlg->Layout();
	m_pDlg->GetSizer()->Fit(m_pDlg);
	m_pDlg->Refresh();
}
开发者ID:Typz,项目名称:FileZilla,代码行数:11,代码来源:verifycertdialog.cpp

示例13: OnChoiceMessage

void SvnCommitDialog::OnChoiceMessage(wxCommandEvent& e)
{
    int idx = e.GetSelection();
    if(idx == wxNOT_FOUND)
        return;

    CommitMessageStringData* data = (CommitMessageStringData*)m_choiceMessages->GetClientObject(idx);
    if(data) {
        m_stcMessage->SetText( data->GetData() );
    }
}
开发者ID:AndrianDTR,项目名称:codelite,代码行数:11,代码来源:SvnCommitDialog.cpp

示例14: OnScope

void NavBar::OnScope(wxCommandEvent& e)
{
    size_t sel = e.GetSelection();
    if(sel < m_scope->GetCount()) {
        m_tags.clear();
        m_func->Clear();
    }

    wxString scope = m_scope->GetString(sel);
    DoPopulateFunctions(DoGetCurFileName(), scope);
}
开发者ID:05storm26,项目名称:codelite,代码行数:11,代码来源:navbar.cpp

示例15: OnSongReturn

void FrontEnd::OnSongReturn(wxCommandEvent& event)
{
    wxPanel *panel_singer = create_page_singer_gender(m_bookCtrl);

    const int idx = event.GetSelection();
    if(m_bookCtrl->GetPageText(idx) == "Singers")
    {
        m_bookCtrl->DeletePage(idx);
        m_bookCtrl->InsertPage(idx, panel_singer, "Singers", true);
    }
}
开发者ID:ranjiao,项目名称:raysdemo,代码行数:11,代码来源:FrontEnd.cpp


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