本文整理汇总了C++中PHPConfigurationData::EnableFlag方法的典型用法代码示例。如果您正苦于以下问题:C++ PHPConfigurationData::EnableFlag方法的具体用法?C++ PHPConfigurationData::EnableFlag怎么用?C++ PHPConfigurationData::EnableFlag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPConfigurationData
的用法示例。
在下文中一共展示了PHPConfigurationData::EnableFlag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoStartDebugger
void XDebugManager::DoStartDebugger()
{
wxDELETE( m_readerThread );
m_readerThread = new XDebugComThread(this, GetPort() );
m_readerThread->Start();
// Starting event
XDebugEvent eventStarting(wxEVT_XDEBUG_SESSION_STARTING);
EventNotifier::Get()->ProcessEvent( eventStarting );
PHPConfigurationData conf;
conf.Load();
if ( !conf.HasFlag(PHPConfigurationData::kDontPromptForMissingFileMapping) && GetFileMapping(PHPWorkspace::Get()->GetActiveProject()).empty() ) {
// Issue a warning
wxString message;
message << _("This project has no file mapping defined. This may result in breakpoints not applied\n")
<< _("To fix this, set file mapping from Project Settings -> Debug");
wxRichMessageDialog dlg(EventNotifier::Get()->TopFrame(), message, "CodeLite", wxICON_WARNING|wxOK|wxOK_DEFAULT|wxCANCEL);
dlg.ShowCheckBox(_("Remember my answer and don't show this message again"));
dlg.SetOKCancelLabels(_("OK, Continue to Debug"), _("Stop the debugger"));
int dlgResult = dlg.ShowModal();
conf.EnableFlag( PHPConfigurationData::kDontPromptForMissingFileMapping, dlg.IsCheckBoxChecked() ).Save();
if ( dlgResult == wxID_CANCEL ) {
// Stop the debugger
DoStopDebugger();
return;
}
}
// Now we can run the project
if ( !PHPWorkspace::Get()->RunProject(true, "", conf.GetXdebugIdeKey()) ) {
DoStopDebugger();
return;
}
// Notify about debug session started
XDebugEvent eventStart(wxEVT_XDEBUG_SESSION_STARTED);
EventNotifier::Get()->AddPendingEvent( eventStart );
}