本文整理汇总了C++中Unbind函数的典型用法代码示例。如果您正苦于以下问题:C++ Unbind函数的具体用法?C++ Unbind怎么用?C++ Unbind使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Unbind函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: switch
DGLE_RESULT DGLE_API CRender::Unbind(E_ENGINE_OBJECT_TYPE eType)
{
switch (eType)
{
case EOT_UNKNOWN:
Unbind(EOT_MATERIAL);
Unbind(EOT_TEXTURE);
Unbind(EOT_MESH);
Unbind(EOT_LIGHT);
break;
case EOT_TEXTURE:
_pRender3D->UnbindTextures();
break;
case EOT_MESH:
case EOT_MODEL:
_pCoreRenderer->DrawBuffer(NULL);
break;
case EOT_LIGHT:
_pRender3D->UnbindLights();
break;
case EOT_MATERIAL:
_pRender3D->UnbindMaterial();
break;
default:
return E_INVALIDARG;
}
return S_OK;
}
示例2: Unbind
LLDBDebugger::~LLDBDebugger()
{
Unbind(wxEVT_TIMER, &LLDBDebugger::OnTimer, this, m_timer->GetId());
Unbind(wxEVT_LLDB_STARTED, &LLDBDebugger::OnStarted, this);
Unbind(wxEVT_LLDB_EXITED, &LLDBDebugger::OnTerminated, this);
wxDELETE( m_timer );
}
示例3: StopDebugServer
LLDBConnector::~LLDBConnector()
{
StopDebugServer();
Unbind(wxEVT_LLDB_EXITED, &LLDBConnector::OnLLDBExited, this);
Unbind(wxEVT_LLDB_STARTED, &LLDBConnector::OnLLDBStarted, this);
Cleanup();
}
示例4: wxASSERT
void CMakePlugin::UnPlug()
{
wxASSERT(m_mgr);
Notebook* notebook = m_mgr->GetWorkspacePaneNotebook();
wxASSERT(notebook);
int pos = notebook->GetPageIndex("CMake Help");
if(pos != wxNOT_FOUND) {
CMakeHelpTab* helpTab = dynamic_cast<CMakeHelpTab*>(notebook->GetPage(pos));
if(helpTab) {
helpTab->Stop();
}
notebook->RemovePage(pos);
}
// Unbind events
wxTheApp->Unbind(wxEVT_COMMAND_MENU_SELECTED, &CMakePlugin::OnSettings, this, XRCID("cmake_settings"));
EventNotifier::Get()->Unbind(wxEVT_SHOW_WORKSPACE_TAB, &CMakePlugin::OnToggleHelpTab, this);
EventNotifier::Get()->Unbind(wxEVT_CONTEXT_MENU_PROJECT, &CMakePlugin::OnProjectContextMenu, this);
EventNotifier::Get()->Unbind(wxEVT_CONTEXT_MENU_WORKSPACE, &CMakePlugin::OnWorkspaceContextMenu, this);
EventNotifier::Get()->Unbind(wxEVT_PROJ_FILE_ADDED, &CMakePlugin::OnFileAdded, this);
EventNotifier::Get()->Unbind(wxEVT_PROJ_FILE_REMOVED, &CMakePlugin::OnFileRemoved, this);
Unbind(wxEVT_ASYNC_PROCESS_OUTPUT, &CMakePlugin::OnCMakeOutput, this);
Unbind(wxEVT_ASYNC_PROCESS_TERMINATED, &CMakePlugin::OnCMakeTerminated, this);
}
示例5: switch
HRESULT DGLE2_API CRender::Unbind(E_ENG_OBJ_TYPE eType)
{
switch (eType)
{
case EOT_UNKNOWN:
Unbind(EOT_MATERIAL);
Unbind(EOT_TEXTURE);
Unbind(EOT_MESH);
break;
case EOT_TEXTURE:
for (int i = _iMaxTexUnits - 1; i >= 0; --i)
_pCoreRenderer->BindTexture(NULL, i);
break;
case EOT_MESH:
case EOT_MODEL:
_pCoreRenderer->DrawBuffer(NULL);
break;
case EOT_MATERIAL:
//ToDo
break;
default:
return E_INVALIDARG;
}
return S_OK;
}
示例6: Unbind
wxCustomStatusBar::~wxCustomStatusBar()
{
Unbind(wxEVT_PAINT, &wxCustomStatusBar::OnPaint, this);
Unbind(wxEVT_ERASE_BACKGROUND, &wxCustomStatusBar::OnEraseBackround, this);
Unbind(wxEVT_LEFT_DOWN, &wxCustomStatusBar::OnLeftDown, this);
Unbind(wxEVT_MOTION, &wxCustomStatusBar::OnMouseMotion, this);
}
示例7: Unbind
// -------------------------------------------------------------------------------- //
guJamendoPanel::~guJamendoPanel()
{
Unbind( wxEVT_MENU, &guJamendoPanel::OnDownloadAlbum, this, ID_JAMENDO_DOWNLOAD_TORRENT_ALBUM );
Unbind( wxEVT_MENU, &guJamendoPanel::OnDownloadTrackAlbum, this, ID_JAMENDO_DOWNLOAD_TORRENT_TRACK_ALBUM );
Unbind( wxEVT_MENU, &guJamendoPanel::OnDownloadAlbum, this, ID_JAMENDO_DOWNLOAD_DIRECT_ALBUM );
Unbind( wxEVT_MENU, &guJamendoPanel::OnDownloadTrackAlbum, this, ID_JAMENDO_DOWNLOAD_DIRECT_TRACK_ALBUM );
}
示例8: BindAll
void FarPlugin::KeyConfig()
{
//int res = Info.MacroControl(&MainGuid, MCTL_SAVEALL, 0, NULL);
//
BindAll();
ShowMessage("", "Hotkeys binded", FMSG_MB_OK);
return;
#if 0
FarDialog& dlg = Dialogs()["KeysDialog"];
dlg.ResetControls();
bool bind = Binded("F5") && Binded("F6") && Binded("ShiftF5") && Binded("ShiftF6");
bool altShift = bind && Binded("AltShiftF5") && Binded("AltShiftF6");
bool ctrlShift = bind && Binded("CtrlShiftF5") && Binded("CtrlShiftF6");
bool ctrlAlt = bind && Binded("CtrlAltF5") && Binded("CtrlAltF6");
if(!altShift && !ctrlShift && !ctrlAlt)
altShift = true;
dlg["BindToF5"]("Selected") = bind;
dlg["AltShiftF5"]("Selected") = altShift;
dlg["CtrlShiftF5"]("Selected") = ctrlShift;
dlg["CtrlAltF5"]("Selected") = ctrlAlt;
if(dlg.Execute() == -1)
return;
if(dlg["BindToF5"]("Selected") == bind
&& dlg["AltShiftF5"]("Selected") == altShift
&& dlg["CtrlShiftF5"]("Selected") == ctrlShift
&& dlg["CtrlAltF5"]("Selected") == ctrlAlt)
return;
// MacroCommand(MCMD_SAVEALL); // XXX
Unbind("KEY_F5"); Unbind("ShiftF5");
Unbind("KEY_F5"); Unbind("ShiftF6");
Unbind("AltShiftF5"); Unbind("AltShiftF6");
Unbind("CtrlShiftF5"); Unbind("CtrlShiftF6");
Unbind("CtrlAltF5"); Unbind("CtrlAltF6");
if(dlg["BindToF5"]("Selected"))
{
Bind("F5", "Plugin.Call(\"16990c75-cb7a-43df-8d7e-d6bf3683c3f1\", 0)", "", 0);
Bind("F6", "Plugin.Call(\"16990c75-cb7a-43df-8d7e-d6bf3683c3f1\", 1)", "", 0);
Bind("ShiftF5", "Plugin.Call(\"16990c75-cb7a-43df-8d7e-d6bf3683c3f1\", 0)", "", 0);
Bind("ShiftF6", "Plugin.Call(\"16990c75-cb7a-43df-8d7e-d6bf3683c3f1\", 1)", "", 0);
/*
String key;
if(dlg["AltShiftF5"]("Selected")) key = "AltShift";
else if(dlg["CtrlShiftF5"]("Selected")) key = "CtrlShift";
else if(dlg["CtrlAltF5"]("Selected")) key = "CtrlAlt";
Bind(key + "F5", "F5");
Bind(key + "F6", "F6");
*/
}
// MacroCommand(MCMD_LOADALL); // XXX
#endif
}
示例9: Unbind
CtrlDataList::~CtrlDataList()
{
//Unbind
Unbind(wxEVT_DATAVIEW_ITEM_CONTEXT_MENU, &CtrlDataList::onItemContextMenu, this);
Unbind(wxEVT_DATAVIEW_SELECTION_CHANGED, &CtrlDataList::onSelectionChanger, this);
//Destruction du menu.
delete _menu;
}
示例10: Bound
void FarPlugin::KeyConfig()
{
//int res = Info.MacroControl(&MainGuid, MCTL_SAVEALL, 0, nullptr);
//
//BindAll();
//ShowMessage(L"", L"Hotkeys binded", FMSG_MB_OK);
//return;
FarDialog & dlg = plugin->Dialogs()[L"KeysDialog"];
dlg.ResetControls();
bool bind = Bound(L"F5") && Bound(L"F6") && Bound(L"ShiftF5") && Bound(L"ShiftF6");
bool altShift = bind && Bound(L"AltShiftF5") && Bound(L"AltShiftF6");
bool ctrlShift = bind && Bound(L"CtrlShiftF5") && Bound(L"CtrlShiftF6");
bool ctrlAlt = bind && Bound(L"CtrlAltF5") && Bound(L"CtrlAltF6");
if (!altShift && !ctrlShift && !ctrlAlt)
altShift = true;
dlg[L"BindToF5"](L"Selected") = bind;
dlg[L"AltShiftF5"](L"Selected") = altShift;
dlg[L"CtrlShiftF5"](L"Selected") = ctrlShift;
dlg[L"CtrlAltF5"](L"Selected") = ctrlAlt;
if (dlg.Execute() == -1)
return;
if (dlg[L"BindToF5"](L"Selected") == bind &&
dlg[L"AltShiftF5"](L"Selected") == altShift &&
dlg[L"CtrlShiftF5"](L"Selected") == ctrlShift &&
dlg[L"CtrlAltF5"](L"Selected") == ctrlAlt)
return;
Unbind(L"F5");
Unbind(L"ShiftF5");
Unbind(L"F6");
Unbind(L"ShiftF6");
Unbind(L"AltShiftF5");
Unbind(L"AltShiftF6");
Unbind(L"CtrlShiftF5");
Unbind(L"CtrlShiftF6");
Unbind(L"CtrlAltF5");
Unbind(L"CtrlAltF6");
if (dlg[L"BindToF5"](L"Selected"))
{
BindAll();
String key;
if (dlg[L"AltShiftF5"](L"Selected"))
key = L"AltShift";
else if (dlg[L"CtrlShiftF5"](L"Selected"))
key = L"CtrlShift";
else if (dlg[L"CtrlAltF5"](L"Selected"))
key = L"CtrlAlt";
Bind(key + L"F5", L"Keys(\"F5\")", L"FileCopyEx3 - Standard copy dialog", 0);
Bind(key + L"F6", L"Keys(\"F6\")", L"FileCopyEx3 - Standard move dialog", 0);
}
}
示例11: Unbind
TerminalEmulator::~TerminalEmulator()
{
Unbind(wxEVT_ASYNC_PROCESS_OUTPUT, &TerminalEmulator::OnProcessOutput, this);
Unbind(wxEVT_ASYNC_PROCESS_TERMINATED, &TerminalEmulator::OnProcessTerminated, this);
std::for_each(m_myProcesses.begin(), m_myProcesses.end(), [&](wxProcess* proc) {
MyProcess* myproc = dynamic_cast<MyProcess*>(proc);
myproc->m_parent = NULL;
});
}
示例12: StopDebugServer
LLDBConnector::~LLDBConnector()
{
StopDebugServer();
Unbind(wxEVT_LLDB_EXITED, &LLDBConnector::OnLLDBExited, this);
Unbind(wxEVT_LLDB_STARTED, &LLDBConnector::OnLLDBStarted, this);
Unbind(wxEVT_ASYNC_PROCESS_OUTPUT, &LLDBConnector::OnProcessOutput, this);
Unbind(wxEVT_ASYNC_PROCESS_TERMINATED, &LLDBConnector::OnProcessTerminated, this);
Cleanup();
}
示例13: Unbind
FrameNotification::~FrameNotification()
{
//Unbind
Unbind(wxEVT_TIMER, &FrameNotification::onTimeout, this);
_staticTextTitle->Unbind(wxEVT_LEFT_DOWN, &FrameNotification::onLeftDown, this);
_staticLine->Unbind(wxEVT_LEFT_DOWN, &FrameNotification::onLeftDown, this);
_staticTextMessage->Unbind(wxEVT_LEFT_DOWN, &FrameNotification::onLeftDown, this);
if(_staticBitmap)
_staticBitmap->Unbind(wxEVT_LEFT_DOWN, &FrameNotification::onLeftDown, this);
Unbind(wxEVT_LEFT_DOWN, &FrameNotification::onLeftDown, this);
}
示例14: Unbind
// -------------------------------------------------------------------------------- //
guSplashFrame::~guSplashFrame()
{
if( m_Bitmap )
{
delete m_Bitmap;
}
// Unbind Events
Unbind( wxEVT_ERASE_BACKGROUND, &guSplashFrame::OnEraseBackground, this );
Unbind( wxEVT_LEFT_DOWN, &guSplashFrame::OnSplashClick, this );
Unbind( wxEVT_TIMER, &guSplashFrame::OnTimeout, this );
}
示例15: Unbind
void CppCheckPlugin::UnPlug()
{
m_tabHelper.reset(NULL);
Unbind(wxEVT_ASYNC_PROCESS_OUTPUT, &CppCheckPlugin::OnCppCheckReadData, this);
Unbind(wxEVT_ASYNC_PROCESS_TERMINATED, &CppCheckPlugin::OnCppCheckTerminated, this);
m_mgr->GetTheApp()->Disconnect(XRCID("cppcheck_settings_item"),
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(CppCheckPlugin::OnSettingsItem),
NULL,
(wxEvtHandler*)this);
m_mgr->GetTheApp()->Disconnect(XRCID("cppcheck_settings_item_project"),
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(CppCheckPlugin::OnSettingsItemProject),
NULL,
(wxEvtHandler*)this);
m_mgr->GetTheApp()->Disconnect(XRCID("cppcheck_editor_item"),
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(CppCheckPlugin::OnCheckFileEditorItem),
NULL,
(wxEvtHandler*)this);
m_mgr->GetTheApp()->Disconnect(XRCID("cppcheck_fileexplorer_item"),
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(CppCheckPlugin::OnCheckFileExplorerItem),
NULL,
(wxEvtHandler*)this);
m_mgr->GetTheApp()->Disconnect(XRCID("cppcheck_workspace_item"),
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(CppCheckPlugin::OnCheckWorkspaceItem),
NULL,
(wxEvtHandler*)this);
m_mgr->GetTheApp()->Disconnect(XRCID("cppcheck_project_item"),
wxEVT_COMMAND_MENU_SELECTED,
wxCommandEventHandler(CppCheckPlugin::OnCheckProjectItem),
NULL,
(wxEvtHandler*)this);
EventNotifier::Get()->Unbind(wxEVT_CONTEXT_MENU_EDITOR, &CppCheckPlugin::OnEditorContextMenu, this);
EventNotifier::Get()->Disconnect(
wxEVT_WORKSPACE_CLOSED, wxCommandEventHandler(CppCheckPlugin::OnWorkspaceClosed), NULL, this);
// before this plugin is un-plugged we must remove the tab we added
for(size_t i = 0; i < m_mgr->GetOutputPaneNotebook()->GetPageCount(); i++) {
if(m_view == m_mgr->GetOutputPaneNotebook()->GetPage(i)) {
m_mgr->GetOutputPaneNotebook()->RemovePage(i);
break;
}
}
m_view->Destroy();
// terminate the cppcheck daemon
wxDELETE(m_cppcheckProcess);
}