KiCad PCB EDA Suite
Loading...
Searching...
No Matches
command_pcb_export_base.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) 2022 Mark Roszko <[email protected]>
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
21#ifndef COMMAND_EXPORT_PCB_BASE_H
22#define COMMAND_EXPORT_PCB_BASE_H
23
24#include "command.h"
25
26namespace CLI
27{
28#define ARG_BLACKANDWHITE "--black-and-white"
29#define ARG_BLACKANDWHITE_DESC "Black and white only"
30
31#define ARG_SKETCH_PADS_ON_FAB_LAYERS "--sketch-pads-on-fab-layers"
32#define ARG_SKETCH_PADS_ON_FAB_LAYERS_DESC "Draw pad outlines and their numbers on front and back fab layers"
33
34#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS "--hide-DNP-footprints-on-fab-layers"
35#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS_DESC "Don't plot text & graphics of DNP footprints on fab layers"
36#define ARG_SKETCH_DNP_FPS_ON_FAB_LAYERS "--sketch-DNP-footprints-on-fab-layers"
37#define ARG_SKETCH_DNP_FPS_ON_FAB_LAYERS_DESC "Plot graphics of DNP footprints in sketch mode on fab layers"
38#define ARG_CROSSOUT_DNP_FPS_ON_FAB_LAYERS "--crossout-DNP-footprints-on-fab-layers"
39#define ARG_CROSSOUT_DNP_FPS_ON_FAB_LAYERS_DESC "Plot an 'X' over the courtyard of DNP footprints on fab layers, and strikeout their reference designators"
40
41#define ARG_DRILL_SHAPE_OPTION "--drill-shape-opt"
42#define ARG_DRILL_SHAPE_OPTION_DESC "Set pad/via drill shape option (0 = no shape, 1 = small shape, 2 = actual shape)"
43
44#define ARG_NEGATIVE "--negative"
45#define ARG_NEGATIVE_SHORT "-n"
46#define ARG_NEGATIVE_DESC "Plot as negative (useful for directly etching from the export)"
47
48#define ARG_LAYERS "--layers"
49#define ARG_EXCLUDE_REFDES "--exclude-refdes"
50#define ARG_EXCLUDE_VALUE "--exclude-value"
51#define ARG_THEME "--theme"
52#define ARG_INCLUDE_BORDER_TITLE "--include-border-title"
53#define ARG_SUBTRACT_SOLDERMASK "--subtract-soldermask"
54#define ARG_MIRROR "--mirror"
55
56#define DEPRECATED_ARG_PLOT_INVISIBLE_TEXT "--plot-invisible-text"
57#define DEPRECATED_ARG_PLOT_INVISIBLE_TEXT_DESC "Deprecated. Has no effect."
58#define DEPRECATED_ARD_PLOT_INVISIBLE_TEXT_WARNING "--plot-invisible-text has been deprecated as of KiCad 9.0.1. It will have no effect."
59
60#define ARG_FLIP_BOTTOM_PADS "--flip-bottom-pads"
61#define ARG_UNIQUE_PINS "--unique-pins"
62#define ARG_UNIQUE_FOOTPRINTS "--unique-footprints"
63#define ARG_USE_DRILL_ORIGIN "--use-drill-origin"
64#define ARG_STORE_ORIGIN_COORD "--store-origin-coord"
65
66#define ARG_COMMON_LAYERS "--common-layers"
67
69{
70 PCB_EXPORT_BASE_COMMAND( const std::string& aName, bool aInputCanBeDir = false,
71 bool aOutputIsDir = false );
72
73protected:
74 void addLayerArg();
75 void addCommonLayersArg();
76};
77} // namespace CLI
78
79#endif
Definition: exit_codes.h:25