|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -1,147 +1,148 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the Kicad Tools Software |
|
3 | 3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS |
|
4 | 4 | -- |
|
5 | 5 | -- This program is free software; you can redistribute it and/or modify |
|
6 | 6 | -- it under the terms of the GNU General Public License as published by |
|
7 | 7 | -- the Free Software Foundation; either version 2 of the License, or |
|
8 | 8 | -- (at your option) any later version. |
|
9 | 9 | -- |
|
10 | 10 | -- This program is distributed in the hope that it will be useful, |
|
11 | 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 | 13 | -- GNU General Public License for more details. |
|
14 | 14 | -- |
|
15 | 15 | -- You should have received a copy of the GNU General Public License |
|
16 | 16 | -- along with this program; if not, write to the Free Software |
|
17 | 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 | 18 | -------------------------------------------------------------------------------*/ |
|
19 | 19 | /*-- Author : Alexis Jeandet |
|
20 | 20 | -- Mail : alexis.jeandet@member.fsf.org |
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 | 22 | const char* add_net_c = "(add_net"; |
|
23 | 23 | const char* area_c = "(area"; |
|
24 | 24 | const char* at_c = "(at"; |
|
25 | 25 | const char* attr_c = "(attr"; |
|
26 | 26 | const char* center_c = "(center"; |
|
27 | 27 | const char* clearance_c = "(clearance"; |
|
28 | 28 | const char* code_c = "(code"; |
|
29 | 29 | const char* component_c = "(component"; |
|
30 | 30 | const char* components_c = "(components"; |
|
31 | 31 | const char* date_c = "(date"; |
|
32 | 32 | const char* design_c = "(design"; |
|
33 | 33 | const char* drawings_c = "(drawings"; |
|
34 | 34 | const char* drillshape_c = "(drillshape"; |
|
35 | 35 | const char* edge_width_c = "(edge_width"; |
|
36 | 36 | const char* effects_c = "(effects"; |
|
37 | 37 | const char* end_c = "(end"; |
|
38 | 38 | const char* excludeedgelayer_c = "(excludeedgelayer"; |
|
39 | 39 | const char* export_c = "(export"; |
|
40 | 40 | const char* field_c = "(field"; |
|
41 | 41 | const char* fields_c = "(fields"; |
|
42 | 42 | const char* font_c = "(font"; |
|
43 | 43 | const char* fp_circle_c = "(fp_circle"; |
|
44 | 44 | const char* fp_line_c = "(fp_line"; |
|
45 | 45 | const char* fp_text_c = "(fp_text"; |
|
46 | 46 | const char* general_c = "(general"; |
|
47 | 47 | const char* host_c = "(host"; |
|
48 | 48 | const char* hpglpendiameter_c = "(hpglpendiameter"; |
|
49 | 49 | const char* hpglpennumber_c = "(hpglpennumber"; |
|
50 | 50 | const char* hpglpenoverlay_c = "(hpglpenoverlay"; |
|
51 | 51 | const char* hpglpenspeed_c = "(hpglpenspeed"; |
|
52 | const char* kicad_pcb_c = "(kicad_pcb"; | |
|
52 | 53 | const char* last_trace_width_c = "(last_trace_width"; |
|
53 | 54 | const char* layers_c = "(layers"; |
|
54 | 55 | const char* layerselection_c = "(layerselection"; |
|
55 | 56 | const char* lib_c = "(lib"; |
|
56 | 57 | const char* libpart_c = "(libpart"; |
|
57 | 58 | const char* libparts_c = "(libparts"; |
|
58 | 59 | const char* libraries_c = "(libraries"; |
|
59 | 60 | const char* library_c = "(library"; |
|
60 | 61 | const char* libsource_c = "(libsource"; |
|
61 | 62 | const char* linewidth_c = "(linewidth"; |
|
62 | 63 | const char* links_c = "(links"; |
|
63 | 64 | const char* logical_c = "(logical"; |
|
64 | 65 | const char* mirror_c = "(mirror"; |
|
65 | 66 | const char* mod_edge_width_c = "(mod_edge_width"; |
|
66 | 67 | const char* mod_text_size_c = "(mod_text_size"; |
|
67 | 68 | const char* mode_c = "(mode"; |
|
68 | 69 | const char* model_c = "(model"; |
|
69 | 70 | const char* module_c = "(module"; |
|
70 | 71 | const char* modules_c = "(modules"; |
|
71 | 72 | const char* name_c = "(name"; |
|
72 | 73 | const char* names_c = "(names"; |
|
73 | 74 | const char* net_c = "(net"; |
|
74 | 75 | const char* net_class_c = "(net_class"; |
|
75 | 76 | const char* nets_c = "(nets"; |
|
76 | 77 | const char* no_connect_c = "(no_connect"; |
|
77 | 78 | const char* node_c = "(node"; |
|
78 | 79 | const char* num_c = "(num"; |
|
79 | 80 | const char* outputdirectory_c = "(outputdirectory"; |
|
80 | 81 | const char* outputformat_c = "(outputformat"; |
|
81 | 82 | const char* pad_c = "(pad"; |
|
82 | 83 | const char* pad_drill_c = "(pad_drill"; |
|
83 | 84 | const char* pad_size_c = "(pad_size"; |
|
84 | 85 | const char* pad_to_mask_clearance_c = "(pad_to_mask_clearance"; |
|
85 | 86 | const char* padsonsilk_c = "(padsonsilk"; |
|
86 | 87 | const char* page_c = "(page"; |
|
87 | 88 | const char* part_c = "(part"; |
|
88 | 89 | const char* path_c = "(path"; |
|
89 | 90 | const char* pcb_text_size_c = "(pcb_text_size"; |
|
90 | 91 | const char* pcb_text_width_c = "(pcb_text_width"; |
|
91 | 92 | const char* pcbplotparams_c = "(pcbplotparams"; |
|
92 | 93 | const char* pin_c = "(pin"; |
|
93 | 94 | const char* pins_c = "(pins"; |
|
94 | 95 | const char* plotframeref_c = "(plotframeref"; |
|
95 | 96 | const char* plotinvisibletext_c = "(plotinvisibletext"; |
|
96 | 97 | const char* plotothertext_c = "(plotothertext"; |
|
97 | 98 | const char* plotreference_c = "(plotreference"; |
|
98 | 99 | const char* plotvalue_c = "(plotvalue"; |
|
99 | 100 | const char* psa4output_c = "(psa4output"; |
|
100 | 101 | const char* psnegative_c = "(psnegative"; |
|
101 | 102 | const char* ref_c = "(ref"; |
|
102 | 103 | const char* rotate = "(rota"; |
|
103 | 104 | const char* scale_c = "(scale"; |
|
104 | 105 | const char* scaleselection_c = "(scaleselection"; |
|
105 | 106 | const char* segment_width_c = "(segment_width"; |
|
106 | 107 | const char* setup_c = "(setup"; |
|
107 | 108 | const char* sheetpath_c = "(sheetpath"; |
|
108 | 109 | const char* source_c = "(source"; |
|
109 | 110 | const char* start_c = "(start"; |
|
110 | 111 | const char* subtractmaskfromsilk_c = "(subtractmaskfromsilk"; |
|
111 | 112 | const char* tags_c = "(tags"; |
|
112 | 113 | const char* tedit_c = "(tedit"; |
|
113 | 114 | const char* thickness_c = "(thickness"; |
|
114 | 115 | const char* tool_c = "(tool"; |
|
115 | 116 | const char* trace_clearance_c = "(trace_clearance"; |
|
116 | 117 | const char* trace_min_c = "(trace_min"; |
|
117 | 118 | const char* trace_width_c = "(trace_width"; |
|
118 | 119 | const char* tracks_c = "(tracks"; |
|
119 | 120 | const char* tstamp_c = "(tstamp"; |
|
120 | 121 | const char* tstamps_c = "(tstamps"; |
|
121 | 122 | const char* type_c = "(type"; |
|
122 | 123 | const char* uri_c = "(uri"; |
|
123 | 124 | const char* useauxorigin_c = "(useauxorigin"; |
|
124 | 125 | const char* usegerberextensions_c = "(usegerberextensions"; |
|
125 | 126 | const char* uvia_dia_c = "(uvia_dia"; |
|
126 | 127 | const char* uvia_drill_c = "(uvia_drill"; |
|
127 | 128 | const char* uvia_min_drill_c = "(uvia_min_drill"; |
|
128 | 129 | const char* uvia_min_size_c = "(uvia_min_size"; |
|
129 | 130 | const char* uvia_size_c = "(uvia_size"; |
|
130 | 131 | const char* uvias_allowed_c = "(uvias_allowed"; |
|
131 | 132 | const char* value_c = "(value"; |
|
132 | 133 | const char* version_c = "(version"; |
|
133 | 134 | const char* via_dia_c = "(via_dia"; |
|
134 | 135 | const char* via_drill_c = "(via_drill"; |
|
135 | 136 | const char* via_min_drill_c = "(via_min_drill"; |
|
136 | 137 | const char* via_min_size_c = "(via_min_size"; |
|
137 | 138 | const char* via_size_c = "(via_size"; |
|
138 | 139 | const char* viasonmask_c = "(viasonmask"; |
|
139 | 140 | const char* visible_elements_c = "(visible_elements"; |
|
140 | 141 | const char* width_c = "(width"; |
|
141 | 142 | const char* xyz = "(x"; |
|
142 | 143 | const char* zone_45_only_c = "(zone_45_only"; |
|
143 | 144 | const char* zone_clearance_c = "(zone_clearance"; |
|
144 | 145 | const char* zones_c = "(zones"; |
|
145 | 146 | |
|
146 | 147 | |
|
147 | 148 |
@@ -1,158 +1,159 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the Kicad Tools Software |
|
3 | 3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS |
|
4 | 4 | -- |
|
5 | 5 | -- This program is free software; you can redistribute it and/or modify |
|
6 | 6 | -- it under the terms of the GNU General Public License as published by |
|
7 | 7 | -- the Free Software Foundation; either version 2 of the License, or |
|
8 | 8 | -- (at your option) any later version. |
|
9 | 9 | -- |
|
10 | 10 | -- This program is distributed in the hope that it will be useful, |
|
11 | 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 | 13 | -- GNU General Public License for more details. |
|
14 | 14 | -- |
|
15 | 15 | -- You should have received a copy of the GNU General Public License |
|
16 | 16 | -- along with this program; if not, write to the Free Software |
|
17 | 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 | 18 | -------------------------------------------------------------------------------*/ |
|
19 | 19 | /*-- Author : Alexis Jeandet |
|
20 | 20 | -- Mail : alexis.jeandet@member.fsf.org |
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 | 22 | /* |
|
23 | 23 | * Have a look to LispLikeLexique.ods |
|
24 | 24 | */ |
|
25 | 25 | #ifndef LEXIQUE_H |
|
26 | 26 | #define LEXIQUE_H |
|
27 | 27 | |
|
28 | 28 | namespace QIlib{ |
|
29 | 29 | |
|
30 | 30 | namespace Lexique |
|
31 | 31 | { |
|
32 | 32 | extern "C" const char* add_net_c; |
|
33 | 33 | extern "C" const char* area_c; |
|
34 | 34 | extern "C" const char* at_c; |
|
35 | 35 | extern "C" const char* attr_c; |
|
36 | 36 | extern "C" const char* center_c; |
|
37 | 37 | extern "C" const char* clearance_c; |
|
38 | 38 | extern "C" const char* code_c; |
|
39 | 39 | extern "C" const char* component_c; |
|
40 | 40 | extern "C" const char* components_c; |
|
41 | 41 | extern "C" const char* date_c; |
|
42 | 42 | extern "C" const char* design_c; |
|
43 | 43 | extern "C" const char* drawings_c; |
|
44 | 44 | extern "C" const char* drillshape_c; |
|
45 | 45 | extern "C" const char* edge_width_c; |
|
46 | 46 | extern "C" const char* effects_c; |
|
47 | 47 | extern "C" const char* end_c; |
|
48 | 48 | extern "C" const char* excludeedgelayer_c; |
|
49 | 49 | extern "C" const char* export_c; |
|
50 | 50 | extern "C" const char* field_c; |
|
51 | 51 | extern "C" const char* fields_c; |
|
52 | 52 | extern "C" const char* font_c; |
|
53 | 53 | extern "C" const char* fp_circle_c; |
|
54 | 54 | extern "C" const char* fp_line_c; |
|
55 | 55 | extern "C" const char* fp_text_c; |
|
56 | 56 | extern "C" const char* general_c; |
|
57 | 57 | extern "C" const char* host_c; |
|
58 | 58 | extern "C" const char* hpglpendiameter_c; |
|
59 | 59 | extern "C" const char* hpglpennumber_c; |
|
60 | 60 | extern "C" const char* hpglpenoverlay_c; |
|
61 | 61 | extern "C" const char* hpglpenspeed_c; |
|
62 | extern "C" const char* kicad_pcb_c; | |
|
62 | 63 | extern "C" const char* last_trace_width_c; |
|
63 | 64 | extern "C" const char* layers_c; |
|
64 | 65 | extern "C" const char* layerselection_c; |
|
65 | 66 | extern "C" const char* lib_c; |
|
66 | 67 | extern "C" const char* libpart_c; |
|
67 | 68 | extern "C" const char* libparts_c; |
|
68 | 69 | extern "C" const char* libraries_c; |
|
69 | 70 | extern "C" const char* library_c; |
|
70 | 71 | extern "C" const char* libsource_c; |
|
71 | 72 | extern "C" const char* linewidth_c; |
|
72 | 73 | extern "C" const char* links_c; |
|
73 | 74 | extern "C" const char* logical_c; |
|
74 | 75 | extern "C" const char* mirror_c; |
|
75 | 76 | extern "C" const char* mod_edge_width_c; |
|
76 | 77 | extern "C" const char* mod_text_size_c; |
|
77 | 78 | extern "C" const char* mode_c; |
|
78 | 79 | extern "C" const char* model_c; |
|
79 | 80 | extern "C" const char* module_c; |
|
80 | 81 | extern "C" const char* modules_c; |
|
81 | 82 | extern "C" const char* name_c; |
|
82 | 83 | extern "C" const char* names_c; |
|
83 | 84 | extern "C" const char* net_c; |
|
84 | 85 | extern "C" const char* net_class_c; |
|
85 | 86 | extern "C" const char* nets_c; |
|
86 | 87 | extern "C" const char* no_connect_c; |
|
87 | 88 | extern "C" const char* node_c; |
|
88 | 89 | extern "C" const char* num_c; |
|
89 | 90 | extern "C" const char* outputdirectory_c; |
|
90 | 91 | extern "C" const char* outputformat_c; |
|
91 | 92 | extern "C" const char* pad_c; |
|
92 | 93 | extern "C" const char* pad_drill_c; |
|
93 | 94 | extern "C" const char* pad_size_c; |
|
94 | 95 | extern "C" const char* pad_to_mask_clearance_c; |
|
95 | 96 | extern "C" const char* padsonsilk_c; |
|
96 | 97 | extern "C" const char* page_c; |
|
97 | 98 | extern "C" const char* part_c; |
|
98 | 99 | extern "C" const char* path_c; |
|
99 | 100 | extern "C" const char* pcb_text_size_c; |
|
100 | 101 | extern "C" const char* pcb_text_width_c; |
|
101 | 102 | extern "C" const char* pcbplotparams_c; |
|
102 | 103 | extern "C" const char* pin_c; |
|
103 | 104 | extern "C" const char* pins_c; |
|
104 | 105 | extern "C" const char* plotframeref_c; |
|
105 | 106 | extern "C" const char* plotinvisibletext_c; |
|
106 | 107 | extern "C" const char* plotothertext_c; |
|
107 | 108 | extern "C" const char* plotreference_c; |
|
108 | 109 | extern "C" const char* plotvalue_c; |
|
109 | 110 | extern "C" const char* psa4output_c; |
|
110 | 111 | extern "C" const char* psnegative_c; |
|
111 | 112 | extern "C" const char* ref_c; |
|
112 | 113 | extern "C" const char* rotate; |
|
113 | 114 | extern "C" const char* scale_c; |
|
114 | 115 | extern "C" const char* scaleselection_c; |
|
115 | 116 | extern "C" const char* segment_width_c; |
|
116 | 117 | extern "C" const char* setup_c; |
|
117 | 118 | extern "C" const char* sheetpath_c; |
|
118 | 119 | extern "C" const char* source_c; |
|
119 | 120 | extern "C" const char* start_c; |
|
120 | 121 | extern "C" const char* subtractmaskfromsilk_c; |
|
121 | 122 | extern "C" const char* tags_c; |
|
122 | 123 | extern "C" const char* tedit_c; |
|
123 | 124 | extern "C" const char* thickness_c; |
|
124 | 125 | extern "C" const char* tool_c; |
|
125 | 126 | extern "C" const char* trace_clearance_c; |
|
126 | 127 | extern "C" const char* trace_min_c; |
|
127 | 128 | extern "C" const char* trace_width_c; |
|
128 | 129 | extern "C" const char* tracks_c; |
|
129 | 130 | extern "C" const char* tstamp_c; |
|
130 | 131 | extern "C" const char* tstamps_c; |
|
131 | 132 | extern "C" const char* type_c; |
|
132 | 133 | extern "C" const char* uri_c; |
|
133 | 134 | extern "C" const char* useauxorigin_c; |
|
134 | 135 | extern "C" const char* usegerberextensions_c; |
|
135 | 136 | extern "C" const char* uvia_dia_c; |
|
136 | 137 | extern "C" const char* uvia_drill_c; |
|
137 | 138 | extern "C" const char* uvia_min_drill_c; |
|
138 | 139 | extern "C" const char* uvia_min_size_c; |
|
139 | 140 | extern "C" const char* uvia_size_c; |
|
140 | 141 | extern "C" const char* uvias_allowed_c; |
|
141 | 142 | extern "C" const char* value_c; |
|
142 | 143 | extern "C" const char* version_c; |
|
143 | 144 | extern "C" const char* via_dia_c; |
|
144 | 145 | extern "C" const char* via_drill_c; |
|
145 | 146 | extern "C" const char* via_min_drill_c; |
|
146 | 147 | extern "C" const char* via_min_size_c; |
|
147 | 148 | extern "C" const char* via_size_c; |
|
148 | 149 | extern "C" const char* viasonmask_c; |
|
149 | 150 | extern "C" const char* visible_elements_c; |
|
150 | 151 | extern "C" const char* width_c; |
|
151 | 152 | extern "C" const char* xyz; |
|
152 | 153 | extern "C" const char* zone_45_only_c; |
|
153 | 154 | extern "C" const char* zone_clearance_c; |
|
154 | 155 | extern "C" const char* zones_c; |
|
155 | 156 | } |
|
156 | 157 | } |
|
157 | 158 | |
|
158 | 159 | #endif // LEXIQUE_H |
@@ -1,56 +1,67 | |||
|
1 | 1 | /*------------------------------------------------------------------------------ |
|
2 | 2 | -- This file is a part of the Kicad Tools Software |
|
3 | 3 | -- Copyright (C) 2014, Plasma Physics Laboratory - CNRS |
|
4 | 4 | -- |
|
5 | 5 | -- This program is free software; you can redistribute it and/or modify |
|
6 | 6 | -- it under the terms of the GNU General Public License as published by |
|
7 | 7 | -- the Free Software Foundation; either version 2 of the License, or |
|
8 | 8 | -- (at your option) any later version. |
|
9 | 9 | -- |
|
10 | 10 | -- This program is distributed in the hope that it will be useful, |
|
11 | 11 | -- but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | 12 | -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 | 13 | -- GNU General Public License for more details. |
|
14 | 14 | -- |
|
15 | 15 | -- You should have received a copy of the GNU General Public License |
|
16 | 16 | -- along with this program; if not, write to the Free Software |
|
17 | 17 | -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
18 | 18 | -------------------------------------------------------------------------------*/ |
|
19 | 19 | /*-- Author : Alexis Jeandet |
|
20 | 20 | -- Mail : alexis.jeandet@member.fsf.org |
|
21 | 21 | ----------------------------------------------------------------------------*/ |
|
22 | 22 | #ifndef QICADPCB_H |
|
23 | 23 | #define QICADPCB_H |
|
24 | 24 | #include <QString> |
|
25 | 25 | #include <QStringList> |
|
26 | 26 | #include <QList> |
|
27 | 27 | #include <QFile> |
|
28 | 28 | #include <parsers/lispLike_driver.h> |
|
29 | 29 | #include <qicadlisplikelexique.h> |
|
30 | 30 | |
|
31 | 31 | namespace QIlib{ |
|
32 | 32 | |
|
33 | ||
|
34 | class QIcadPcbGeneralInfo : public QIcadAbstractNodeWrapper | |
|
35 | { | |
|
36 | public: | |
|
37 | QIcadPcbGeneralInfo(QIlib::AbstractNode* node); | |
|
38 | QIcadAbstractNodeWrapper version; | |
|
39 | QIcadAbstractNodeWrapper host; | |
|
40 | void setNode(QIlib::AbstractNode* node); | |
|
41 | }; | |
|
42 | ||
|
33 | 43 | class QIcadPcbRoot : public QIcadAbstractNodeWrapper |
|
34 | 44 | { |
|
35 | 45 | public: |
|
36 | 46 | QIcadPcbRoot(QIlib::AbstractNode* node); |
|
37 | 47 | QIcadAbstractNodeWrapper version; |
|
38 | 48 | QIcadAbstractNodeWrapper host; |
|
49 | QIcadAbstractNodeWrapper page; | |
|
39 | 50 | void setNode(QIlib::AbstractNode* node); |
|
40 | 51 | }; |
|
41 | 52 | |
|
42 | 53 | class QIcadPcb : private lispLike_Driver |
|
43 | 54 | { |
|
44 | 55 | public: |
|
45 | 56 | QIcadPcb(); |
|
46 | 57 | bool parsePcb(const QString& pcb); |
|
47 | 58 | QString toString(); |
|
48 | 59 | QString fileName; |
|
49 | 60 | QString print(); |
|
50 | 61 | private: |
|
51 | 62 | void updateConcreteTree(); |
|
52 | 63 | }; |
|
53 | 64 | |
|
54 | 65 | |
|
55 | 66 | } |
|
56 | 67 | #endif // QICADPCB_H |
General Comments 0
You need to be logged in to leave comments.
Login now