您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ wxKeyEventHandler函数代码示例

51自学网 2021-06-03 10:10:30
  C++
这篇教程C++ wxKeyEventHandler函数代码示例写得很实用,希望能帮到您。

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

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

示例1: wxKeyEventHandler

void MainSequencer::SetHandlers(wxWindow *window){    if (window) {        window->Connect(wxID_ANY,                        wxEVT_CHAR,                        wxKeyEventHandler(MainSequencer::OnChar),                        (wxObject*) NULL,                        this);        window->Connect(wxID_ANY,                        wxEVT_CHAR_HOOK,                        wxKeyEventHandler(MainSequencer::OnCharHook),                        (wxObject*) NULL,                        this);        window->Connect(wxID_ANY,                        wxEVT_KEY_DOWN,                        wxKeyEventHandler(MainSequencer::OnKeyDown),                        (wxObject*) NULL,                        this);        wxWindowList &list = window->GetChildren();        for (wxWindowList::iterator it = list.begin(); it != list.end(); ++it) {            wxWindow* pclChild = *it;            SetHandlers(pclChild);        }    }}
开发者ID:ebrady1,项目名称:xLights,代码行数:26,


示例2: wxKeyEventHandler

KeyConfigPrefs::~KeyConfigPrefs(){   if (mKey)   {      mKey->Disconnect(wxEVT_KEY_DOWN,            wxKeyEventHandler(KeyConfigPrefs::OnHotkeyKeyDown),            NULL,            this);      mKey->Disconnect(wxEVT_CHAR,            wxKeyEventHandler(KeyConfigPrefs::OnHotkeyChar),            NULL,            this);      mKey->Disconnect(wxEVT_KILL_FOCUS,            wxFocusEventHandler(KeyConfigPrefs::OnHotkeyKillFocus),            NULL,            this);   }   if (mFilter)   {      mKey->Disconnect(wxEVT_KEY_DOWN,            wxKeyEventHandler(KeyConfigPrefs::OnFilterKeyDown),            NULL,            this);      mKey->Disconnect(wxEVT_CHAR,            wxKeyEventHandler(KeyConfigPrefs::OnFilterChar),            NULL,            this);   }}
开发者ID:AthiVarathan,项目名称:audacity,代码行数:30,


示例3: wxKeyEventHandler

ContrastDialog::~ContrastDialog(){   mForegroundRMSText->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(ContrastDialog::OnChar));   mBackgroundRMSText->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(ContrastDialog::OnChar));   mPassFailText->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(ContrastDialog::OnChar));   mDiffText->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(ContrastDialog::OnChar));}
开发者ID:disinteger1,项目名称:audacity,代码行数:7,


示例4: wxKeyEventHandler

KeyConfigPrefs::~KeyConfigPrefs(){   mKey->Disconnect(wxEVT_KEY_DOWN,                    wxKeyEventHandler(KeyConfigPrefs::OnCaptureKeyDown));   mKey->Disconnect(wxEVT_CHAR,                    wxKeyEventHandler(KeyConfigPrefs::OnCaptureChar));}
开发者ID:tuanmasterit,项目名称:audacity,代码行数:7,


示例5: wxCloseEventHandler

FindItDialog::~FindItDialog(){    // Disconnect Events    this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( FindItDialog::OnCloseDialog ) );    this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( FindItDialog::OnInit ) );    m_buttonaddLineMaterial->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickMaterialAdd ), NULL, this );    m_textCtrl1->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( FindItDialog::OnTextMaterial ), NULL, this );    m_buttonBuyItMaterial->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickBuyMaterial ), NULL, this );    m_gridMaterial->Disconnect( wxEVT_CHAR, wxKeyEventHandler( FindItDialog::OnCharMaterial ), NULL, this );    m_gridMaterial->Disconnect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( FindItDialog::OnGridCellChangeMaterial ), NULL, this );    m_gridMaterial->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridCellLeftClickMaterial ), NULL, this );    m_gridMaterial->Disconnect( wxEVT_GRID_LABEL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridLabelLClickMaterial ), NULL, this );	m_gridMaterial->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( FindItDialog::OnGridSelectCellMaterial ), NULL, this );    m_buttonaddLineFood->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickAddLineFood ), NULL, this );    m_textCtrl11->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( FindItDialog::OnTextFood ), NULL, this );    m_buttonBuyItFood->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickBuyFood ), NULL, this );    m_gridFood->Disconnect( wxEVT_CHAR, wxKeyEventHandler( FindItDialog::OnCharFood ), NULL, this );    m_gridFood->Disconnect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( FindItDialog::OnGridCellChangeFood ), NULL, this );    m_gridFood->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridCellLeftClickFood ), NULL, this );    m_gridFood->Disconnect( wxEVT_GRID_LABEL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridLabelLClickFood ), NULL, this );	m_gridFood->Disconnect( wxEVT_GRID_SELECT_CELL, wxGridEventHandler( FindItDialog::OnGridSelectCellFood ), NULL, this );    m_buttonaddLineLocations->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::onButtonClickAddLineLocations ), NULL, this );    m_gridLocations->Disconnect( wxEVT_CHAR, wxKeyEventHandler( FindItDialog::OnCharLocations ), NULL, this );    m_gridLocations->Disconnect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( FindItDialog::OnGridCellChangeLocations ), NULL, this );    m_gridLocations->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridCellLeftClickLocations ), NULL, this );    m_gridLocations->Disconnect( wxEVT_GRID_EDITOR_SHOWN, wxGridEventHandler( FindItDialog::onEditorShownLocations ), NULL, this );    m_buttonaddLineUnits->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnButtonClickUnitsAddLine ), NULL, this );    m_gridUnits->Disconnect( wxEVT_CHAR, wxKeyEventHandler( FindItDialog::OnCharUnits ), NULL, this );    m_gridUnits->Disconnect( wxEVT_GRID_CELL_CHANGE, wxGridEventHandler( FindItDialog::OnGridCellChangeUnits ), NULL, this );    m_gridUnits->Disconnect( wxEVT_GRID_CELL_LEFT_CLICK, wxGridEventHandler( FindItDialog::OnGridCellLeftClickUnits ), NULL, this );    m_gridUnits->Disconnect( wxEVT_GRID_EDITOR_SHOWN, wxGridEventHandler( FindItDialog::onEditorShownUnits ), NULL, this );    m_sdbSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnCancelClick ), NULL, this );    m_sdbSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( FindItDialog::OnOKClick ), NULL, this );}
开发者ID:nohal,项目名称:findit_pi,代码行数:35,


示例6: SetFrame

bool MorphanView::OnCreate(wxDocument* doc, long flags){    if (!wxView::OnCreate(doc, flags))        return false;    // reuse the existing window and canvas    MorphanApp* app = dynamic_cast<MorphanApp*>(wxTheApp);    panel = app->GetFrame()->GetPanel();    SetFrame(app->GetFrame());    tool = app->GetFrame()->GetTool();    modifyTool = app->GetFrame()->GetModifyTool();    // Initialize the edit menu Undo and Redo items    //doc->GetCommandProcessor()->SetEditMenu(app.GetMainWindowEditMenu());    //doc->GetCommandProcessor()->Initialize();    panel->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MorphanView::OnClick), NULL, this);	panel->Connect(wxEVT_MOTION, wxMouseEventHandler(MorphanView::OnMotion), NULL, this);	panel->Connect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(MorphanView::OnCancel), NULL, this);	panel->Connect(wxEVT_ENTER_WINDOW, wxMouseEventHandler(MorphanView::OnEnter), NULL, this);	panel->Connect(wxEVT_LEAVE_WINDOW, wxMouseEventHandler(MorphanView::OnLeave), NULL, this);	panel->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(MorphanView::OnKey), NULL, this);	panel->Connect(wxEVT_KEY_UP, wxKeyEventHandler(MorphanView::OnKey), NULL, this);	panel->SetView(this);	wxSize size = panel->GetClientSize();	width = size.GetWidth();	height = size.GetHeight();    return true;}
开发者ID:TricksterGuy,项目名称:Morphan,代码行数:31,


示例7: wxKeyEventHandler

NotebookNavigationDlgBase::~NotebookNavigationDlgBase(){    this->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(NotebookNavigationDlgBase::OnKeyDown), NULL, this);    this->Disconnect(wxEVT_KEY_UP, wxKeyEventHandler(NotebookNavigationDlgBase::OnKeyUp), NULL, this);    m_dvListCtrl->Disconnect(wxEVT_KEY_UP, wxKeyEventHandler(NotebookNavigationDlgBase::OnKeyUp), NULL, this);    m_dvListCtrl->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(NotebookNavigationDlgBase::OnKeyDown), NULL, this);    m_dvListCtrl->Disconnect(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler(NotebookNavigationDlgBase::OnItemActivated), NULL, this);    }
开发者ID:292388900,项目名称:codelite,代码行数:9,


示例8: wxTextCtrl

/// Normally in classes derived from PrefsPanel this function /// is used both to populate the panel and to exchange data with it./// With KeyConfigPrefs all the exchanges are handled specially,/// so this is only used in populating the panel.void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S){   S.SetBorder(2);   S.StartStatic(_("Key Bindings"), 1);   {      S.StartHorizontalLay(wxALIGN_CENTRE, false);      {         S.Id(CategoryID);         mCat = S.AddChoice(_("C&ategory:"),                            mCats[0],                            &mCats);      }      S.EndHorizontalLay();                                          mList = S.Id(CommandsListID).AddListControlReportMode();      mList->SetName(_("Key Bindings"));      S.StartThreeColumn();      {         if (!mKey) {            mKey = new wxTextCtrl(this,                                  CurrentComboID,                                  wxT(""),                                  wxDefaultPosition,#if defined(__WXMAC__)                                                                    wxSize(300, -1));#else                                  wxSize(210, -1));#endif            mKey->Connect(wxEVT_KEY_DOWN,                          wxKeyEventHandler(KeyConfigPrefs::OnCaptureKeyDown));            mKey->Connect(wxEVT_CHAR,                          wxKeyEventHandler(KeyConfigPrefs::OnCaptureChar));         }         S.AddWindow(mKey);         /* i18n-hint: (verb)*/         S.Id(SetButtonID).AddButton(_("Set"));         S.Id(ClearButtonID).AddButton(_("Cl&ear"));      }      S.EndThreeColumn();#if defined(__WXMAC__)      S.AddFixedText(_("Note: Pressing Cmd+Q will quit. All other keys are valid."));#endif      S.StartThreeColumn();      {         S.Id(ImportButtonID).AddButton(_("&Import..."));         S.Id(ExportButtonID).AddButton(_("&Export..."));         S.Id(AssignDefaultsButtonID).AddButton(_("&Defaults"));      }      S.EndThreeColumn();   }
开发者ID:tuanmasterit,项目名称:audacity,代码行数:59,


示例9: wxCommandEventHandler

OpenWindowsPanelBase::~OpenWindowsPanelBase(){    this->Disconnect(XRCID("TabsSortTool"), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(OpenWindowsPanelBase::OnSortItems), NULL, this);    this->Disconnect(XRCID("TabsSortTool"), wxEVT_UPDATE_UI, wxUpdateUIEventHandler(OpenWindowsPanelBase::OnSortItemsUpdateUI), NULL, this);    m_fileList->Disconnect(wxEVT_CHAR, wxKeyEventHandler(OpenWindowsPanelBase::OnChar), NULL, this);    m_fileList->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(OpenWindowsPanelBase::OnKeyDown), NULL, this);    m_fileList->Disconnect(wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler(OpenWindowsPanelBase::OnItemSelected), NULL, this);    m_fileList->Disconnect(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler(OpenWindowsPanelBase::OnItemDClicked), NULL, this);    m_fileList->Disconnect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(OpenWindowsPanelBase::OnRightDown), NULL, this);    }
开发者ID:HTshandou,项目名称:codelite,代码行数:11,


示例10: wxKeyEventHandler

DocCommentPanelGeneratedClass::~DocCommentPanelGeneratedClass(){    // Disconnect Events    this->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( DocCommentPanelGeneratedClass::OnKeyDown ) );    PhpSiteDocs->Disconnect( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEventHandler( DocCommentPanelGeneratedClass::OnPhpSiteDocs ), NULL, this );    PhpSiteDocs->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( DocCommentPanelGeneratedClass::OnKeyDown ), NULL, this );    CloseLink->Disconnect( wxEVT_COMMAND_HYPERLINK, wxHyperlinkEventHandler( DocCommentPanelGeneratedClass::OnClose ), NULL, this );    CloseLink->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( DocCommentPanelGeneratedClass::OnKeyDown ), NULL, this );    Text->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( DocCommentPanelGeneratedClass::OnKeyDown ), NULL, this );}
开发者ID:62BRAINS,项目名称:triumph4php,代码行数:11,


示例11: wxDialog

NotebookNavigationDlgBase::NotebookNavigationDlgBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style)    : wxDialog(parent, id, title, pos, size, style){    if ( !bBitmapLoaded ) {        // We need to initialise the default bitmap handler        wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);        wxC9D6CInitBitmapResources();        bBitmapLoaded = true;    }        wxBoxSizer* boxSizer157 = new wxBoxSizer(wxVERTICAL);    this->SetSizer(boxSizer157);        m_panel161 = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxWANTS_CHARS|wxTAB_TRAVERSAL);        boxSizer157->Add(m_panel161, 1, wxEXPAND, 0);        wxBoxSizer* boxSizer163 = new wxBoxSizer(wxVERTICAL);    m_panel161->SetSizer(boxSizer163);        m_dvListCtrl = new wxDataViewListCtrl(m_panel161, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxDV_NO_HEADER|wxDV_VERT_RULES|wxDV_ROW_LINES|wxDV_SINGLE|wxWANTS_CHARS|wxTAB_TRAVERSAL|wxBORDER_STATIC);    m_dvListCtrl->SetFocus();        boxSizer163->Add(m_dvListCtrl, 1, wxALL|wxEXPAND, 2);        m_dvListCtrl->AppendBitmapColumn(_("Modified"), m_dvListCtrl->GetColumnCount(), wxDATAVIEW_CELL_INERT, 20, wxALIGN_CENTER);    m_dvListCtrl->AppendIconTextColumn(_("Text"), wxDATAVIEW_CELL_INERT, -2, wxALIGN_LEFT);        SetName(wxT("NotebookNavigationDlgBase"));    SetMinClientSize(wxSize(400,200));    SetSize(400,200);    if (GetSizer()) {         GetSizer()->Fit(this);    }    if(GetParent()) {        CentreOnParent(wxBOTH);    } else {        CentreOnScreen(wxBOTH);    }#if wxVERSION_NUMBER >= 2900    if(!wxPersistenceManager::Get().Find(this)) {        wxPersistenceManager::Get().RegisterAndRestore(this);    } else {        wxPersistenceManager::Get().Restore(this);    }#endif    // Connect events    this->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(NotebookNavigationDlgBase::OnKeyDown), NULL, this);    this->Connect(wxEVT_KEY_UP, wxKeyEventHandler(NotebookNavigationDlgBase::OnKeyUp), NULL, this);    m_dvListCtrl->Connect(wxEVT_KEY_UP, wxKeyEventHandler(NotebookNavigationDlgBase::OnKeyUp), NULL, this);    m_dvListCtrl->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(NotebookNavigationDlgBase::OnKeyDown), NULL, this);    m_dvListCtrl->Connect(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler(NotebookNavigationDlgBase::OnItemActivated), NULL, this);    }
开发者ID:292388900,项目名称:codelite,代码行数:54,


示例12: wxKeyEventHandler

ControlToolBar::~ControlToolBar(){   wxTheApp->Disconnect( wxEVT_KEY_DOWN,                         wxKeyEventHandler( ControlToolBar::OnKeyDown ),                         NULL,                         this );   wxTheApp->Disconnect( wxEVT_KEY_UP,                         wxKeyEventHandler( ControlToolBar::OnKeyUp ),                         NULL,                         this );}
开发者ID:luki122,项目名称:audacity,代码行数:12,


示例13: wxKeyEventHandler

AButton::Listener::~Listener (){   wxTheApp->Disconnect( wxEVT_KEY_DOWN,                         wxKeyEventHandler( AButton::Listener::OnKeyDown ),                         NULL,                         this );   wxTheApp->Disconnect( wxEVT_KEY_UP,                         wxKeyEventHandler( AButton::Listener::OnKeyUp ),                         NULL,                         this );}
开发者ID:AthiVarathan,项目名称:audacity,代码行数:12,


示例14: wxCommandEventHandler

MemCheckOutputViewBase::~MemCheckOutputViewBase(){    this->Disconnect(ID_TOOL_STOP_PROCESS, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnStop), NULL, this);    this->Disconnect(ID_TOOL_STOP_PROCESS, wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnStopUI), NULL, this);    this->Disconnect(XRCID("memcheck_expand_all"), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnExpandAll), NULL, this);    this->Disconnect(XRCID("memcheck_expand_all"), wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnMemCheckUI), NULL, this);    this->Disconnect(XRCID("memcheck_next"), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnJumpToNext), NULL, this);    this->Disconnect(XRCID("memcheck_next"), wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnMemCheckUI), NULL, this);    this->Disconnect(XRCID("memcheck_prev"), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnJumpToPrev), NULL, this);    this->Disconnect(XRCID("memcheck_prev"), wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnMemCheckUI), NULL, this);    this->Disconnect(XRCID("memcheck_open_plain"), wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnMemCheckUI), NULL, this);    this->Disconnect(XRCID("memcheck_open_plain"), wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnOpenPlain), NULL, this);    m_notebookOutputView->Disconnect(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler(MemCheckOutputViewBase::OutputViewPageChanged), NULL, this);    m_dataViewCtrlErrors->Disconnect(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, wxDataViewEventHandler(MemCheckOutputViewBase::OnActivated), NULL, this);    m_dataViewCtrlErrors->Disconnect(wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED, wxDataViewEventHandler(MemCheckOutputViewBase::OnValueChanged), NULL, this);    m_dataViewCtrlErrors->Disconnect(wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU, wxDataViewEventHandler(MemCheckOutputViewBase::OnContextMenu), NULL, this);    m_dataViewCtrlErrors->Disconnect(wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler(MemCheckOutputViewBase::OnSelectionChanged), NULL, this);    m_bmpButtonPageFirst->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnPageFirst), NULL, this);    m_bmpButtonPageFirst->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnErrorsPanelUI), NULL, this);    m_bmpButtonPagePrev->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnPagePrev), NULL, this);    m_bmpButtonPagePrev->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnErrorsPanelUI), NULL, this);    m_textCtrlPageNumber->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnErrorsPanelUI), NULL, this);    m_textCtrlPageNumber->Disconnect(wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler(MemCheckOutputViewBase::OnPageSelect), NULL, this);    m_bmpButtonPageNext->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnPageNext), NULL, this);    m_bmpButtonPageNext->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnErrorsPanelUI), NULL, this);    m_bmpButtonPageLast->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnPageLast), NULL, this);    m_bmpButtonPageLast->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnErrorsPanelUI), NULL, this);    m_choiceSuppFile->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(MemCheckOutputViewBase::OnSuppFileSelected), NULL, this);    m_choiceSuppFile->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnSuppPanelUI), NULL, this);    m_buttonSuppOpen->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnSuppFileOpen), NULL, this);    m_buttonSuppOpen->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnSuppPanelUI), NULL, this);    m_searchCtrlFilter->Disconnect(wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler(MemCheckOutputViewBase::OnFilterErrors), NULL, this);    m_searchCtrlFilter->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnSuppPanelUI), NULL, this);    m_buttonClearFilter->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnClearFilter), NULL, this);    m_buttonClearFilter->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnSuppPanelUI), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_SIZE, wxSizeEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsResize), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_MOTION, wxMouseEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsMouseMotion), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsActivated), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsSelected), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsDeselected), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsKeyDown), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_KEY_UP, wxKeyEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsKeyUp), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_CHAR, wxKeyEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsChar), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_LEFT_DOWN, wxMouseEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsLeftDown), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_LEFT_UP, wxMouseEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsLeftUp), NULL, this);    m_listCtrlErrors->Disconnect(wxEVT_LEAVE_WINDOW, wxMouseEventHandler(MemCheckOutputViewBase::OnListCtrlErrorsMouseLeave), NULL, this);    m_buttonSuppressAll->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnSuppressAll), NULL, this);    m_buttonSuppressAll->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnSuppPanelUI), NULL, this);    m_buttonSuppressSelected->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MemCheckOutputViewBase::OnSuppressSelected), NULL, this);    m_buttonSuppressSelected->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MemCheckOutputViewBase::OnSuppPanelUI), NULL, this);    }
开发者ID:LoviPanda,项目名称:codelite,代码行数:52,


示例15: wxKeyEventHandler

TagSearchDialogGeneratedClass::~TagSearchDialogGeneratedClass(){	// Disconnect Events	SearchText->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( TagSearchDialogGeneratedClass::OnSearchKeyDown ), NULL, this );	SearchText->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( TagSearchDialogGeneratedClass::OnSearchText ), NULL, this );	SearchText->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( TagSearchDialogGeneratedClass::OnSearchEnter ), NULL, this );	ProjectChoice->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( TagSearchDialogGeneratedClass::OnProjectChoice ), NULL, this );	MatchesList->Disconnect( wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, wxCommandEventHandler( TagSearchDialogGeneratedClass::OnMatchesListDoubleClick ), NULL, this );	MatchesList->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( TagSearchDialogGeneratedClass::OnMatchesListKeyDown ), NULL, this );	ButtonsSizerCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TagSearchDialogGeneratedClass::OnCancelButton ), NULL, this );	ButtonsSizerHelp->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TagSearchDialogGeneratedClass::OnHelpButton ), NULL, this );	ButtonsSizerOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TagSearchDialogGeneratedClass::OnOkButton ), NULL, this );}
开发者ID:adjustive,项目名称:triumph4php,代码行数:14,


示例16: wxKeyEventHandler

DIALOG_CHOOSE_COMPONENT_BASE::~DIALOG_CHOOSE_COMPONENT_BASE(){	// Disconnect Events	m_searchBox->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnInterceptSearchBoxKey ), NULL, this );	m_searchBox->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnSearchBoxChange ), NULL, this );	m_searchBox->Disconnect( wxEVT_COMMAND_TEXT_ENTER, wxCommandEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnSearchBoxEnter ), NULL, this );	m_libraryComponentTree->Disconnect( wxEVT_KEY_UP, wxKeyEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnInterceptTreeEnter ), NULL, this );	m_libraryComponentTree->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnTreeMouseUp ), NULL, this );	m_libraryComponentTree->Disconnect( wxEVT_COMMAND_TREE_ITEM_ACTIVATED, wxTreeEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnDoubleClickTreeActivation ), NULL, this );	m_libraryComponentTree->Disconnect( wxEVT_COMMAND_TREE_SEL_CHANGED, wxTreeEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnTreeSelect ), NULL, this );	m_componentView->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnStartComponentBrowser ), NULL, this );	m_componentView->Disconnect( wxEVT_PAINT, wxPaintEventHandler( DIALOG_CHOOSE_COMPONENT_BASE::OnHandlePreviewRepaint ), NULL, this );	}
开发者ID:LDavis4559,项目名称:kicad-source-mirror,代码行数:14,


示例17: wxCloseEventHandler

PlotsDialogBase::~PlotsDialogBase(){	// Disconnect Events	this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( PlotsDialogBase::OnClose ) );	this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PlotsDialogBase::OnSize ) );	m_swPlots->Disconnect( wxEVT_CHAR, wxKeyEventHandler( PlotsDialogBase::Relay ), NULL, this );	m_swPlots->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( PlotsDialogBase::Relay ), NULL, this );	m_swPlots->Disconnect( wxEVT_KEY_UP, wxKeyEventHandler( PlotsDialogBase::Relay ), NULL, this );	m_swPlots->Disconnect( wxEVT_LEFT_DCLICK, wxMouseEventHandler( PlotsDialogBase::OnDoubleClick ), NULL, this );	m_swPlots->Disconnect( wxEVT_PAINT, wxPaintEventHandler( PlotsDialogBase::OnPaint ), NULL, this );	this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( PlotsDialogBase::OnConfiguration ) );		delete m_menu1; }
开发者ID:seandepagnier,项目名称:sweepplot_pi,代码行数:14,


示例18: wxKeyEventHandler

ReplacePrompt::~ReplacePrompt(){	// Disconnect Events	this->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( ReplacePrompt::OnDialogKey ) );	btnYes->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ReplacePrompt::OnYes ), NULL, this );	btnYes->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( ReplacePrompt::OnDialogKey ), NULL, this );	btnNo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ReplacePrompt::OnNo ), NULL, this );	btnNo->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( ReplacePrompt::OnDialogKey ), NULL, this );	btnLast->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ReplacePrompt::OnLast ), NULL, this );	btnLast->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( ReplacePrompt::OnDialogKey ), NULL, this );	btnAll->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ReplacePrompt::OnYesToAll ), NULL, this );	btnAll->Disconnect( wxEVT_KEY_DOWN, wxKeyEventHandler( ReplacePrompt::OnDialogKey ), NULL, this );	btnQuit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( ReplacePrompt::OnCancel ), NULL, this );	}
开发者ID:compuphase,项目名称:Quincy,代码行数:15,


示例19: mButton

AButton::Listener::Listener (AButton *button): mButton(button){   mShiftKeyTimer.SetOwner(this);   wxTheApp->Connect( wxEVT_KEY_DOWN,                      wxKeyEventHandler( AButton::Listener::OnKeyDown ),                      NULL,                      this );   wxTheApp->Connect( wxEVT_KEY_UP,                      wxKeyEventHandler( AButton::Listener::OnKeyUp ),                      NULL,                      this );}
开发者ID:AthiVarathan,项目名称:audacity,代码行数:15,


示例20: wxWindow

GSPanel::GSPanel( wxWindow* parent )	: wxWindow()	, m_HideMouseTimer( this )	, m_coreRunning(false){	m_CursorShown	= true;	m_HasFocus		= false;	if ( !wxWindow::Create(parent, wxID_ANY) )		throw Exception::RuntimeError().SetDiagMsg( L"GSPanel constructor explode!!" );	SetName( L"GSPanel" );	InitDefaultAccelerators();	SetBackgroundColour(wxColour((unsigned long)0));	if( g_Conf->GSWindow.AlwaysHideMouse )	{		SetCursor( wxCursor(wxCURSOR_BLANK) );		m_CursorShown = false;	}	Connect(wxEVT_CLOSE_WINDOW,		wxCloseEventHandler	(GSPanel::OnCloseWindow));	Connect(wxEVT_SIZE,				wxSizeEventHandler	(GSPanel::OnResize));	Connect(wxEVT_KEY_UP,			wxKeyEventHandler	(GSPanel::OnKeyDownOrUp));	Connect(wxEVT_KEY_DOWN,			wxKeyEventHandler	(GSPanel::OnKeyDownOrUp));	Connect(wxEVT_SET_FOCUS,		wxFocusEventHandler	(GSPanel::OnFocus));	Connect(wxEVT_KILL_FOCUS,		wxFocusEventHandler	(GSPanel::OnFocusLost));	Connect(m_HideMouseTimer.GetId(), wxEVT_TIMER, wxTimerEventHandler(GSPanel::OnHideMouseTimeout) );	// Any and all events which should result in the mouse cursor being made visible	// are connected here.  If I missed one, feel free to add it in! --air	Connect(wxEVT_LEFT_DOWN,		wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_LEFT_UP,			wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_MIDDLE_DOWN,		wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_MIDDLE_UP,		wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_RIGHT_DOWN,		wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_RIGHT_UP,			wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_MOTION,			wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_LEFT_DCLICK,		wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_LEFT_DCLICK,		wxMouseEventHandler	(GSPanel::OnLeftDclick));	Connect(wxEVT_MIDDLE_DCLICK,	wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_RIGHT_DCLICK,		wxMouseEventHandler	(GSPanel::OnMouseEvent));	Connect(wxEVT_MOUSEWHEEL,		wxMouseEventHandler	(GSPanel::OnMouseEvent));}
开发者ID:Aced14,项目名称:pcsx2,代码行数:48,


示例21: wxGrid

/*********************************************************   MyGrid   ---   Constructor********************************************************/MyGrid::MyGrid( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,                long style, const wxString& name )		: wxGrid( parent, id, pos, size, style, name ){	Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( MyGrid::OnMouseEvent ));	Connect( wxEVT_KEY_DOWN, wxKeyEventHandler( MyGrid::OnKeyDown ));}
开发者ID:akshaykinhikar,项目名称:maitreya7,代码行数:12,


示例22: wxPanel

CslPanelSearch::CslPanelSearch(wxWindow* parent, int id,                               const wxPoint& pos,                               const wxSize& size,                               long style):    wxPanel(parent, id, pos, size, wxTAB_TRAVERSAL){    // begin wxGlade: CslPanelSearch::CslPanelSearch    m_search_ctrl = new wxSearchCtrl(this, SEARCH_TEXT, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER);    m_radio_server = new wxRadioButton(this, SEARCH_RADIO_SERVER, _("Serve&rs"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP);    m_radio_player = new wxRadioButton(this, SEARCH_RADIO_PLAYER, _("&Players"));    m_gauge_progress = new wxGauge(this, wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL|wxGA_SMOOTH);    m_label_result_prefix = new wxStaticText(this, wxID_ANY, _("Result:"));    m_label_result = new wxStaticText(this, wxID_ANY, wxEmptyString);    m_button_search = new wxButton(this, SEARCH_BUTTON_SEARCH, _("&Search"));    set_properties();    do_layout();    // end wxGlade    wxCommandEvent evt(wxEVT_COMMAND_RADIOBUTTON_SELECTED, SEARCH_RADIO_SERVER);    ProcessEvent(evt);    // depending on platform, key events from childs never reach    // the main frame using static event tables - connect them here    ConnectEventRecursive(wxID_ANY, this, this, wxEVT_KEY_DOWN, wxKeyEventHandler(CslPanelSearch::OnKeypress));}
开发者ID:aurhat,项目名称:cubelister,代码行数:26,


示例23: Disconnect

NavViewPanel::~NavViewPanel(){  Disconnect( EVT_RENDER, wxCommandEventHandler( NavViewPanel::onRender ), NULL, this );  render_panel_->Disconnect( wxEVT_CHAR, wxKeyEventHandler( NavViewPanel::onChar ), NULL, this );  render_panel_->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( NavViewPanel::onRenderWindowMouseEvents ), NULL, this );  render_panel_->Disconnect( wxEVT_MIDDLE_DOWN, wxMouseEventHandler( NavViewPanel::onRenderWindowMouseEvents ), NULL, this );  render_panel_->Disconnect( wxEVT_RIGHT_DOWN, wxMouseEventHandler( NavViewPanel::onRenderWindowMouseEvents ), NULL, this );  render_panel_->Disconnect( wxEVT_MOTION, wxMouseEventHandler( NavViewPanel::onRenderWindowMouseEvents ), NULL, this );  render_panel_->Disconnect( wxEVT_LEFT_UP, wxMouseEventHandler( NavViewPanel::onRenderWindowMouseEvents ), NULL, this );  render_panel_->Disconnect( wxEVT_MIDDLE_UP, wxMouseEventHandler( NavViewPanel::onRenderWindowMouseEvents ), NULL, this );  render_panel_->Disconnect( wxEVT_RIGHT_UP, wxMouseEventHandler( NavViewPanel::onRenderWindowMouseEvents ), NULL, this );  render_panel_->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( NavViewPanel::onRenderWindowMouseEvents ), NULL, this );  particle_cloud_sub_.shutdown();  global_plan_sub_.unsubscribe();  local_plan_sub_.unsubscribe();  robot_footprint_sub_.unsubscribe();  inflated_obs_sub_.unsubscribe();  raw_obs_sub_.unsubscribe();  global_plan_filter_.reset();  local_plan_filter_.reset();  robot_footprint_filter_.reset();  inflated_obs_filter_.reset();  raw_obs_filter_.reset();  delete update_timer_;  delete current_tool_;  delete tf_client_;  ogre_root_->destroySceneManager( scene_manager_ );}
开发者ID:DevasenaInupakutika,项目名称:ros_navigation,代码行数:33,


示例24: event

bool Notebook::RemovePage(size_t page, bool notify){    if (notify) {        //send event to noitfy that the page has changed        NotebookEvent event(wxEVT_COMMAND_BOOK_PAGE_CLOSING, GetId());        event.SetSelection( page );        event.SetEventObject( this );        GetEventHandler()->ProcessEvent(event);        if (!event.IsAllowed()) {            return false;        }    }    wxWindow* win = GetPage(page);    win->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(Notebook::OnKeyDown),  NULL, this);    bool rc = wxNotebook::RemovePage(page);    if (rc) {        GTKDeletePgInfo(win);        PopPageHistory(win);    }    if (rc && notify) {        //send event to noitfy that the page has been closed        NotebookEvent event(wxEVT_COMMAND_BOOK_PAGE_CLOSED, GetId());        event.SetSelection( page );        event.SetEventObject( this );        GetEventHandler()->ProcessEvent(event);    }    return rc;}
开发者ID:AndrianDTR,项目名称:codelite,代码行数:33,


示例25: wxMouseEventHandler

void wxSFControlShape::SetControl(wxWindow *ctrl, bool fit){    if( m_pControl ) m_pControl->Reparent( m_pPrevParent );    m_pControl = ctrl;    if( m_pControl )    {        m_pPrevParent = ctrl->GetParent();        if( m_pParentManager )        {            wxSFShapeCanvas *pCanvas = ((wxSFDiagramManager*)m_pParentManager)->GetShapeCanvas();            // reparent GUI control if necessary            if( pCanvas && ( (wxWindow*)pCanvas != m_pPrevParent ) ) m_pControl->Reparent( (wxWindow*)pCanvas );            // redirect mouse events to the event sink for their delayed processing            m_pControl->Connect(wxEVT_LEFT_DOWN, wxMouseEventHandler(EventSink::_OnMouseButton), NULL, m_pEventSink);            m_pControl->Connect(wxEVT_RIGHT_DOWN, wxMouseEventHandler(EventSink::_OnMouseButton), NULL, m_pEventSink);            m_pControl->Connect(wxEVT_LEFT_UP, wxMouseEventHandler(EventSink::_OnMouseButton), NULL, m_pEventSink);            m_pControl->Connect(wxEVT_RIGHT_UP, wxMouseEventHandler(EventSink::_OnMouseButton), NULL, m_pEventSink);            m_pControl->Connect(wxEVT_LEFT_DCLICK, wxMouseEventHandler(EventSink::_OnMouseButton), NULL, m_pEventSink);            m_pControl->Connect(wxEVT_RIGHT_DCLICK, wxMouseEventHandler(EventSink::_OnMouseButton), NULL, m_pEventSink);            m_pControl->Connect(wxEVT_MOTION, wxMouseEventHandler(EventSink::_OnMouseMove), NULL, m_pEventSink);            m_pControl->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(EventSink::_OnKeyDown), NULL, m_pEventSink);            m_pControl->Connect(wxEVT_SIZE, wxSizeEventHandler(EventSink::_OnSize), NULL, m_pEventSink);        }        if( fit ) UpdateShape();        UpdateControl();    }}
开发者ID:292388900,项目名称:codelite,代码行数:34,


示例26: MyTabTextCtrl

 MyTabTextCtrl(wxWindow *parent, const wxString& value, int flags = 0)     : wxTextCtrl(parent, wxID_ANY, value,                  wxDefaultPosition, wxDefaultSize,                  flags) {     Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(MyTabTextCtrl::OnKeyDown)); }
开发者ID:ExperimentationBox,项目名称:Edenite,代码行数:7,


示例27: wxDialog

PakFileDialog::PakFileDialog(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):    wxDialog(parent, id, title, pos, size, wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER),      m_imglist(16, 16, true){    // begin wxGlade: PakFileDialog::PakFileDialog    sizer_6_staticbox = new wxStaticBox(this, -1, wxT("Preview"));    m_godirupbtn = new wxBitmapButton(this, ID_BTN_PAKFILEDLG_GODIRUP, wxNullBitmap);    m_curpathlabel = new wxStaticText(this, wxID_ANY, wxEmptyString);    m_list = new wxListCtrl(this, ID_LISTCTRL_PAKFILEDIALOG, wxDefaultPosition, wxDefaultSize, wxLC_LIST|wxLC_SINGLE_SEL|wxLC_SORT_ASCENDING|wxSUNKEN_BORDER);    m_preview = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap);    m_infolabel = new wxStaticText(this, wxID_ANY, wxEmptyString);    static_line_1 = new wxStaticLine(this, wxID_ANY);    m_gauge = new wxGauge(this, wxID_ANY, 10, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL|wxGA_SMOOTH);    button_2 = new wxButton(this, wxID_CANCEL, wxEmptyString);    button_1 = new wxButton(this, wxID_OK, wxEmptyString);    set_properties();    do_layout();    // end wxGlade    m_gauge->SetValue(0);    m_godirupbtn->SetBitmapLabel( wxArtProvider::GetBitmap(wxART_GO_DIR_UP, wxART_TOOLBAR, wxSize(16,16)) );    m_list->SetImageList( &m_imglist, wxIMAGE_LIST_SMALL );    m_imglist.Add(wxArtProvider::GetBitmap(wxART_FOLDER, wxART_OTHER, wxSize(16,16)));    m_imglist.Add(wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16)));    m_list->Connect( ID_LISTCTRL_PAKFILEDIALOG, wxID_ANY, wxEVT_KEY_DOWN, wxKeyEventHandler(PakFileDialog::OnKeyDown) );}
开发者ID:rndstr,项目名称:SuperHud-Editor,代码行数:27,


示例28: wxFrame

GSFrame::GSFrame(wxWindow* parent, const wxString& title) : wxFrame(parent, wxID_ANY, title){	CellVideoOutResolution res = ResolutionTable[ResolutionIdToNum(Ini.GSResolution.GetValue())];	SetClientSize(res.width, res.height);	wxGetApp().Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(GSFrame::OnKeyDown), (wxObject*)0, this);	Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(GSFrame::OnClose));}
开发者ID:Deidara387,项目名称:rpcs3,代码行数:7,


示例29: wxIdleEventHandler

MainFrameBaseClass::~MainFrameBaseClass(){    this->Disconnect(wxEVT_IDLE, wxIdleEventHandler(MainFrameBaseClass::OnIdle), NULL, this);    this->Disconnect(wxID_CLEAR, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MainFrameBaseClass::OnClearView), NULL, this);    this->Disconnect(wxID_CLEAR, wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrameBaseClass::OnClearViewUI), NULL, this);    this->Disconnect(ID_KILL_INFIRIOR, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MainFrameBaseClass::OnTerminateInfirior), NULL, this);    this->Disconnect(ID_KILL_INFIRIOR, wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrameBaseClass::OnSignalInferiorUI), NULL, this);    this->Disconnect(ID_KILL_INFIRIOR, wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN, wxAuiToolBarEventHandler(MainFrameBaseClass::OnSignalinferior), NULL, this);    this->Disconnect(ID_SETTINGS, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MainFrameBaseClass::OnSettings), NULL, this);    this->Disconnect(wxID_SAVE, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(MainFrameBaseClass::OnSaveContent), NULL, this);    this->Disconnect(wxID_SAVE, wxEVT_UPDATE_UI, wxUpdateUIEventHandler(MainFrameBaseClass::OnSaveContentUI), NULL, this);    m_stc->Disconnect(wxEVT_KEY_DOWN, wxKeyEventHandler(MainFrameBaseClass::OnKeyDown), NULL, this);    m_stc->Disconnect(wxEVT_STC_UPDATEUI, wxStyledTextEventHandler(MainFrameBaseClass::OnStcUpdateUI), NULL, this);    this->Disconnect(m_menuItem7->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrameBaseClass::OnExit), NULL, this);    this->Disconnect(m_menuItem9->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MainFrameBaseClass::OnAbout), NULL, this);    m_timerMarker->Disconnect(wxEVT_TIMER, wxTimerEventHandler(MainFrameBaseClass::OnAddMarker), NULL, this);        std::map<int, wxMenu*>::iterator menuIter = m_dropdownMenus.begin();    for( ; menuIter != m_dropdownMenus.end(); ++menuIter ) {        wxDELETE( menuIter->second );    }    m_dropdownMenus.clear();    m_timerMarker->Stop();    wxDELETE( m_timerMarker );    this->Disconnect(wxID_ANY, wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN, wxAuiToolBarEventHandler(MainFrameBaseClass::ShowAuiToolMenu), NULL, this);}
开发者ID:05storm26,项目名称:codelite,代码行数:28,



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


C++ wxLaunchDefaultBrowser函数代码示例
C++ wxIdleEventHandler函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。