|
Code::Blocks
SVN r11506
|
a logger which prints messages to a wxListCtrl More...
#include <loggers.h>
Classes | |
| struct | ListStyles |
Public Member Functions | |
| ListCtrlLogger (const wxArrayString &titles, const wxArrayInt &widths, bool fixedPitchFont=false) | |
| ~ListCtrlLogger () override | |
| void | CopyContentsToClipboard (bool selectionOnly=false) override |
| void | UpdateSettings () override |
| void | Append (const wxString &msg, Logger::level lv=info) override |
| virtual void | Append (const wxArrayString &colValues, Logger::level lv=info, int autoSize=-1) |
| virtual size_t | GetItemsCount () const |
| void | Clear () override |
| wxWindow * | CreateControl (wxWindow *parent) override |
| bool | HasFeature (Feature::Enum feature) const override |
| virtual void | AutoFitColumns (int column) |
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 | GetWrapMode () const |
| virtual bool | HasFeature (cb_optional Feature::Enum feature) const |
| virtual void | AppendAdditionalMenuItems (cb_optional wxMenu &menu) |
Protected Member Functions | |
| wxString | GetItemAsText (long item) const |
Protected Attributes | |
| wxListCtrl * | control |
| bool | fixed |
| wxArrayString | titles |
| wxArrayInt | widths |
| ListStyles | 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 wxListCtrl
| struct ListCtrlLogger::ListStyles |
| ListCtrlLogger::ListCtrlLogger | ( | const wxArrayString & | titles, |
| const wxArrayInt & | widths, | ||
| bool | fixedPitchFont = false |
||
| ) |
Definition at line 247 of file loggers.cpp.
References cbAssert, wxArrayString::GetCount(), titles, and widths.
|
override |
Definition at line 256 of file loggers.cpp.
References control.
|
overridevirtual |
Implements Logger.
Definition at line 363 of file loggers.cpp.
References control, wxListCtrl::GetItemCount(), wxListCtrl::InsertItem(), wxListCtrl::SetItemFont(), wxListCtrl::SetItemTextColour(), and style.
Referenced by Append(), CodeRefactoring::DoFindReferences(), and FindReplace::LogSearch().
|
virtual |
Definition at line 377 of file loggers.cpp.
References Append(), AutoFitColumns(), control, wxArrayString::GetCount(), wxListCtrl::GetItemCount(), wxListCtrl::SetItem(), and titles.
|
virtual |
Reimplemented in CompilerMessages.
Definition at line 430 of file loggers.cpp.
References control, wxListCtrl::SetColumnWidth(), and wxLIST_AUTOSIZE.
Referenced by Append().
|
overridevirtual |
Reimplemented from Logger.
Definition at line 399 of file loggers.cpp.
References control, and wxListCtrl::DeleteAllItems().
Referenced by CodeRefactoring::DoFindReferences(), and FindReplace::FindInFiles().
|
override |
Definition at line 261 of file loggers.cpp.
References _T, control, GetItemAsText(), wxListCtrl::GetItemCount(), wxListCtrl::GetNextItem(), wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED, and wxTheClipboard.
Definition at line 405 of file loggers.cpp.
References control, wxArrayString::GetCount(), wxListCtrl::InsertColumn(), titles, widths, wxDefaultPosition, wxDefaultSize, wxLC_REPORT, wxLC_SINGLE_SEL, and wxLIST_FORMAT_LEFT.
Referenced by cbSearchResultsLog::CreateControl(), CompilerMessages::CreateControl(), and cbSearchResultsLog::SetBasePath().
|
protected |
Definition at line 288 of file loggers.cpp.
References _T, control, wxArrayString::GetCount(), wxListCtrl::GetItem(), titles, wxEmptyString, and wxLIST_MASK_TEXT.
Referenced by CopyContentsToClipboard().
|
virtual |
Definition at line 394 of file loggers.cpp.
References control, and wxListCtrl::GetItemCount().
Referenced by FindReplace::FindInFiles().
|
override |
Definition at line 417 of file loggers.cpp.
References Logger::Feature::CanClear, and Logger::Feature::CanCopy.
Referenced by CompilerMessages::HasFeature().
|
overridevirtual |
Reimplemented from Logger.
Definition at line 308 of file loggers.cpp.
References _T, Logger::caption, ListCtrlLogger::ListStyles::colour, control, Logger::critical, Logger::error, Logger::failure, fixed, ListCtrlLogger::ListStyles::font, Manager::Get(), wxSystemSettings::GetColour(), ColourManager::GetColour(), Manager::GetColourManager(), Manager::GetConfigManager(), wxListCtrl::GetItemCount(), wxListCtrl::GetItemFont(), Logger::num_levels, Logger::pagetitle, ConfigManager::ReadInt(), wxListCtrl::SetItemFont(), wxFont::SetPointSize(), wxFont::SetStyle(), wxFont::SetWeight(), Logger::spacer, style, Logger::success, Logger::warning, wxFONTFAMILY_DEFAULT, wxFONTFAMILY_MODERN, wxFONTSTYLE_ITALIC, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, wxFONTWEIGHT_NORMAL, wxSYS_COLOUR_WINDOWTEXT, and wxT.
|
protected |
Definition at line 124 of file loggers.h.
Referenced by Append(), AutoFitColumns(), Clear(), CopyContentsToClipboard(), cbSearchResultsLog::CreateControl(), CompilerMessages::CreateControl(), CreateControl(), CompilerMessages::FitColumns(), cbSearchResultsLog::FocusEntry(), CompilerMessages::FocusError(), GetItemAsText(), GetItemsCount(), CompilerMessages::OnClick(), cbSearchResultsLog::OnDoubleClick(), cbSearchResultsLog::SyncEditor(), UpdateSettings(), and ~ListCtrlLogger().
|
protected |
Definition at line 125 of file loggers.h.
Referenced by UpdateSettings().
|
protected |
Definition at line 134 of file loggers.h.
Referenced by Append(), and UpdateSettings().
|
protected |
Definition at line 126 of file loggers.h.
Referenced by Append(), CreateControl(), GetItemAsText(), and ListCtrlLogger().
|
protected |
Definition at line 127 of file loggers.h.
Referenced by CreateControl(), and ListCtrlLogger().
1.8.13