KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_odbpp.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 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef ODBPP_EXPORT_DIALOG_H
21#define ODBPP_EXPORT_DIALOG_H
23
24class PCB_EDIT_FRAME;
25
27{
28public:
30
31 wxString GetOutputPath() const { return m_outputFileName->GetValue(); }
32
33 wxString GetUnitsString() const
34 {
35 if( m_choiceUnits->GetSelection() == 0 )
36 return wxT( "mm" );
37 else
38 return wxT( "inch" );
39 }
40
41 wxString GetPrecision() const { return wxString::Format( "%d", m_precision->GetValue() ); }
42
43
44 bool GetCompress() const { return m_cbCompress->GetValue(); }
45
46private:
47 void onBrowseClicked( wxCommandEvent& event ) override;
48 void onOKClick( wxCommandEvent& event ) override;
49
50 bool Init();
51 bool TransferDataFromWindow() override;
52
54};
55
56#endif // ODBPP_EXPORT_DIALOG_H
Class DIALOG_EXPORT_ODBPP_BASE.
bool TransferDataFromWindow() override
void onBrowseClicked(wxCommandEvent &event) override
wxString GetOutputPath() const
wxString GetPrecision() const
PCB_EDIT_FRAME * m_parent
wxString GetUnitsString() const
void onOKClick(wxCommandEvent &event) override
The main frame for Pcbnew.