本文整理汇总了C++中wxUpdateUIEvent::Skip方法的典型用法代码示例。如果您正苦于以下问题:C++ wxUpdateUIEvent::Skip方法的具体用法?C++ wxUpdateUIEvent::Skip怎么用?C++ wxUpdateUIEvent::Skip使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxUpdateUIEvent
的用法示例。
在下文中一共展示了wxUpdateUIEvent::Skip方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnUpdateUI
void PythonInterpreter::OnUpdateUI(wxUpdateUIEvent& event)
{
#ifndef TOOLSPLUSLINK
if(m_ViewMenu)
{
m_ViewMenu->Check(ID_INTERP_WINDOW_TOGGLE,IsWindowReallyShown(m_shellmgr));
// allow other UpdateUI handlers to process this event
// *very* important! don't forget it...
event.Skip();
}
#endif // TOOLSPLUSLINK
}
示例2: OnUpdateViewMenu
void OccurrencesHighlighting::OnUpdateViewMenu(wxUpdateUIEvent &event)
{
if (m_pViewMenu)
{
bool isVis = IsWindowReallyShown((wxWindow*)m_pPanel);
m_pViewMenu->Check(idViewOccurencesPanel, isVis);
//event.Check(isVis);
}
// must do...
event.Skip();
}
示例3: OnUpdateUI
void SourceView::OnUpdateUI(wxUpdateUIEvent& event)
{
long col, line;
const bool result = PositionToXY(GetInsertionPoint(), &col, &line);
if(!result)
line = -1;
else
line += 1;//convert to 1-based line numbering
mainwin->setCurrent(currentfile, line);
event.Skip();
}
示例4: OnToolUpdate
void ErdPanel::OnToolUpdate(wxUpdateUIEvent& event)
{
if(event.GetId() == XRCID("IDT_ERD_TOOL"))
event.Check(m_nToolMode == modeDESIGN);
else if(event.GetId() == XRCID("IDT_ERD_TABLE"))
event.Check(m_nToolMode == modeTABLE);
else if(event.GetId() == XRCID("IDT_ERD_LINE"))
event.Check(m_nToolMode == modeLine);
else if(event.GetId() == XRCID("IDT_ERD_VIEW"))
event.Check(m_nToolMode == modeVIEW);
else
event.Skip();
}
示例5: OnUpdateMenuItem
void AbstractApp::OnUpdateMenuItem(wxUpdateUIEvent& event) {
if (event.GetId() == wxID_ABOUT ||
event.GetId() == TrenchBroom::View::CommandIds::Menu::HelpShowHelp)
event.Enable(true);
else if (event.GetId() == wxID_PREFERENCES ||
event.GetId() == wxID_NEW ||
event.GetId() == wxID_OPEN)
event.Enable(m_preferencesFrame == NULL);
else
event.Enable(false);
if (GetTopWindow() != NULL && m_preferencesFrame == NULL)
event.Skip();
}
示例6: OnEnableSOCKSProxyCtrlUpdate
void CDlgOptions::OnEnableSOCKSProxyCtrlUpdate(wxUpdateUIEvent& event) {
if (m_EnableSOCKSProxyCtrl->IsEnabled() && m_EnableSOCKSProxyCtrl->IsChecked()) {
m_SOCKSAddressCtrl->Enable(true);
m_SOCKSPortCtrl->Enable(true);
m_SOCKSUsernameCtrl->Enable(true);
m_SOCKSPasswordCtrl->Enable(true);
} else {
m_SOCKSAddressCtrl->Enable(false);
m_SOCKSPortCtrl->Enable(false);
m_SOCKSUsernameCtrl->Enable(false);
m_SOCKSPasswordCtrl->Enable(false);
}
event.Skip();
}
示例7: OnUpdateUI
void EnvVarsProjectOptionsDlg::OnUpdateUI(wxUpdateUIEvent& event)
{
#if TRACE_ENVVARS
Manager::Get()->GetLogManager()->DebugLog(F(_T("OnUpdateUI")));
#endif
wxCheckBox* checkbox_control = XRCCTRL(*this, "chkEnvvarSet", wxCheckBox);
if (checkbox_control)
{
wxChoice* choice_control = XRCCTRL(*this, "choEnvvarSets", wxChoice);
if (choice_control)
choice_control->Enable(checkbox_control->IsChecked());
}
event.Skip();
}// OnUpdateUI
示例8: OnUpdateUI
void Exporter::OnUpdateUI(wxUpdateUIEvent &event)
{
if (Manager::IsAppShuttingDown())
{
event.Skip();
return;
}
wxMenuBar *mbar = Manager::Get()->GetAppFrame()->GetMenuBar();
if (mbar)
{
EditorManager *em = Manager::Get()->GetEditorManager();
// Enabled if there's a source file opened (be sure it isn't the "Start here" page)
bool disable = !em || !em->GetActiveEditor() || !em->GetBuiltinActiveEditor();
mbar->Enable(idFileExportHTML, !disable);
mbar->Enable(idFileExportRTF, !disable);
mbar->Enable(idFileExportODT, !disable);
mbar->Enable(idFileExportPDF, !disable);
}
event.Skip();
}
示例9: OnEnableHTTPProxyCtrlUpdate
void CDlgOptions::OnEnableHTTPProxyCtrlUpdate(wxUpdateUIEvent& event) {
if (m_EnableHTTPProxyCtrl->IsEnabled() && m_EnableHTTPProxyCtrl->IsChecked()) {
m_HTTPAddressCtrl->Enable(true);
m_HTTPPortCtrl->Enable(true);
m_HTTPUsernameCtrl->Enable(true);
m_HTTPPasswordCtrl->Enable(true);
m_HTTPNoProxiesCtrl->Enable(true);
} else {
m_HTTPAddressCtrl->Enable(false);
m_HTTPPortCtrl->Enable(false);
m_HTTPUsernameCtrl->Enable(false);
m_HTTPPasswordCtrl->Enable(false);
m_HTTPNoProxiesCtrl->Enable(false);
}
event.Skip();
}
示例10: OnEditUI
void OutputTabWindow::OnEditUI(wxUpdateUIEvent& e)
{
if ( !IsFocused() || !m_sci ) {
e.Skip();
return;
}
switch (e.GetId()) {
case wxID_COPY:
e.Enable( m_sci->GetSelectedText().IsEmpty() == false );
break;
case wxID_SELECTALL:
e.Enable(true);
break;
default:
break;
}
}
示例11: OnEditUI
void DebuggerAsciiViewer::OnEditUI(wxUpdateUIEvent& e)
{
if ( !IsFocused() ) {
e.Skip();
return;
}
switch ( e.GetId() ) {
case wxID_SELECTALL:
e.Enable(true);
break;
case wxID_COPY:
e.Enable( m_textView->GetSelectedText().IsEmpty() == false );
break;
default:
e.Enable(false);
break;
}
}
示例12: OnUpdateUI
void DebuggerToolbarHandler::OnUpdateUI(wxUpdateUIEvent& event)
{
cbDebuggerPlugin *plugin = Manager::Get()->GetDebuggerManager()->GetActiveDebugger();
ProjectManager *manager = Manager::Get()->GetProjectManager();
bool en = false;
bool stopped = false, isRunning = false;
if (plugin)
{
cbProject* prj = manager->GetActiveProject();
en = (prj && !prj->GetCurrentlyCompilingTarget()) || plugin->IsAttachedToProcess();
stopped = plugin->IsStopped();
isRunning = plugin->IsRunning();
}
if (m_Toolbar)
{
cbEditor* ed = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor();
cbPlugin *runningPlugin = manager->GetIsRunning();
if (runningPlugin != NULL && runningPlugin != plugin)
en = false;
m_Toolbar->EnableTool(idMenuDebug, (!isRunning || stopped) && en);
m_Toolbar->EnableTool(idMenuRunToCursor, en && ed && stopped);
m_Toolbar->EnableTool(idMenuNext, isRunning && en && stopped);
m_Toolbar->EnableTool(idMenuNextInstr, isRunning && en && stopped);
m_Toolbar->EnableTool(idMenuStepIntoInstr, isRunning && en && stopped);
m_Toolbar->EnableTool(idMenuStep, en && stopped);
m_Toolbar->EnableTool(idMenuStepOut, isRunning && en && stopped);
m_Toolbar->EnableTool(idToolbarStop, isRunning && en);
m_Toolbar->EnableTool(idMenuBreak, isRunning && !stopped && en);
m_Toolbar->EnableTool(idDebuggerToolInfo, plugin && plugin->ToolMenuEnabled());
}
// allow other UpdateUI handlers to process this event
// *very* important! don't forget it...
event.Skip();
}
示例13: OnEditUI
void CQuickFindBar::OnEditUI(wxUpdateUIEvent& e)
{
wxTextCtrl *ctrl = GetFocusedControl();
if ( !ctrl ) {
e.Skip();
return;
}
switch (e.GetId()) {
case wxID_SELECTALL:
e.Enable(ctrl->GetValue().IsEmpty() == false);
break;
case wxID_COPY:
e.Enable(ctrl->CanCopy());
break;
case wxID_PASTE:
e.Enable(ctrl->CanPaste());
break;
default:
e.Enable(false);
break;
}
}
示例14: OnUpdateUI
//-------------------------------------------------------------------------------------------------
void DynaDialog::OnUpdateUI( wxUpdateUIEvent& event )
{
event.Skip();
}
示例15: OnUpdateUI
void FindPath::OnUpdateUI( wxUpdateUIEvent &event )
{
event.Skip( TRUE );
}