34 const wxString& aTitle ) :
53 m_frame->ExecuteRemoteCommand( aEvent.GetLinkInfo().GetHref().ToStdString().c_str() );
59 wxPanel* panel =
new wxPanel(
m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize,
61 wxBoxSizer* sizer =
new wxBoxSizer( wxVERTICAL );
65 wxHW_SCROLLBAR_AUTO | wxBORDER_SIMPLE );
67 sizer->Add( reporter, 1, wxEXPAND | wxALL, 5 );
68 panel->SetSizer( sizer );
73 reporter->Connect( wxEVT_COMMAND_HTML_LINK_CLICKED,
83 wxPanel* panel =
new wxPanel(
m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize,
102 wxCommandEvent* evt =
new wxCommandEvent( EDA_EVT_CLOSE_DIALOG_BOOK_REPORTER, aEvent.GetId() );
104 evt->SetEventObject(
this );
105 evt->SetString( GetName() );
106 wxWindow* parent = GetParent();
109 wxQueueEvent( parent, evt );
118 wxCloseEvent closeEvent;
126 wxCloseEvent closeEvent;
wxButton * m_sdbSizerApply
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 OnOK(wxCommandEvent &event) override
void OnClose(wxCloseEvent &aEvent) override
void OnApply(wxCommandEvent &event) 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)