2020-09-22 23:16:02 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2023-03-09 11:25:32 +00:00
|
|
|
* Copyright (C) 2020-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
2020-09-22 23:16:02 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, you may find one here:
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
* or you may write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2023-03-09 17:41:18 +00:00
|
|
|
#ifndef DIALOG_BOOK_REPORTER_H
|
|
|
|
#define DIALOG_BOOK_REPORTER_H
|
2020-09-22 23:16:02 +00:00
|
|
|
|
2023-03-09 17:41:18 +00:00
|
|
|
#include <dialogs/dialog_book_reporter_base.h>
|
2020-09-22 23:16:02 +00:00
|
|
|
|
2023-03-09 11:25:32 +00:00
|
|
|
class KIWAY_PLAYER;
|
2020-09-22 23:16:02 +00:00
|
|
|
class WX_HTML_REPORT_BOX;
|
2021-06-03 11:49:49 +00:00
|
|
|
class wxHtmlLinkEvent;
|
2020-09-22 23:16:02 +00:00
|
|
|
|
2023-03-13 16:03:48 +00:00
|
|
|
/**
|
|
|
|
* Event sent to parent when dialog is mode-less.
|
|
|
|
*/
|
|
|
|
wxDECLARE_EVENT( EDA_EVT_CLOSE_DIALOG_BOOK_REPORTER, wxCommandEvent );
|
|
|
|
|
2023-03-09 17:41:18 +00:00
|
|
|
class DIALOG_BOOK_REPORTER : public DIALOG_BOOK_REPORTER_BASE
|
2020-09-22 23:16:02 +00:00
|
|
|
{
|
|
|
|
public:
|
2023-03-13 16:03:48 +00:00
|
|
|
DIALOG_BOOK_REPORTER( KIWAY_PLAYER* aParent, const wxString& aName,
|
2023-03-11 19:35:13 +00:00
|
|
|
const wxString& aDialogTitle );
|
2020-09-22 23:16:02 +00:00
|
|
|
|
2023-03-13 16:03:48 +00:00
|
|
|
void OnClose( wxCloseEvent& aEvent ) override;
|
2021-03-22 20:06:05 +00:00
|
|
|
|
2023-03-09 17:41:18 +00:00
|
|
|
void OnErrorLinkClicked( wxHtmlLinkEvent& aEvent );
|
2020-10-16 23:15:44 +00:00
|
|
|
|
2020-09-22 23:16:02 +00:00
|
|
|
void DeleteAllPages();
|
2021-08-17 14:37:33 +00:00
|
|
|
|
2023-03-09 17:41:18 +00:00
|
|
|
WX_HTML_REPORT_BOX* AddHTMLPage( const wxString& aTitle );
|
|
|
|
|
|
|
|
wxPanel* AddBlankPage( const wxString& aTitle );
|
2020-09-22 23:16:02 +00:00
|
|
|
|
2021-08-17 14:37:33 +00:00
|
|
|
int GetPageCount() const;
|
|
|
|
|
2020-09-22 23:16:02 +00:00
|
|
|
protected:
|
2023-03-09 11:25:32 +00:00
|
|
|
KIWAY_PLAYER* m_frame;
|
2020-09-22 23:16:02 +00:00
|
|
|
};
|
|
|
|
|
2023-03-09 17:41:18 +00:00
|
|
|
#endif // DIALOG_BOOK_REPORTER_H
|