KiCad PCB EDA Suite
Loading...
Searching...
No Matches
HTML_WINDOW Class Reference

Add dark theme support to wxHtmlWindow. More...

#include <html_window.h>

Inheritance diagram for HTML_WINDOW:
WX_HTML_REPORT_BOX

Public Member Functions

 HTML_WINDOW (wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxHW_DEFAULT_STYLE, const wxString &aName=wxT("htmlWindow"))
 
 ~HTML_WINDOW ()
 
bool SetPage (const wxString &aSource) override
 
bool AppendToPage (const wxString &aSource)
 
void ThemeChanged ()
 
bool ScrollToAnchor (const wxString &aAnchor)
 

Private Types

enum  MENU_ID { ID_COPY_SELECTION = wxID_HIGHEST + 1 , ID_SELECT_ALL }
 

Private Member Functions

void onThemeChanged (wxSysColourChangedEvent &aEvent)
 
void onRightClick (wxMouseEvent &event)
 
void onMenuEvent (wxMenuEvent &event)
 
void onCharHook (wxKeyEvent &aEvent)
 
void doCopySelection ()
 

Private Attributes

wxString m_pageSource
 

Detailed Description

Add dark theme support to wxHtmlWindow.

Definition at line 34 of file html_window.h.

Member Enumeration Documentation

◆ MENU_ID

enum HTML_WINDOW::MENU_ID
private
Enumerator
ID_COPY_SELECTION 
ID_SELECT_ALL 

Definition at line 57 of file html_window.h.

Constructor & Destructor Documentation

◆ HTML_WINDOW()

HTML_WINDOW::HTML_WINDOW ( wxWindow * aParent,
wxWindowID aId = wxID_ANY,
const wxPoint & aPos = wxDefaultPosition,
const wxSize & aSize = wxDefaultSize,
long aStyle = wxHW_DEFAULT_STYLE,
const wxString & aName = wxT( "htmlWindow" ) )

◆ ~HTML_WINDOW()

HTML_WINDOW::~HTML_WINDOW ( )

Definition at line 45 of file html_window.cpp.

References onCharHook(), onMenuEvent(), and onRightClick().

Member Function Documentation

◆ AppendToPage()

bool HTML_WINDOW::AppendToPage ( const wxString & aSource)

Definition at line 73 of file html_window.cpp.

References m_pageSource, and SetPage().

◆ doCopySelection()

void HTML_WINDOW::doCopySelection ( )
private

Definition at line 144 of file html_window.cpp.

Referenced by onCharHook(), and onMenuEvent().

◆ onCharHook()

void HTML_WINDOW::onCharHook ( wxKeyEvent & aEvent)
private

Definition at line 121 of file html_window.cpp.

References doCopySelection().

Referenced by HTML_WINDOW(), and ~HTML_WINDOW().

◆ onMenuEvent()

void HTML_WINDOW::onMenuEvent ( wxMenuEvent & event)
private

Definition at line 112 of file html_window.cpp.

References doCopySelection(), ID_COPY_SELECTION, and ID_SELECT_ALL.

Referenced by HTML_WINDOW(), and ~HTML_WINDOW().

◆ onRightClick()

void HTML_WINDOW::onRightClick ( wxMouseEvent & event)
private

Definition at line 103 of file html_window.cpp.

References _, ID_COPY_SELECTION, and ID_SELECT_ALL.

Referenced by HTML_WINDOW(), and ~HTML_WINDOW().

◆ onThemeChanged()

void HTML_WINDOW::onThemeChanged ( wxSysColourChangedEvent & aEvent)
private

Definition at line 97 of file html_window.cpp.

References ThemeChanged().

Referenced by HTML_WINDOW().

◆ ScrollToAnchor()

bool HTML_WINDOW::ScrollToAnchor ( const wxString & aAnchor)

Definition at line 85 of file html_window.cpp.

References result.

◆ SetPage()

bool HTML_WINDOW::SetPage ( const wxString & aSource)
override

◆ ThemeChanged()

void HTML_WINDOW::ThemeChanged ( )

Definition at line 79 of file html_window.cpp.

References m_pageSource, and SetPage().

Referenced by onThemeChanged().

Member Data Documentation

◆ m_pageSource

wxString HTML_WINDOW::m_pageSource
private

Definition at line 69 of file html_window.h.

Referenced by AppendToPage(), SetPage(), and ThemeChanged().


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