KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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-2024 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
28
#include "
dialog_regulator_form_base.h
"
29
30
class
PANEL_REGULATOR
;
31
class
REGULATOR_DATA
;
32
33
39
class
DIALOG_REGULATOR_FORM
:
public
DIALOG_REGULATOR_FORM_BASE
40
{
41
public
:
42
DIALOG_REGULATOR_FORM
( wxWindow* parent,
const
wxString& aRegName );
43
44
~DIALOG_REGULATOR_FORM
();
45
49
bool
TransferDataFromWindow
()
override
;
50
56
void
CopyRegulatorDataToDialog
(
REGULATOR_DATA
* aItem );
57
63
REGULATOR_DATA
*
BuildRegulatorFromData
();
64
68
void
UpdateDialog
();
69
73
void
OnRegTypeSelection
( wxCommandEvent& event )
override
74
{
75
UpdateDialog
();
76
}
77
};
78
79
#endif
// DIALOG_REGULATOR_FORM_H
DIALOG_REGULATOR_FORM_BASE
Class DIALOG_REGULATOR_FORM_BASE.
Definition:
dialog_regulator_form_base.h:33
DIALOG_REGULATOR_FORM
Subclass of DIALOG_REGULATOR_FORM_BASE, which is generated by wxFormBuilder.
Definition:
dialog_regulator_form.h:40
DIALOG_REGULATOR_FORM::UpdateDialog
void UpdateDialog()
Enable/disable Iadj related widgets, according to the regulator type.
Definition:
dialog_regulator_form.cpp:100
DIALOG_REGULATOR_FORM::BuildRegulatorFromData
REGULATOR_DATA * BuildRegulatorFromData()
Create a new REGULATOR_DATA from dialog data.
Definition:
dialog_regulator_form.cpp:132
DIALOG_REGULATOR_FORM::CopyRegulatorDataToDialog
void CopyRegulatorDataToDialog(REGULATOR_DATA *aItem)
Transfer data from dialog to aItem.
Definition:
dialog_regulator_form.cpp:110
DIALOG_REGULATOR_FORM::~DIALOG_REGULATOR_FORM
~DIALOG_REGULATOR_FORM()
Definition:
dialog_regulator_form.cpp:44
DIALOG_REGULATOR_FORM::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition:
dialog_regulator_form.cpp:49
DIALOG_REGULATOR_FORM::OnRegTypeSelection
void OnRegTypeSelection(wxCommandEvent &event) override
Called when the current regulator type is changed.
Definition:
dialog_regulator_form.h:73
PANEL_REGULATOR
Definition:
panel_regulator.h:28
REGULATOR_DATA
Definition:
class_regulator_data.h:41
dialog_regulator_form_base.h
src
pcb_calculator
dialogs
dialog_regulator_form.h
Generated on Fri Nov 22 2024 00:04:55 for KiCad PCB EDA Suite by
1.9.6