2019-06-19 07:18:30 -07:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KICAD, a free EDA CAD application.
|
|
|
|
*
|
2025-01-01 13:30:11 -08:00
|
|
|
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
|
2019-06-19 07:18:30 -07: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
|
|
|
|
*/
|
|
|
|
#ifndef BITMOP2CMP_GUI_H_
|
|
|
|
#define BITMOP2CMP_GUI_H_
|
|
|
|
|
2023-06-15 17:38:43 +01:00
|
|
|
#include <kiway_player.h>
|
|
|
|
#include <bitmap2cmp_frame.h>
|
2019-06-19 07:18:30 -07:00
|
|
|
|
2020-10-25 15:00:05 -04:00
|
|
|
#include <eda_units.h>
|
2019-06-19 07:18:30 -07:00
|
|
|
#include <potracelib.h>
|
|
|
|
|
2023-06-15 17:38:43 +01:00
|
|
|
class BITMAP2CMP_PANEL;
|
2019-06-19 07:18:30 -07:00
|
|
|
|
2023-06-15 17:38:43 +01:00
|
|
|
class BITMAP2CMP_FRAME : public KIWAY_PLAYER
|
2019-06-19 07:18:30 -07:00
|
|
|
{
|
|
|
|
public:
|
2023-06-15 17:38:43 +01:00
|
|
|
BITMAP2CMP_FRAME( KIWAY* aKiway, wxWindow* aParent );
|
|
|
|
~BITMAP2CMP_FRAME();
|
2019-06-19 07:18:30 -07:00
|
|
|
|
|
|
|
// overload KIWAY_PLAYER virtual
|
|
|
|
bool OpenProjectFiles( const std::vector<wxString>& aFilenames, int aCtl = 0 ) override;
|
|
|
|
|
2023-06-16 15:29:31 +01:00
|
|
|
void OnLoadFile();
|
2019-06-19 07:18:30 -07:00
|
|
|
|
2023-10-21 20:40:04 +01:00
|
|
|
void OnFileHistory( wxCommandEvent& event );
|
|
|
|
void OnClearFileHistory( wxCommandEvent& event );
|
|
|
|
|
2019-06-19 07:18:30 -07:00
|
|
|
/**
|
|
|
|
* Generate a schematic library which contains one component:
|
|
|
|
* the logo
|
|
|
|
*/
|
2023-06-15 17:38:43 +01:00
|
|
|
void ExportEeschemaFormat();
|
2019-06-19 07:18:30 -07:00
|
|
|
|
|
|
|
/**
|
2020-11-14 22:00:12 +00:00
|
|
|
* Generate a footprint in S expr format
|
2019-06-19 07:18:30 -07:00
|
|
|
*/
|
2023-06-15 17:38:43 +01:00
|
|
|
void ExportPcbnewFormat();
|
2019-06-19 07:18:30 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Generate a postscript file
|
|
|
|
*/
|
2023-06-15 17:38:43 +01:00
|
|
|
void ExportPostScriptFormat();
|
2019-06-19 07:18:30 -07:00
|
|
|
|
|
|
|
/**
|
2021-05-30 23:56:24 +01:00
|
|
|
* Generate a file suitable to be copied into a drawing sheet (.kicad_wks) file
|
2019-06-19 07:18:30 -07:00
|
|
|
*/
|
2023-10-23 18:01:04 +01:00
|
|
|
void ExportDrawingSheetFormat();
|
2019-06-19 07:18:30 -07:00
|
|
|
|
2023-06-16 15:29:31 +01:00
|
|
|
void UpdateTitle();
|
|
|
|
void ShowChangedLanguage() override;
|
|
|
|
|
2020-01-12 20:44:19 -05:00
|
|
|
void LoadSettings( APP_SETTINGS_BASE* aCfg ) override;
|
|
|
|
void SaveSettings( APP_SETTINGS_BASE* aCfg ) override;
|
2019-06-19 07:18:30 -07:00
|
|
|
|
2020-03-24 01:01:23 +00:00
|
|
|
wxWindow* GetToolCanvas() const override;
|
|
|
|
|
2023-06-28 08:56:40 +02:00
|
|
|
/**
|
|
|
|
* Event handler for the wxID_EXIT and wxID_CLOSE events.
|
|
|
|
*/
|
|
|
|
void OnExit( wxCommandEvent& aEvent );
|
|
|
|
|
2022-12-16 16:37:32 -05:00
|
|
|
protected:
|
|
|
|
void doReCreateMenuBar() override;
|
2022-11-19 19:39:32 +00:00
|
|
|
|
2023-06-28 08:56:40 +02:00
|
|
|
DECLARE_EVENT_TABLE();
|
|
|
|
|
2019-06-19 07:18:30 -07:00
|
|
|
private:
|
2023-06-15 17:38:43 +01:00
|
|
|
BITMAP2CMP_PANEL* m_panel;
|
|
|
|
wxStatusBar* m_statusBar;
|
|
|
|
|
2025-01-18 12:01:28 +00:00
|
|
|
wxString m_srcFileName;
|
|
|
|
wxString m_outFileName;
|
2019-06-19 07:18:30 -07:00
|
|
|
};
|
2023-06-16 15:29:31 +01:00
|
|
|
|
2019-06-19 07:18:30 -07:00
|
|
|
#endif// BITMOP2CMP_GUI_H_
|