| 
    Code::Blocks
    SVN r11506
    
   | 
 
#include <logmanager.h>
Classes | |
| struct | Instantiator | 
| struct | InstantiatorBase | 
Public Types | |
| enum | { max_logs = 32 } | 
| enum | {  no_index = -1, invalid_log, stdout_log, app_log, debug_log }  | 
Public Member Functions | |
| size_t | SetLog (Logger *l, int index=no_index) | 
| void | DeleteLog (int i) | 
| LogSlot & | Slot (int i) | 
| size_t | FindIndex (Logger *l) | 
| void | Log (const wxString &msg, int i=app_log, Logger::level lv=Logger::info) | 
| void | LogWarning (const wxString &msg, int i=app_log) | 
| void | LogError (const wxString &msg, int i=app_log) | 
| void | Panic (const wxString &msg, const wxString &component=wxEmptyString) | 
| void | DebugLog (const wxString &msg, Logger::level lv=Logger::info) | 
| void | DebugLogError (const wxString &msg) | 
| void | LogToStdOut (const wxString &msg, Logger::level lv=Logger::info) | 
| void | ClearLog (int i) | 
| wxArrayString | ListAvailable () | 
| Logger * | New (const wxString &name) | 
| bool | FilenameRequired (const wxString &name) | 
| void | Register (const wxString &name, InstantiatorBase *ins) | 
| void | NotifyUpdate () | 
Private Types | |
| typedef std::map< wxString, InstantiatorBase * > | inst_map_t | 
Private Member Functions | |
| LogManager () | |
| ~LogManager () override | |
| void | ClearLogInternal (int i) | 
| void | LogInternal (const wxString &msg, int i, Logger::level lv) | 
Private Attributes | |
| inst_map_t | instMap | 
| LogSlot | slot [max_logs+1] | 
Friends | |
| class | Mgr< LogManager > | 
| class | Manager | 
Additional Inherited Members | |
  Static Public Member Functions inherited from Mgr< LogManager > | |
| static bool | Valid () | 
| static LogManager * | Get () | 
| static void | Free () | 
  Protected Member Functions inherited from Mgr< LogManager > | |
| Mgr () | |
| virtual | ~Mgr () | 
Definition at line 76 of file logmanager.h.
      
  | 
  private | 
Definition at line 93 of file logmanager.h.
| anonymous enum | 
| Enumerator | |
|---|---|
| max_logs | |
Definition at line 91 of file logmanager.h.
| anonymous enum | 
| Enumerator | |
|---|---|
| no_index | |
| invalid_log | |
| stdout_log | |
| app_log | |
| debug_log | |
Definition at line 109 of file logmanager.h.
      
  | 
  private | 
Definition at line 61 of file logmanager.cpp.
References _(), _T, g_null_log, Manager::Get(), Manager::GetColourManager(), ColourManager::RegisterColour(), wxBLUE, wxRED, wxT, and wxWHITE.
      
  | 
  overrideprivate | 
Definition at line 92 of file logmanager.cpp.
      
  | 
  inline | 
Definition at line 151 of file logmanager.h.
      
  | 
  private | 
Definition at line 98 of file logmanager.cpp.
References LogSlot::log.
      
  | 
  inline | 
Definition at line 146 of file logmanager.h.
Referenced by cbProject::AddFile(), CompilerGCC::AddOutputLine(), ProjectManager::AddProjectDependency(), Wiz::AddWizard(), DirectCommands::AreExternalDepsOutdated(), CompilerGDC::AutoDetectInstallationDir(), cbProject::CalculateCommonTopLevelPath(), EditorHooks::CallHooks(), cbEditorInternalData::cbEditorInternalData(), ProjectManager::ClearProjectDependencies(), DirectCommands::CompileFile(), Compiler::Compiler(), CompilerFactory::CompilerInheritsFrom(), EncodingDetector::ConvertToWxString(), CompilerFactory::CreateCompilerCopy(), MainFrame::CreateMenubar(), MainFrame::CreateToolbars(), EncodingDetector::DetectEncoding(), DirectCommands::DirectCommands(), ProjectLoader::DoBuildTarget(), ProjectLoader::DoUnits(), EditorManager::EditorManager(), ExpandBackticks(), ScriptBindings::gDebugLog(), CompilerCommandGenerator::GenerateCommandLine(), Wiz::GenerateFile(), CompileTargetBase::GenerateTargetFilename(), DirectCommands::GetCompileFileCommand(), CompileTargetBase::GetDynamicLibDefFilename(), CompileTargetBase::GetDynamicLibFilename(), CompileTargetBase::GetDynamicLibImportFilename(), CompileTargetBase::GetStaticLibFilename(), PluginManager::InstallPlugin(), CompilerLCC::IsValid(), cbWorkspace::Load(), WorkspaceLoader::LoadLayout(), cbWorkspace::LoadLayout(), cbProject::LoadLayout(), PluginManager::LoadPlugin(), ScriptingManager::LoadScript(), CompilerFactory::LoadSettings(), TemplateManager::LoadUserTemplates(), ProfileTimer::Log(), MainFrame::MainFrame(), TemplateManager::NewProjectFromUserTemplate(), cbPlugin::NotImplemented(), MainFrame::OnApplicationClose(), cbEditorPrintout::OnBeginDocument(), WizPage::OnButton(), CodeCompletion::OnCCDebugLogger(), CompilerGCC::OnCleanFile(), CompilerGCC::OnCompileFileRequest(), ProjectManagerUI::OnGotoFile(), MainFrame::OnHelpPluginMenu(), MainFrame::OnPluginLoaded(), MainFrame::OnPluginsExecuteMenu(), cbEditorPrintout::OnPrintPage(), ProjectFileOptionsDlg::OnReadOnlyCheck(), ProjectManagerUI::OnRemoveFileFromProject(), WorkspaceLoader::Open(), ProjectLayoutLoader::Open(), ProjectTemplateLoader::Open(), ProjectLoader::Open(), MainFrame::Open(), EditorManager::Open(), cbEditor::Open(), EditorManager::OpenContainingFolder(), OpenContainingFolderData::OpenContainingFolderData(), Manager::ProcessEvent(), DebuggerMenuHandler::RegisterWindowMenu(), CompilerFactory::RemoveCompiler(), cbProject::RemoveFile(), ProjectManager::RemoveFileFromProject(), ProjectManager::RemoveProjectDependency(), ProjectManager::RemoveProjectFromAllDependencies(), cbProject::ReOrderTargets(), EncodingDetector::Report(), Wiz::RunProjectWizard(), cbWorkspace::Save(), cbWorkspace::SaveLayout(), TemplateManager::SaveUserTemplate(), cbEditor::SetProjectFile(), CompilerGCC::SetupEnvironment(), CompilerCommandGenerator::SetupOutputFilenames(), ScriptBindings::ShowDialog(), cbDebuggerPlugin::SwitchToDebuggingLayout(), cbDebuggerPlugin::SwitchToPreviousLayout(), CfgMgrBldr::SwitchToR(), ProjectFileOptionsDlg::ToggleFileReadOnly(), ScriptingManager::UnRegisterScriptMenu(), and DirectCommands::~DirectCommands().
      
  | 
  inline | 
Definition at line 147 of file logmanager.h.
References BlkAllc::DebugLog(), and Logger::error.
Referenced by ProjectManagerUI::BuildProjectTree(), cbProject::CalculateCommonTopLevelPath(), CompilerCommandGenerator::GetOrderedIncludeDirs(), CompilerCommandGenerator::GetOrderedLibrariesDirs(), CompilerCommandGenerator::GetOrderedResourceIncludeDirs(), and CompilerGCC::SetupEnvironment().
| void LogManager::DeleteLog | ( | int | i | ) | 
Definition at line 142 of file logmanager.cpp.
Referenced by InfoPane::DeleteLogger().
| bool LogManager::FilenameRequired | ( | const wxString & | name | ) | 
Definition at line 172 of file logmanager.cpp.
| size_t LogManager::FindIndex | ( | Logger * | l | ) | 
Definition at line 152 of file logmanager.cpp.
References LogSlot::log.
Referenced by CodeBlocksLogEvent::CodeBlocksLogEvent(), and InfoPane::DeleteLogger().
| wxArrayString LogManager::ListAvailable | ( | ) | 
Definition at line 162 of file logmanager.cpp.
References wxArrayString::Add().
      
  | 
  inline | 
Definition at line 140 of file logmanager.h.
Referenced by CodeBlocksApp::AttachDebugger(), cbEditor::AutoComplete(), CompilerGCC::CalculateProjectDependencies(), ProjectManagerUI::CheckForExternallyModifiedProjects(), cbDebuggerPlugin::DebugLog(), CompilerGCC::DistClean(), CompilerGCC::DoBuild(), EditorLexerLoader::DoLexer(), CompilerGCC::DoRegisterCompilers(), CompilerGCC::DoWorkspaceBuild(), ToolsManager::Execute(), ScriptBindings::gBuildLog(), Manager::Get(), ScriptBindings::gLog(), AnnoyingDialog::Init(), CompilerGCC::KillProcess(), EditorLexerLoader::Load(), PluginManager::LoadAllPlugins(), EditorColourSet::LoadAvailableSets(), Compiler::LoadDefaultOptions(), Compiler::LoadRegExArray(), ToolsManager::LoadTools(), cbDebuggerPlugin::Log(), CompilerGCC::LogMessage(), CodeCompletion::OnCCLogger(), CodeBlocksApp::OnInit(), CompilerGCC::OnJobEnd(), ProjectOptionsDlg::OnRemoveBuildTargetClick(), ToolsManager::OnToolErrOutput(), ToolsManager::OnToolStdOutput(), ToolsManager::OnToolTerminated(), cbProject::Open(), CompilerCommandGenerator::PathSearch(), ScriptBindings::ScriptPluginWrapper::RegisterPlugin(), ScriptingManager::RegisterScriptMenu(), CompilerGCC::Run(), CompilerGCC::RunSingleFile(), cbEditor::SaveAs(), CompilerGCC::SaveBuildLog(), PluginManager::ScanForPlugins(), MainFrame::ScanForPlugins(), CompilerGCC::StartCompileFile(), and CompilerGCC::StopRunningDebugger().
Definition at line 142 of file logmanager.h.
References Logger::error, and wxEmptyString.
Referenced by CodeBlocksApp::AttachDebugger(), ProjectManagerUI::DoOpenFile(), PluginManager::ExecutePlugin(), DebuggerManager::FindTargetsDebugger(), ScriptBindings::gErrorLog(), GetUserVariableDialog::GetUserVariableDialog(), PluginManager::LoadPlugin(), Manager::LoadResource(), ProjectManagerUI::OnOpenWith(), MainFrame::Open(), CdbCmd_Watch::ParseOutput(), GdbCmd_Watch::ParseOutput(), CompilerGCC::PrintInvalidCompiler(), PluginManager::ReadExtraFilesFromManifestFile(), PluginManager::ReadManifestFile(), DebuggerManager::RegisterDebugger(), and PluginManager::RegisterPlugin().
      
  | 
  private | 
Definition at line 104 of file logmanager.cpp.
References LogSlot::log.
      
  | 
  inline | 
Definition at line 149 of file logmanager.h.
Referenced by CompilerCommandGenerator::Init(), and CompilerGCC::LogMessage().
Definition at line 141 of file logmanager.h.
References Logger::warning.
Referenced by cbProject::AddBuildTarget(), Wiz::AddWizard(), cbProject::DefineVirtualBuildTarget(), ScriptBindings::gWarningLog(), ScriptingManager::LoadBuffer(), Compiler::LoadDefaultOptions(), Compiler::LoadRegExArray(), CompilerOptionsDlg::OnCopyDirsClick(), CompilerOptionsDlg::OnCopyLibsClick(), CompilerGCC::PreprocessJob(), MainFrame::RunStartupScripts(), and PluginManager::UninstallPlugin().
Definition at line 182 of file logmanager.cpp.
| void LogManager::NotifyUpdate | ( | ) | 
Definition at line 133 of file logmanager.cpp.
References LogSlot::log.
Referenced by MainFrame::OnAddLogWindow(), MainFrame::OnSettingsEnvironment(), and MainFrame::SetupGUILogging().
| void LogManager::Panic | ( | const wxString & | msg, | 
| const wxString & | component = wxEmptyString  | 
        ||
| ) | 
Definition at line 197 of file logmanager.cpp.
References _T, wxString::Append(), LogSlot::title, and wxSafeShowMessage().
Referenced by SharedMemory::SharedMemory(), and SharedMemory::Unlock().
| void LogManager::Register | ( | const wxString & | name, | 
| InstantiatorBase * | ins | ||
| ) | 
Definition at line 192 of file logmanager.cpp.
Definition at line 110 of file logmanager.cpp.
References LogSlot::GetLogger(), and LogSlot::index.
Referenced by CodeBlocksLogEvent::CodeBlocksLogEvent(), DebuggerManager::GetLogger(), CompilerGCC::OnAttach(), CodeBlocksApp::ParseCmdLine(), and MainFrame::SetupGUILogging().
| LogSlot & LogManager::Slot | ( | int | i | ) | 
Definition at line 147 of file logmanager.cpp.
Referenced by CodeBlocksLogEvent::CodeBlocksLogEvent(), DebuggerManager::GetLogger(), CompilerGCC::OnAttach(), and MainFrame::SetupGUILogging().
      
  | 
  friend | 
Definition at line 103 of file logmanager.h.
      
  | 
  friend | 
Definition at line 102 of file logmanager.h.
      
  | 
  private | 
Definition at line 94 of file logmanager.h.
Definition at line 96 of file logmanager.h.
 1.8.13