KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
job_export_pcb_gencad.cpp
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) 2024 Julie Vairai <j.vairai@hexa-h.com>
5 * Copyright The 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
22#include <jobs/job_registry.h>
23#include <i18n_utility.h>
24
25
27 JOB( "gencad", false ),
28 m_flipBottomPads( false ),
29 m_useIndividualShapes( false ),
30 m_storeOriginCoords( false ),
31 m_useDrillOrigin( false ),
32 m_useUniquePins( false )
33{
34 m_params.emplace_back(
35 new JOB_PARAM<bool>( "flip_bottom_pads", &m_flipBottomPads, m_flipBottomPads ) );
36 m_params.emplace_back( new JOB_PARAM<bool>( "use_individual_shapes", &m_useIndividualShapes,
38 m_params.emplace_back( new JOB_PARAM<bool>( "store_origin_coords", &m_storeOriginCoords,
40 m_params.emplace_back(
41 new JOB_PARAM<bool>( "use_drill_origin", &m_useDrillOrigin, m_useDrillOrigin ) );
42 m_params.emplace_back(
43 new JOB_PARAM<bool>( "use_unique_pins", &m_useUniquePins, m_useUniquePins ) );
44}
45
46
48{
49 return _( "Export GenCAD File" );
50}
51
52
54{
55 return _( "Export GenCAD Job Settings" );
56}
57
58
59REGISTER_JOB( pcb_export_gencad, _HKI( "PCB: Export GenCAD" ), KIWAY::FACE_PCB,
wxString GetSettingsDialogTitle() const override
wxString GetDefaultDescription() const override
Definition: job.h:50
An simple container class that lets us dispatch output jobs to kifaces.
Definition: job.h:182
std::vector< JOB_PARAM_BASE * > m_params
Definition: job.h:261
@ FACE_PCB
pcbnew DSO
Definition: kiway.h:293
#define _HKI(x)
#define _(s)
Some functions to handle hotkeys in KiCad.
#define REGISTER_JOB(job_name, title, face, T)
Definition: job_registry.h:64