2018-09-20 09:05:52 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016
|
2021-01-27 22:15:38 +00:00
|
|
|
* Copyright (C) 2021 KiCad Developers, see AUTHORS.txt for contributors.
|
2018-09-20 09:05:52 +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 3
|
|
|
|
* 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-3.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
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file panel_kicad2step.h
|
2021-01-27 22:15:38 +00:00
|
|
|
* Declare the main PCB object.
|
2018-09-20 09:05:52 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PANEL_KICAD2STEP_H
|
|
|
|
#define PANEL_KICAD2STEP_H
|
|
|
|
|
|
|
|
#include <wx/sizer.h>
|
|
|
|
#include <wx/textctrl.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
|
2021-09-11 16:40:20 +00:00
|
|
|
#include "kicad2step.h"
|
2018-09-20 09:05:52 +00:00
|
|
|
|
|
|
|
class PANEL_KICAD2STEP: public wxPanel
|
|
|
|
{
|
|
|
|
public:
|
2021-04-04 06:48:02 +00:00
|
|
|
PANEL_KICAD2STEP( wxWindow* parent, wxWindowID id = wxID_ANY,
|
2021-01-27 22:15:38 +00:00
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxSize( 500,300 ),
|
2018-09-20 09:05:52 +00:00
|
|
|
long style = wxTAB_TRAVERSAL );
|
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
/**
|
|
|
|
* Run the KiCad to STEP converter.
|
2018-09-20 09:05:52 +00:00
|
|
|
*/
|
|
|
|
int RunConverter();
|
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
/**
|
|
|
|
* Add a message to m_tcMessages.
|
2018-09-20 09:05:52 +00:00
|
|
|
*/
|
|
|
|
void AppendMessage( const wxString& aMessage );
|
|
|
|
|
|
|
|
KICAD2MCAD_PRMS m_params;
|
|
|
|
|
2021-11-20 17:12:15 +00:00
|
|
|
bool m_error;
|
|
|
|
bool m_fail;
|
|
|
|
|
2018-09-20 09:05:52 +00:00
|
|
|
private:
|
|
|
|
wxTextCtrl* m_tcMessages;
|
|
|
|
};
|
|
|
|
|
2021-01-27 22:15:38 +00:00
|
|
|
#endif // #ifndef PANEL_KICAD2STEP_H
|