KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_bom_presets.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) 2023 Mike Williams <[email protected]>
5 * Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef PANEL_EESCHEMA_BOM_PRESETS_H
22#define PANEL_EESCHEMA_BOM_PRESETS_H
23
25#include <schematic_settings.h>
26
27class SCH_EDIT_FRAME;
28
29
31{
32public:
33 PANEL_BOM_PRESETS( wxWindow* aWindow, SCHEMATIC_SETTINGS& aSettings );
34
37
38protected:
39 void OnDeleteBomPreset( wxCommandEvent& event ) override;
40 void OnDeleteBomFmtPreset( wxCommandEvent& event ) override;
41
42private:
43 bool TransferDataToWindow() override;
44 bool TransferDataFromWindow() override;
45 void BuildGrid();
46
47protected:
49 std::vector<BOM_PRESET> m_bomPresets;
50 std::vector<BOM_FMT_PRESET> m_bomFmtPresets;
51};
52
53
54#endif //PANEL_EESCHEMA_DEFUALT_FIELDS_H
Class PANEL_BOM_PRESETS_BASE.
std::vector< BOM_FMT_PRESET > m_bomFmtPresets
std::vector< BOM_PRESET > m_bomPresets
void OnDeleteBomFmtPreset(wxCommandEvent &event) override
bool TransferDataFromWindow() override
bool TransferDataToWindow() override
void ImportBomFmtPresetsFrom(SCHEMATIC_SETTINGS &aSettings)
void ImportBomPresetsFrom(SCHEMATIC_SETTINGS &aSettings)
SCHEMATIC_SETTINGS & m_settings
void OnDeleteBomPreset(wxCommandEvent &event) override
These settings were stored in SCH_BASE_FRAME previously.
Schematic editor (Eeschema) main window.