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

Event used to request from the main app to add a log. More...

#include <sdk_events.h>

Inheritance diagram for CodeBlocksLogEvent:
Collaboration diagram for CodeBlocksLogEvent:

Public Member Functions

 CodeBlocksLogEvent (wxEventType commandType=wxEVT_NULL, Logger *logger=nullptr, const wxString &title=wxEmptyString, wxBitmap *icon=nullptr)
 
 CodeBlocksLogEvent (wxEventType commandType, wxWindow *window, const wxString &title=wxEmptyString, wxBitmap *icon=nullptr)
 
 CodeBlocksLogEvent (wxEventType commandType, int logIndex, const wxString &title=wxEmptyString, wxBitmap *icon=nullptr)
 
 CodeBlocksLogEvent (const CodeBlocksLogEvent &rhs)
 
wxEventClone () const override
 

Public Attributes

Loggerlogger
 The logger. More...
 
int logIndex
 The logger's index. More...
 
wxBitmapicon
 The logger's icon. Valid only for cbEVT_ADD_LOG_WINDOW. More...
 
wxString title
 The logger's title. Valid only for cbEVT_ADD_LOG_WINDOW. More...
 
wxWindowwindow
 A non-logger window. Needed at least by cbEVT_REMOVE_LOG_WINDOW. More...
 

Detailed Description

Event used to request from the main app to add a log.

Note
By adding a Logger*, the app takes ownership of it in cbEVT_ADD_LOG_WINDOW. By adding a wxWindow*, the ownership is not touched and you should delete the window after calling cbEVT_REMOVE_LOG_WINDOW for it.

Definition at line 182 of file sdk_events.h.

Constructor & Destructor Documentation

◆ CodeBlocksLogEvent() [1/4]

CodeBlocksLogEvent::CodeBlocksLogEvent ( wxEventType  commandType = wxEVT_NULL,
Logger logger = nullptr,
const wxString title = wxEmptyString,
wxBitmap icon = nullptr 
)

◆ CodeBlocksLogEvent() [2/4]

CodeBlocksLogEvent::CodeBlocksLogEvent ( wxEventType  commandType,
wxWindow window,
const wxString title = wxEmptyString,
wxBitmap icon = nullptr 
)

Definition at line 55 of file sdk_events.cpp.

References wxID_ANY.

◆ CodeBlocksLogEvent() [3/4]

CodeBlocksLogEvent::CodeBlocksLogEvent ( wxEventType  commandType,
int  logIndex,
const wxString title = wxEmptyString,
wxBitmap icon = nullptr 
)

◆ CodeBlocksLogEvent() [4/4]

CodeBlocksLogEvent::CodeBlocksLogEvent ( const CodeBlocksLogEvent rhs)

Definition at line 61 of file sdk_events.cpp.

References wxID_ANY.

Member Function Documentation

◆ Clone()

wxEvent* CodeBlocksLogEvent::Clone ( ) const
inlineoverride

Definition at line 190 of file sdk_events.h.

Member Data Documentation

◆ icon

wxBitmap* CodeBlocksLogEvent::icon

The logger's icon. Valid only for cbEVT_ADD_LOG_WINDOW.

Definition at line 194 of file sdk_events.h.

Referenced by MainFrame::OnAddLogWindow().

◆ logger

Logger* CodeBlocksLogEvent::logger

◆ logIndex

int CodeBlocksLogEvent::logIndex

The logger's index.

Definition at line 193 of file sdk_events.h.

Referenced by CodeBlocksLogEvent().

◆ title

wxString CodeBlocksLogEvent::title

The logger's title. Valid only for cbEVT_ADD_LOG_WINDOW.

Definition at line 195 of file sdk_events.h.

Referenced by MainFrame::OnAddLogWindow().

◆ window

wxWindow* CodeBlocksLogEvent::window

A non-logger window. Needed at least by cbEVT_REMOVE_LOG_WINDOW.

Definition at line 196 of file sdk_events.h.

Referenced by MainFrame::OnHideLogWindow(), MainFrame::OnRemoveLogWindow(), and MainFrame::OnSwitchToLogWindow().


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