34 const wxString& aTitle ) :
52 m_frame->ExecuteRemoteCommand( aEvent.GetLinkInfo().GetHref().ToStdString().c_str() );
58 wxPanel* panel =
new wxPanel(
m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize,
60 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
64 wxHW_SCROLLBAR_AUTO | wxBORDER_SIMPLE );
66 sizer->Add( reporter, 1, wxEXPAND | wxALL, 5 );
67 panel->SetSizer( sizer );
72 reporter->Connect( wxEVT_COMMAND_HTML_LINK_CLICKED,
82 wxPanel* panel =
new wxPanel(
m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize,
101 wxCommandEvent* evt =
new wxCommandEvent( EDA_EVT_CLOSE_DIALOG_BOOK_REPORTER, wxID_ANY );
103 evt->SetEventObject(
this );
104 evt->SetString( GetName() );
105 wxWindow* parent = GetParent();
108 wxQueueEvent( parent, evt );
DIALOG_BOOK_REPORTER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Report"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void OnErrorLinkClicked(wxHtmlLinkEvent &aEvent)
void OnClose(wxCloseEvent &aEvent) override
DIALOG_BOOK_REPORTER(KIWAY_PLAYER *aParent, const wxString &aName, const wxString &aDialogTitle)
wxPanel * AddBlankPage(const wxString &aTitle)
WX_HTML_REPORT_BOX * AddHTMLPage(const wxString &aTitle)
void SetupStandardButtons(std::map< int, wxString > aLabels={})
bool IsQuasiModal() const
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
A slimmed down version of WX_HTML_REPORT_PANEL.
void SetUnits(EDA_UNITS aUnits)
wxDEFINE_EVENT(EDA_EVT_CLOSE_DIALOG_BOOK_REPORTER, wxCommandEvent)