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