KiCad PCB EDA Suite
dialog_regulator_form.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) 1992-2011 jean-pierre.charras
5 * Copyright (C) 1992-2021 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 3
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU 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
25#ifndef DIALOG_REGULATOR_FORM_H
26#define DIALOG_REGULATOR_FORM_H
27
29
30class PANEL_REGULATOR;
31class REGULATOR_DATA;
32
33
40{
41public:
42 DIALOG_REGULATOR_FORM( PANEL_REGULATOR* parent, const wxString& aRegName );
43
45
49 bool TransferDataFromWindow() override;
50
57
64
68 void UpdateDialog();
69
73 void OnRegTypeSelection( wxCommandEvent& event ) override
74 {
76 }
77};
78
79#endif // DIALOG_REGULATOR_FORM_H
Class DIALOG_REGULATOR_FORM_BASE.
Subclass of DIALOG_REGULATOR_FORM_BASE, which is generated by wxFormBuilder.
void UpdateDialog()
Enable/disable Iadj related widgets, according to the regulator type.
REGULATOR_DATA * BuildRegulatorFromData()
Create a new REGULATOR_DATA from dialog data.
void CopyRegulatorDataToDialog(REGULATOR_DATA *aItem)
Transfer data from dialog to aItem.
DIALOG_REGULATOR_FORM(PANEL_REGULATOR *parent, const wxString &aRegName)
bool TransferDataFromWindow() override
void OnRegTypeSelection(wxCommandEvent &event) override
Called when the current regulator type is changed.