Code::Blocks  SVN r11506
Public Member Functions | Protected Attributes | List of all members
TextCtrlLogger Class Reference

a logger which prints messages to a wxTextCtrl More...

#include <loggers.h>

Inheritance diagram for TextCtrlLogger:
Collaboration diagram for TextCtrlLogger:

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
 
wxWindowCreateControl (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 wxWindowCreateControl (cb_optional wxWindow *parent)
 
virtual bool HasFeature (cb_optional Feature::Enum feature) const
 
virtual void AppendAdditionalMenuItems (cb_optional wxMenu &menu)
 

Protected Attributes

wxTextCtrlcontrol
 
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 }
 

Detailed Description

a logger which prints messages to a wxTextCtrl

Definition at line 90 of file loggers.h.

Constructor & Destructor Documentation

◆ TextCtrlLogger()

TextCtrlLogger::TextCtrlLogger ( bool  fixedPitchFont = false)

Definition at line 50 of file loggers.cpp.

◆ ~TextCtrlLogger()

TextCtrlLogger::~TextCtrlLogger ( )
override

Definition at line 55 of file loggers.cpp.

References control.

Member Function Documentation

◆ Append()

void TextCtrlLogger::Append ( const wxString msg,
Logger::level  lv = info 
)
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().

◆ Clear()

void TextCtrlLogger::Clear ( )
overridevirtual

Reimplemented from Logger.

Definition at line 162 of file loggers.cpp.

References control.

Referenced by cbDebuggerPlugin::ClearLog(), and cbDebuggerPlugin::ShowLog().

◆ CopyContentsToClipboard()

void TextCtrlLogger::CopyContentsToClipboard ( bool  selectionOnly = false)
override

Definition at line 60 of file loggers.cpp.

References control, and wxTheClipboard.

◆ CreateControl()

wxWindow * TextCtrlLogger::CreateControl ( wxWindow parent)
override

◆ GetWrapMode()

bool TextCtrlLogger::GetWrapMode ( ) const
overridevirtual

Reimplemented from Logger.

Definition at line 190 of file loggers.cpp.

References control, and wxTE_DONTWRAP.

◆ HasFeature()

bool TextCtrlLogger::HasFeature ( Feature::Enum  feature) const
override

◆ ToggleWrapMode()

void TextCtrlLogger::ToggleWrapMode ( )
virtual

◆ UpdateSettings()

void TextCtrlLogger::UpdateSettings ( )
overridevirtual

Member Data Documentation

◆ control

wxTextCtrl* TextCtrlLogger::control
protected

◆ fixed

bool TextCtrlLogger::fixed
protected

Definition at line 95 of file loggers.h.

Referenced by UpdateSettings().

◆ style

wxTextAttr TextCtrlLogger::style[num_levels]
protected

Definition at line 96 of file loggers.h.

Referenced by Append(), TimestampTextCtrlLogger::Append(), and UpdateSettings().


The documentation for this class was generated from the following files: