Code::Blocks
SVN r11506
|
a logger which prints messages to a wxTextCtrl More...
#include <loggers.h>
Public Member Functions | |
TextCtrlLogger (bool fixedPitchFont=false) | |
~TextCtrlLogger () override | |
void | CopyContentsToClipboard (bool selectionOnly=false) override |
void | UpdateSettings () override |
void | Append (const wxString &msg, Logger::level lv=info) override |
void | Clear () override |
wxWindow * | CreateControl (wxWindow *parent) override |
bool | GetWrapMode () const override |
virtual void | ToggleWrapMode () |
bool | HasFeature (Feature::Enum feature) const override |
Public Member Functions inherited from Logger | |
Logger () | |
virtual | ~Logger () |
virtual void | CopyContentsToClipboard (cb_optional bool selectionOnly=false) |
virtual wxWindow * | CreateControl (cb_optional wxWindow *parent) |
virtual bool | HasFeature (cb_optional Feature::Enum feature) const |
virtual void | AppendAdditionalMenuItems (cb_optional wxMenu &menu) |
Protected Attributes | |
wxTextCtrl * | control |
bool | fixed |
wxTextAttr | style [num_levels] |
Additional Inherited Members | |
Public Types inherited from Logger | |
enum | level { caption, info, warning, success, error, critical, failure, pagetitle, spacer, asterisk } |
enum | { num_levels = asterisk +1 } |
a logger which prints messages to a wxTextCtrl
TextCtrlLogger::TextCtrlLogger | ( | bool | fixedPitchFont = false | ) |
Definition at line 50 of file loggers.cpp.
|
override |
Definition at line 55 of file loggers.cpp.
References control.
|
overridevirtual |
Implements Logger.
Reimplemented in TimestampTextCtrlLogger.
Definition at line 131 of file loggers.cpp.
References _T, Logger::caption, control, Logger::error, Logger::info, Logger::spacer, style, and wxString::wc_str().
|
overridevirtual |
Reimplemented from Logger.
Definition at line 162 of file loggers.cpp.
References control.
Referenced by cbDebuggerPlugin::ClearLog(), and cbDebuggerPlugin::ShowLog().
|
override |
Definition at line 60 of file loggers.cpp.
References control, and wxTheClipboard.
Definition at line 168 of file loggers.cpp.
References control, wxDefaultPosition, wxDefaultSize, wxEmptyString, wxTE_AUTO_URL, wxTE_MULTILINE, wxTE_NOHIDESEL, wxTE_READONLY, and wxTE_RICH.
Referenced by BuildLogger::CreateControl(), and DebugTextCtrlLogger::CreateTextCtrl().
|
overridevirtual |
Reimplemented from Logger.
Definition at line 190 of file loggers.cpp.
References control, and wxTE_DONTWRAP.
|
override |
Definition at line 176 of file loggers.cpp.
References Logger::Feature::CanClear, Logger::Feature::CanCopy, control, and Logger::Feature::IsWrappable.
Referenced by ToggleWrapMode().
|
virtual |
Definition at line 199 of file loggers.cpp.
References control, HasFeature(), Logger::Feature::IsWrappable, wxALIGN_CENTER, wxALIGN_CENTRE, and wxTE_DONTWRAP.
Referenced by InfoPane::OnWrapMode().
|
overridevirtual |
Reimplemented from Logger.
Reimplemented in BuildLogger.
Definition at line 69 of file loggers.cpp.
References _T, Logger::caption, control, Logger::critical, Logger::error, fixed, Manager::Get(), wxSystemSettings::GetColour(), ColourManager::GetColour(), Manager::GetColourManager(), Manager::GetConfigManager(), Logger::num_levels, ConfigManager::ReadInt(), wxFont::SetPointSize(), wxFont::SetStyle(), wxFont::SetUnderlined(), wxFont::SetWeight(), Logger::spacer, style, Logger::success, Logger::warning, wxFONTFAMILY_DEFAULT, wxFONTFAMILY_MODERN, wxFONTSTYLE_ITALIC, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, wxFONTWEIGHT_NORMAL, wxSYS_COLOUR_WINDOW, wxSYS_COLOUR_WINDOWTEXT, wxT, wxTEXT_ALIGNMENT_CENTRE, and wxTEXT_ALIGNMENT_DEFAULT.
Referenced by BuildLogger::UpdateSettings().
|
protected |
Definition at line 94 of file loggers.h.
Referenced by Append(), TimestampTextCtrlLogger::Append(), Clear(), CopyContentsToClipboard(), CreateControl(), GetWrapMode(), HasFeature(), ToggleWrapMode(), UpdateSettings(), and ~TextCtrlLogger().
|
protected |
Definition at line 95 of file loggers.h.
Referenced by UpdateSettings().
|
protected |
Definition at line 96 of file loggers.h.
Referenced by Append(), TimestampTextCtrlLogger::Append(), and UpdateSettings().