KiCad PCB EDA Suite
Loading...
Searching...
No Matches
bitmap2cmp_frame.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KICAD, a free EDA CAD application.
3 *
4 * Copyright (C) 2019-2023 Kicad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23#ifndef BITMOP2CMP_GUI_H_
24#define BITMOP2CMP_GUI_H_
25
26#include <kiway_player.h>
27#include <bitmap2cmp_frame.h>
28
29#include <eda_units.h>
30#include <potracelib.h>
31
33
35{
36public:
37 BITMAP2CMP_FRAME( KIWAY* aKiway, wxWindow* aParent );
39
40 // overload KIWAY_PLAYER virtual
41 bool OpenProjectFiles( const std::vector<wxString>& aFilenames, int aCtl = 0 ) override;
42
43 void OnLoadFile();
44
45 void OnFileHistory( wxCommandEvent& event );
46 void OnClearFileHistory( wxCommandEvent& event );
47
53
57 void ExportPcbnewFormat();
58
63
68
69 void UpdateTitle();
70 void ShowChangedLanguage() override;
71
72 void LoadSettings( APP_SETTINGS_BASE* aCfg ) override;
73 void SaveSettings( APP_SETTINGS_BASE* aCfg ) override;
74
75 wxWindow* GetToolCanvas() const override;
76
80 void OnExit( wxCommandEvent& aEvent );
81
82protected:
83 void doReCreateMenuBar() override;
84
86
87private:
89 wxStatusBar* m_statusBar;
90
93};
94
95#endif// BITMOP2CMP_GUI_H_
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
Definition: app_settings.h:92
void ExportPcbnewFormat()
Generate a footprint in S expr format.
void ExportDrawingSheetFormat()
Generate a file suitable to be copied into a drawing sheet (.kicad_wks) file.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
void ExportEeschemaFormat()
Generate a schematic library which contains one component: the logo.
wxStatusBar * m_statusBar
void OnExit(wxCommandEvent &aEvent)
Event handler for the wxID_EXIT and wxID_CLOSE events.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
void OnFileHistory(wxCommandEvent &event)
wxString m_convertedFileName
void doReCreateMenuBar() override
wxString m_bitmapFileName
wxWindow * GetToolCanvas() const override
Canvas access.
void ExportPostScriptFormat()
Generate a postscript file.
BITMAP2CMP_PANEL * m_panel
bool OpenProjectFiles(const std::vector< wxString > &aFilenames, int aCtl=0) override
Open a project or set of files given by aFileList.
void OnClearFileHistory(wxCommandEvent &event)
void ShowChangedLanguage() override
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
Definition: kiway_player.h:65
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
Definition: kiway.h:284