| 1 | /*************************************************************************** |
| 2 | * This file is part of Robocut. * |
| 3 | * Copyright (C) 2010 Markus Schulz <[email protected]> * |
| 4 | * * |
| 5 | * This program is free software; you can redistribute it and/or modify * |
| 6 | * it under the terms of the GNU General Public License as published by * |
| 7 | * the Free Software Foundation; either version 3 of the License, or * |
| 8 | * (at your option) any later version. * |
| 9 | * * |
| 10 | * This program is distributed in the hope that it will be useful, * |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 13 | * GNU General Public License for more details. * |
| 14 | * * |
| 15 | * You should have received a copy of the GNU General Public License * |
| 16 | * along with this program; if not, write to the * |
| 17 | * Free Software Foundation, Inc., * |
| 18 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * |
| 19 | ***************************************************************************/ |
| 20 | |
| 21 | #include "ProgramOptions.h"cxx . . $ `<file>/ProgramOptions.h`/ |
| 22 | #include <cmath> |
| 23 | #include <getopt.h> |
| 24 | #include <stdio.h> |
| 25 | #include <stdlib.h> |
| 26 | #include <iostream> |
| 27 | using namespace std; |
| 28 | |
| 29 | ProgramOptionscxx . . $ ProgramOptions#::ProgramOptionscxx . . $ ProgramOptions#ProgramOptions(49f6e7a06ebc5aa8). ( ) |
| 30 | { |
| 31 | initAttributescxx . . $ ProgramOptions#initAttributes(49f6e7a06ebc5aa8).(); |
| 32 | } |
| 33 | ProgramOptionscxx . . $ ProgramOptions#::~cxx . . $ ProgramOptions#`~ProgramOptions`(49f6e7a06ebc5aa8).ProgramOptionscxx . . $ ProgramOptions# ( ) |
| 34 | { |
| 35 | } |
| 36 | ProgramOptionscxx . . $ ProgramOptions#& ProgramOptionscxx . . $ ProgramOptions#::Instancecxx . . $ ProgramOptions#Instance(63cd40b15f95c435).() |
| 37 | { |
| 38 | static ProgramOptionscxx . . $ ProgramOptions# instancecxx . . $ ProgramOptions#ProgramOptions(49f6e7a06ebc5aa8).; |
| 39 | return instance; |
| 40 | } |
| 41 | |
| 42 | |
| 43 | void ProgramOptionscxx . . $ ProgramOptions#::setSortPathcxx . . $ ProgramOptions#setSortPath(d4f767463ce0a6b3). ( int new_var ) |
| 44 | { |
| 45 | sortPathcxx . . $ ProgramOptions#sortPath. = new_var; |
| 46 | } |
| 47 | |
| 48 | int ProgramOptionscxx . . $ ProgramOptions#::getSortPathcxx . . $ ProgramOptions#getSortPath(b126dc7c1de90089). ( ) |
| 49 | { |
| 50 | return sortPathcxx . . $ ProgramOptions#sortPath.; |
| 51 | } |
| 52 | |
| 53 | void ProgramOptionscxx . . $ ProgramOptions#::setStartCutcxx . . $ ProgramOptions#setStartCut(d4f767463ce0a6b3). ( int new_var ) |
| 54 | { |
| 55 | startCutcxx . . $ ProgramOptions#startCut. = new_var; |
| 56 | } |
| 57 | |
| 58 | int ProgramOptionscxx . . $ ProgramOptions#::getStartCutcxx . . $ ProgramOptions#getStartCut(b126dc7c1de90089). ( ) |
| 59 | { |
| 60 | return startCutcxx . . $ ProgramOptions#startCut.; |
| 61 | } |
| 62 | |
| 63 | void ProgramOptionscxx . . $ ProgramOptions#::setFileNamecxx . . $ ProgramOptions#setFileName(7df51288a9ebd664). ( QStringcxx . . $ QString# new_var ) |
| 64 | { |
| 65 | fileNamecxx . . $ ProgramOptions#fileName. =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). new_var; |
| 66 | } |
| 67 | |
| 68 | QStringcxx . . $ QString# ProgramOptionscxx . . $ ProgramOptions#::getFileNamecxx . . $ ProgramOptions#getFileName(4365c3963150523e). ( ) |
| 69 | { |
| 70 | return fileNamecxx . . $ QString#QString(3520e46b33348bf6).; |
| 71 | } |
| 72 | |
| 73 | void ProgramOptionscxx . . $ ProgramOptions#::setTspSortPathcxx . . $ ProgramOptions#setTspSortPath(d4f767463ce0a6b3). ( int new_var ) |
| 74 | { |
| 75 | tspSortPathcxx . . $ ProgramOptions#tspSortPath. = new_var; |
| 76 | } |
| 77 | |
| 78 | int ProgramOptionscxx . . $ ProgramOptions#::getTspSortPathcxx . . $ ProgramOptions#getTspSortPath(b126dc7c1de90089). ( ) |
| 79 | { |
| 80 | return tspSortPathcxx . . $ ProgramOptions#tspSortPath.; |
| 81 | } |
| 82 | |
| 83 | void ProgramOptionscxx . . $ ProgramOptions#::setMediacxx . . $ ProgramOptions#setMedia(d4f767463ce0a6b3). ( int new_var ) |
| 84 | { |
| 85 | if (new_var<0) new_var = 0; |
| 86 | if (new_var>25) new_var = 25; |
| 87 | mediacxx . . $ ProgramOptions#media. = new_var; |
| 88 | } |
| 89 | |
| 90 | int ProgramOptionscxx . . $ ProgramOptions#::getMediacxx . . $ ProgramOptions#getMedia(b126dc7c1de90089). ( ) |
| 91 | { |
| 92 | return mediacxx . . $ ProgramOptions#media.; |
| 93 | } |
| 94 | |
| 95 | void ProgramOptionscxx . . $ ProgramOptions#::setSpeedcxx . . $ ProgramOptions#setSpeed(d4f767463ce0a6b3). ( int new_var ) |
| 96 | { |
| 97 | speedcxx . . $ ProgramOptions#speed. = new_var; |
| 98 | } |
| 99 | |
| 100 | int ProgramOptionscxx . . $ ProgramOptions#::getSpeedcxx . . $ ProgramOptions#getSpeed(b126dc7c1de90089). ( ) |
| 101 | { |
| 102 | return speedcxx . . $ ProgramOptions#speed.; |
| 103 | } |
| 104 | |
| 105 | void ProgramOptionscxx . . $ ProgramOptions#::setPressurecxx . . $ ProgramOptions#setPressure(d4f767463ce0a6b3). ( int new_var ) |
| 106 | { |
| 107 | pressurecxx . . $ ProgramOptions#pressure. = new_var; |
| 108 | } |
| 109 | |
| 110 | int ProgramOptionscxx . . $ ProgramOptions#::getPressurecxx . . $ ProgramOptions#getPressure(b126dc7c1de90089). ( ) |
| 111 | { |
| 112 | return pressurecxx . . $ ProgramOptions#pressure.; |
| 113 | } |
| 114 | |
| 115 | void ProgramOptionscxx . . $ ProgramOptions#::setRegMarkAutocxx . . $ ProgramOptions#setRegMarkAuto(d4f767463ce0a6b3). ( int new_var ) |
| 116 | { |
| 117 | regMarkAutocxx . . $ ProgramOptions#regMarkAuto. = new_var; |
| 118 | } |
| 119 | |
| 120 | int ProgramOptionscxx . . $ ProgramOptions#::getRegMarkAutocxx . . $ ProgramOptions#getRegMarkAuto(b126dc7c1de90089). ( ) |
| 121 | { |
| 122 | return regMarkAutocxx . . $ ProgramOptions#regMarkAuto.; |
| 123 | } |
| 124 | |
| 125 | void ProgramOptionscxx . . $ ProgramOptions#::setRegMarkcxx . . $ ProgramOptions#setRegMark(d4f767463ce0a6b3). ( int new_var ) |
| 126 | { |
| 127 | regMarkcxx . . $ ProgramOptions#regMark. = new_var; |
| 128 | } |
| 129 | |
| 130 | int ProgramOptionscxx . . $ ProgramOptions#::getRegMarkcxx . . $ ProgramOptions#getRegMark(b126dc7c1de90089). ( ) |
| 131 | { |
| 132 | return regMarkcxx . . $ ProgramOptions#regMark.; |
| 133 | } |
| 134 | |
| 135 | void ProgramOptionscxx . . $ ProgramOptions#::setRegDimensionWidthcxx . . $ ProgramOptions#setRegDimensionWidth(d4f767463ce0a6b3). ( int new_var ) |
| 136 | { |
| 137 | regDimensionWidthcxx . . $ ProgramOptions#regDimensionWidth. = new_var; |
| 138 | } |
| 139 | |
| 140 | int ProgramOptionscxx . . $ ProgramOptions#::getRegDimensionWidthcxx . . $ ProgramOptions#getRegDimensionWidth(b126dc7c1de90089). ( ) |
| 141 | { |
| 142 | return lroundl(regDimensionWidthcxx . . $ ProgramOptions#regDimensionWidth.); |
| 143 | } |
| 144 | |
| 145 | void ProgramOptionscxx . . $ ProgramOptions#::setRegDimensionHeightcxx . . $ ProgramOptions#setRegDimensionHeight(d4f767463ce0a6b3). ( int new_var ) |
| 146 | { |
| 147 | regDimensionHeightcxx . . $ ProgramOptions#regDimensionHeight. = new_var; |
| 148 | } |
| 149 | |
| 150 | int ProgramOptionscxx . . $ ProgramOptions#::getRegDimensionHeightcxx . . $ ProgramOptions#getRegDimensionHeight(b126dc7c1de90089). ( ) |
| 151 | { |
| 152 | return lroundl(regDimensionHeightcxx . . $ ProgramOptions#regDimensionHeight.); |
| 153 | } |
| 154 | |
| 155 | void ProgramOptionscxx . . $ ProgramOptions#::setRegOriginWidthcxx . . $ ProgramOptions#setRegOriginWidth(d4f767463ce0a6b3). ( int new_var ) |
| 156 | { |
| 157 | regOriginWidthcxx . . $ ProgramOptions#regOriginWidth. = new_var; |
| 158 | } |
| 159 | |
| 160 | int ProgramOptionscxx . . $ ProgramOptions#::getRegOriginWidthcxx . . $ ProgramOptions#getRegOriginWidth(b126dc7c1de90089). ( ) |
| 161 | { |
| 162 | return lroundl(regOriginWidthcxx . . $ ProgramOptions#regOriginWidth.); |
| 163 | } |
| 164 | |
| 165 | void ProgramOptionscxx . . $ ProgramOptions#::setRegOriginHeightcxx . . $ ProgramOptions#setRegOriginHeight(d4f767463ce0a6b3). ( int new_var ) |
| 166 | { |
| 167 | regOriginHeightcxx . . $ ProgramOptions#regOriginHeight. = new_var; |
| 168 | } |
| 169 | |
| 170 | int ProgramOptionscxx . . $ ProgramOptions#::getRegOriginHeightcxx . . $ ProgramOptions#getRegOriginHeight(b126dc7c1de90089). ( ) |
| 171 | { |
| 172 | return lroundl(regOriginHeightcxx . . $ ProgramOptions#regOriginHeight.); |
| 173 | } |
| 174 | |
| 175 | void ProgramOptionscxx . . $ ProgramOptions#::setRegDimensionWidthMMcxx . . $ ProgramOptions#setRegDimensionWidthMM(ba8836b59fb42830). ( double new_var ) |
| 176 | { |
| 177 | regDimensionWidthcxx . . $ ProgramOptions#regDimensionWidth. = new_var*20; |
| 178 | } |
| 179 | |
| 180 | double ProgramOptionscxx . . $ ProgramOptions#::getRegDimensionWidthMMcxx . . $ ProgramOptions#getRegDimensionWidthMM(31fa7155c10fdd13). ( ) |
| 181 | { |
| 182 | return regDimensionWidthcxx . . $ ProgramOptions#regDimensionWidth./20; |
| 183 | } |
| 184 | |
| 185 | void ProgramOptionscxx . . $ ProgramOptions#::setRegDimensionHeightMMcxx . . $ ProgramOptions#setRegDimensionHeightMM(ba8836b59fb42830). ( double new_var ) |
| 186 | { |
| 187 | regDimensionHeightcxx . . $ ProgramOptions#regDimensionHeight. = new_var*20; |
| 188 | } |
| 189 | |
| 190 | double ProgramOptionscxx . . $ ProgramOptions#::getRegDimensionHeightMMcxx . . $ ProgramOptions#getRegDimensionHeightMM(31fa7155c10fdd13). ( ) |
| 191 | { |
| 192 | return regDimensionHeightcxx . . $ ProgramOptions#regDimensionHeight./20; |
| 193 | } |
| 194 | |
| 195 | void ProgramOptionscxx . . $ ProgramOptions#::setRegOriginWidthMMcxx . . $ ProgramOptions#setRegOriginWidthMM(ba8836b59fb42830). ( double new_var ) |
| 196 | { |
| 197 | regOriginWidthcxx . . $ ProgramOptions#regOriginWidth. = new_var*20; |
| 198 | } |
| 199 | |
| 200 | double ProgramOptionscxx . . $ ProgramOptions#::getRegOriginWidthMMcxx . . $ ProgramOptions#getRegOriginWidthMM(31fa7155c10fdd13). ( ) |
| 201 | { |
| 202 | return regOriginWidthcxx . . $ ProgramOptions#regOriginWidth./20; |
| 203 | } |
| 204 | |
| 205 | void ProgramOptionscxx . . $ ProgramOptions#::setRegOriginHeightMMcxx . . $ ProgramOptions#setRegOriginHeightMM(ba8836b59fb42830). ( double new_var ) |
| 206 | { |
| 207 | regOriginHeightcxx . . $ ProgramOptions#regOriginHeight. = new_var*20; |
| 208 | } |
| 209 | |
| 210 | double ProgramOptionscxx . . $ ProgramOptions#::getRegOriginHeightMMcxx . . $ ProgramOptions#getRegOriginHeightMM(31fa7155c10fdd13). ( ) |
| 211 | { |
| 212 | return regOriginHeightcxx . . $ ProgramOptions#regOriginHeight./20; |
| 213 | } |
| 214 | |
| 215 | void ProgramOptionscxx . . $ ProgramOptions#::setVersioncxx . . $ ProgramOptions#setVersion(7df51288a9ebd664). ( QStringcxx . . $ QString# new_var ) |
| 216 | { |
| 217 | versioncxx . . $ ProgramOptions#version. =cxx . . $ QString#`operator=`(6a89d0b7f4d2681c). new_var; |
| 218 | } |
| 219 | |
| 220 | QStringcxx . . $ QString# ProgramOptionscxx . . $ ProgramOptions#::getVersioncxx . . $ ProgramOptions#getVersion(4365c3963150523e). ( ) |
| 221 | { |
| 222 | return versioncxx . . $ QString#QString(3520e46b33348bf6).; |
| 223 | } |
| 224 | |
| 225 | void ProgramOptionscxx . . $ ProgramOptions#::setVendorUSB_IDcxx . . $ ProgramOptions#setVendorUSB_ID(d4f767463ce0a6b3). ( int new_var ) |
| 226 | { |
| 227 | vendorUSB_IDcxx . . $ ProgramOptions#vendorUSB_ID. = new_var; |
| 228 | } |
| 229 | |
| 230 | int ProgramOptionscxx . . $ ProgramOptions#::getVendorUSB_IDcxx . . $ ProgramOptions#getVendorUSB_ID(b126dc7c1de90089). ( ) |
| 231 | { |
| 232 | return vendorUSB_IDcxx . . $ ProgramOptions#vendorUSB_ID.; |
| 233 | } |
| 234 | |
| 235 | void ProgramOptionscxx . . $ ProgramOptions#::setProductUSB_IDcxx . . $ ProgramOptions#setProductUSB_ID(d4f767463ce0a6b3). ( int new_var ) |
| 236 | { |
| 237 | productUSB_IDcxx . . $ ProgramOptions#productUSB_ID. = new_var; |
| 238 | } |
| 239 | |
| 240 | int ProgramOptionscxx . . $ ProgramOptions#::getProductUSB_IDcxx . . $ ProgramOptions#getProductUSB_ID(b126dc7c1de90089). ( ) |
| 241 | { |
| 242 | return productUSB_IDcxx . . $ ProgramOptions#productUSB_ID.; |
| 243 | } |
| 244 | |
| 245 | void ProgramOptionscxx . . $ ProgramOptions#::setMarginTopcxx . . $ ProgramOptions#setMarginTop(d4f767463ce0a6b3). ( int new_var ) |
| 246 | { |
| 247 | marginTopcxx . . $ ProgramOptions#marginTop. = new_var; |
| 248 | } |
| 249 | int ProgramOptionscxx . . $ ProgramOptions#::getMarginTopcxx . . $ ProgramOptions#getMarginTop(b126dc7c1de90089). ( ) |
| 250 | { |
| 251 | return lroundl(marginTopcxx . . $ ProgramOptions#marginTop.); |
| 252 | } |
| 253 | void ProgramOptionscxx . . $ ProgramOptions#::setMarginRightcxx . . $ ProgramOptions#setMarginRight(d4f767463ce0a6b3). ( int new_var ) |
| 254 | { |
| 255 | marginRightcxx . . $ ProgramOptions#marginRight. = new_var; |
| 256 | } |
| 257 | int ProgramOptionscxx . . $ ProgramOptions#::getMarginRightcxx . . $ ProgramOptions#getMarginRight(b126dc7c1de90089). ( ) |
| 258 | { |
| 259 | return lroundl(marginRightcxx . . $ ProgramOptions#marginRight.); |
| 260 | } |
| 261 | |
| 262 | void ProgramOptionscxx . . $ ProgramOptions#::setMarginTopMMcxx . . $ ProgramOptions#setMarginTopMM(ba8836b59fb42830). ( double new_var ) |
| 263 | { |
| 264 | marginTopcxx . . $ ProgramOptions#marginTop. = new_var*20; |
| 265 | } |
| 266 | double ProgramOptionscxx . . $ ProgramOptions#::getMarginTopMMcxx . . $ ProgramOptions#getMarginTopMM(31fa7155c10fdd13). ( ) |
| 267 | { |
| 268 | return marginTopcxx . . $ ProgramOptions#marginTop./20; |
| 269 | } |
| 270 | void ProgramOptionscxx . . $ ProgramOptions#::setMarginRightMMcxx . . $ ProgramOptions#setMarginRightMM(ba8836b59fb42830). ( double new_var ) |
| 271 | { |
| 272 | marginRightcxx . . $ ProgramOptions#marginRight. = new_var*20; |
| 273 | } |
| 274 | double ProgramOptionscxx . . $ ProgramOptions#::getMarginRightMMcxx . . $ ProgramOptions#getMarginRightMM(31fa7155c10fdd13). ( ) |
| 275 | { |
| 276 | return marginRightcxx . . $ ProgramOptions#marginRight./20; |
| 277 | } |
| 278 | |
| 279 | void ProgramOptionscxx . . $ ProgramOptions#::setTrackEnhancingcxx . . $ ProgramOptions#setTrackEnhancing(d4f767463ce0a6b3). ( int new_var ) |
| 280 | { |
| 281 | trackEnhancingcxx . . $ ProgramOptions#trackEnhancing. = new_var; |
| 282 | } |
| 283 | |
| 284 | int ProgramOptionscxx . . $ ProgramOptions#::getTrackEnhancingcxx . . $ ProgramOptions#getTrackEnhancing(b126dc7c1de90089). ( ) |
| 285 | { |
| 286 | return trackEnhancingcxx . . $ ProgramOptions#trackEnhancing.; |
| 287 | } |
| 288 | |
| 289 | int ProgramOptionscxx . . $ ProgramOptions#::GetOptcxx . . $ ProgramOptions#GetOpt(afcd3168fc1188a4). (int argc, char *argv[] ) |
| 290 | { |
| 291 | static int version_flag = 0, help_flag = 0, show_flag = 0; |
| 292 | int index, option_index = 0; |
| 293 | int c = 0; |
| 294 | const char shortopts[] = "stg:p:ra:b:c:d:"; |
| 295 | static struct option longopts[] = |
| 296 | { |
| 297 | {"help", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, &help_flag, 1}, |
| 298 | {"version", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, &version_flag, 1}, |
| 299 | {"show", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, &show_flag, 1}, |
| 300 | {"no-sort", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, 0, 's'}, |
| 301 | {"bb-sort", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, 0, 't'}, |
| 302 | {"cut", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, 0, 'l'}, |
| 303 | {"media", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'm'}, |
| 304 | {"speed", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'g'}, |
| 305 | {"pressure", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'p'}, |
| 306 | {"track-enhancing", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, 0, 'n'}, |
| 307 | {"margin-top", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'o'}, |
| 308 | {"margin-right", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'q'}, |
| 309 | {"reg-mark-auto", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, 0, 'r'}, |
| 310 | {"reg-mark", no_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:62:9`!, 0, 'h'}, |
| 311 | {"reg-dimension-width", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'a'}, |
| 312 | {"reg-dimension-height", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'b'}, |
| 313 | {"reg-origin-width", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'c'}, |
| 314 | {"reg-origin-height", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'd'}, |
| 315 | {"usb-vendor-id", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'e'}, |
| 316 | {"usb-product-id", required_argumentcxx . . $ `<external>/1746263805473775960/getopt_ext.h:63:9`!, 0, 'f'}, |
| 317 | {0, 0, 0, 0} |
| 318 | }; |
| 319 | |
| 320 | opterr = 0; |
| 321 | while ((c = getopt_long(argc, argv, shortopts, longopts, &option_index)) != -1) |
| 322 | { |
| 323 | switch (c) |
| 324 | { |
| 325 | case 0: |
| 326 | /* If this option set a flag, do nothing else now. */ |
| 327 | if (longopts[option_index].flag != 0) break; |
| 328 | //cout << longopts[option_index].name << endl; |
| 329 | break; |
| 330 | case 's': |
| 331 | setSortPathcxx . . $ ProgramOptions#setSortPath(d4f767463ce0a6b3).(true); |
| 332 | break; |
| 333 | case 't': |
| 334 | setTspSortPathcxx . . $ ProgramOptions#setTspSortPath(d4f767463ce0a6b3).(true); |
| 335 | break; |
| 336 | case 'l': |
| 337 | setStartCutcxx . . $ ProgramOptions#setStartCut(d4f767463ce0a6b3).(true); |
| 338 | break; |
| 339 | case 'm': |
| 340 | setMediacxx . . $ ProgramOptions#setMedia(d4f767463ce0a6b3).(atoicxx . . $ atoi(5c4306d8553b3696).(optarg)); |
| 341 | break; |
| 342 | case 'g': |
| 343 | setSpeedcxx . . $ ProgramOptions#setSpeed(d4f767463ce0a6b3).(atoicxx . . $ atoi(5c4306d8553b3696).(optarg)); |
| 344 | break; |
| 345 | case 'p': |
| 346 | setPressurecxx . . $ ProgramOptions#setPressure(d4f767463ce0a6b3).(atoicxx . . $ atoi(5c4306d8553b3696).(optarg)); |
| 347 | break; |
| 348 | case 'n': |
| 349 | setTrackEnhancingcxx . . $ ProgramOptions#setTrackEnhancing(d4f767463ce0a6b3).(true); |
| 350 | break; |
| 351 | case 'o': |
| 352 | setMarginTopMMcxx . . $ ProgramOptions#setMarginTopMM(ba8836b59fb42830).(atofcxx . . $ atof(9a18bdb0e56c1bc2).(optarg)); |
| 353 | break; |
| 354 | case 'q': |
| 355 | setMarginRightMMcxx . . $ ProgramOptions#setMarginRightMM(ba8836b59fb42830).(atofcxx . . $ atof(9a18bdb0e56c1bc2).(optarg)); |
| 356 | break; |
| 357 | case 'r': |
| 358 | setRegMarkAutocxx . . $ ProgramOptions#setRegMarkAuto(d4f767463ce0a6b3).(true); |
| 359 | break; |
| 360 | case 'h': |
| 361 | setRegMarkcxx . . $ ProgramOptions#setRegMark(d4f767463ce0a6b3).(true); |
| 362 | break; |
| 363 | case 'a': |
| 364 | setRegDimensionWidthMMcxx . . $ ProgramOptions#setRegDimensionWidthMM(ba8836b59fb42830).(atofcxx . . $ atof(9a18bdb0e56c1bc2).(optarg)); |
| 365 | break; |
| 366 | case 'b': |
| 367 | setRegDimensionHeightMMcxx . . $ ProgramOptions#setRegDimensionHeightMM(ba8836b59fb42830).(atofcxx . . $ atof(9a18bdb0e56c1bc2).(optarg)); |
| 368 | break; |
| 369 | case 'c': |
| 370 | setRegOriginWidthMMcxx . . $ ProgramOptions#setRegOriginWidthMM(ba8836b59fb42830).(atofcxx . . $ atof(9a18bdb0e56c1bc2).(optarg)); |
| 371 | break; |
| 372 | case 'd': |
| 373 | setRegOriginHeightMMcxx . . $ ProgramOptions#setRegOriginHeightMM(ba8836b59fb42830).(atofcxx . . $ atof(9a18bdb0e56c1bc2).(optarg)); |
| 374 | break; |
| 375 | case 'e': |
| 376 | setVendorUSB_IDcxx . . $ ProgramOptions#setVendorUSB_ID(d4f767463ce0a6b3).(atoicxx . . $ atoi(5c4306d8553b3696).(optarg)); |
| 377 | break; |
| 378 | case 'f': |
| 379 | setProductUSB_IDcxx . . $ ProgramOptions#setProductUSB_ID(d4f767463ce0a6b3).(atoicxx . . $ atoi(5c4306d8553b3696).(optarg)); |
| 380 | break; |
| 381 | case '?': |
| 382 | if (optopt == 'f') |
| 383 | cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Option -"<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). optopt <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7)." requires an argument." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 384 | else if (isprint (optopt)) |
| 385 | cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Unknown option `-"<<cxx . . $ std/`operator<<`(dd93bb5737bfac24). (char)optopt <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7)."'." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 386 | else |
| 387 | cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Unknown option character ASCII code "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). optopt <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7)."." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 388 | exitcxx . . $ exit(3ca292c338df9bb3).(0); |
| 389 | default: |
| 390 | abortcxx . . $ abort(8df32a62017fbbf6).(); |
| 391 | } |
| 392 | } |
| 393 | for (index = optind; index < argc; index++) |
| 394 | { |
| 395 | //cout << "Non-option argument " << argv[index] <<"'." << endl; |
| 396 | fileNamecxx . . $ ProgramOptions#fileName. =cxx . . $ QString#`operator=`(d02845eef0c33901). argv[optind]; // take the first non arg as file |
| 397 | continue; |
| 398 | } |
| 399 | if(show_flag) |
| 400 | { |
| 401 | showShowcxx . . $ ProgramOptions#showShow(49f6e7a06ebc5aa8).(); |
| 402 | exitcxx . . $ exit(3ca292c338df9bb3).(0); |
| 403 | } |
| 404 | if(help_flag) |
| 405 | { |
| 406 | showHelpcxx . . $ ProgramOptions#showHelp(49f6e7a06ebc5aa8).(); |
| 407 | exitcxx . . $ exit(3ca292c338df9bb3).(0); |
| 408 | } |
| 409 | if(version_flag) |
| 410 | { |
| 411 | showVersioncxx . . $ ProgramOptions#showVersion(49f6e7a06ebc5aa8).(); |
| 412 | exitcxx . . $ exit(3ca292c338df9bb3).(0); |
| 413 | } |
| 414 | return 0; |
| 415 | } |
| 416 | |
| 417 | void ProgramOptionscxx . . $ ProgramOptions#::showHelpcxx . . $ ProgramOptions#showHelp(49f6e7a06ebc5aa8). ( ) |
| 418 | { |
| 419 | // "<------------------------------------------------------------------------------>" |
| 420 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "The `Robocut' program plots or cuts SVG files on a Craft Robo or Silhouette SD" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 421 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "or most likely any other customer grade Graphtec cutting plotter." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 422 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Usage:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 423 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " robocut [OPTIONS...] [File]" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 424 | // "<------------------------------------------------------------------------------>" |
| 425 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Help Options:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 426 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --help Show summary of options." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 427 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --version Show version information and copyright details." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 428 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --show Show all the parameters entered and the defaults." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 429 | // "<------------------------------------------------------------------------------>" |
| 430 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Application Options:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 431 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -s, --no-sort Stop sort the objects from the SVG before plotting." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 432 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -t, --bb-sort Sort the objects by bounding box, good for letters." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 433 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " This will cut out the inside first and than the" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 434 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " outside." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 435 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --cut Shows the cutting dialogue after start." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 436 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --media INT Select the media. See drop down box." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 437 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -g, --speed INT The speed between 1 and 33." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 438 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -p, --pressure INT The pressure between 1 and 10." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 439 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --track-enhancing Move three times back and forward to create a" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 440 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " track." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 441 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --margin-top DOUBLE Define the margin on top in mm." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 442 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --margin-right DOUBLE Define the margin right in mm." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 443 | // "<------------------------------------------------------------------------------>" |
| 444 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Registration Mark Options:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 445 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -r, --reg-mark-auto Use registration marks and find the marks" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 446 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " automatically." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 447 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --reg-mark Use registration marks but set the knife manually" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 448 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " on top the round mark." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 449 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -a, --reg-dimension-width DOUBLE" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 450 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Specify the length in mm between the the two" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 451 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " horizontal marks." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 452 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -b, --reg-dimension-height DOUBLE" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 453 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Specify the length in mm between the the two" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 454 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " vertical marks." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 455 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -c, --reg-origin-width DOUBLE" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 456 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Specify the length in mm between the the edge of" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 457 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " the paper and the first horizontal mark." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 458 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -d, --reg-origin-height DOUBLE" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 459 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " Specify the length in mm between the the edge of" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 460 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " the paper and the first vertical mark." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9). <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 461 | // "<------------------------------------------------------------------------------>" |
| 462 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Device Options:" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 463 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --usb-vendor-id INT Try this program with other usb hardware on" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 464 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " your own risk. You need to convert hex to dec." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 465 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --usb-product-id INT May also work with other hardware, try" <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 466 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " usb-devices program to scan your computer." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 467 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Report bugs to https://bugs.launchpad.net/robocut/+filebug." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 468 | // "<------------------------------------------------------------------------------>" |
| 469 | } |
| 470 | |
| 471 | |
| 472 | void ProgramOptionscxx . . $ ProgramOptions#::showVersioncxx . . $ ProgramOptions#showVersion(49f6e7a06ebc5aa8). ( ) |
| 473 | { |
| 474 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(88df5bef833f7f83). (versioncxx . . $ ProgramOptions#version..toStdStringcxx . . $ QString#toStdString(219584694fe2b248).()); // see main.cpp |
| 475 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n\nCopyright (C) 2015\n"; |
| 476 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "This is free software; see the source for copying conditions. There is NO\n"; |
| 477 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"; |
| 478 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Written by Tim Hutt <[email protected]> and Markus Schulz <[email protected]>\n"; |
| 479 | } |
| 480 | |
| 481 | void ProgramOptionscxx . . $ ProgramOptions#::showShowcxx . . $ ProgramOptions#showShow(49f6e7a06ebc5aa8). ( ) |
| 482 | { |
| 483 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Application Options:\n"; |
| 484 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -s, --no-sort "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getSortPathcxx . . $ ProgramOptions#getSortPath(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 485 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -t, --bb-sort "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getTspSortPathcxx . . $ ProgramOptions#getTspSortPath(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 486 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --cut "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getStartCutcxx . . $ ProgramOptions#getStartCut(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 487 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --media "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getMediacxx . . $ ProgramOptions#getMedia(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 488 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -g, --speed "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getSpeedcxx . . $ ProgramOptions#getSpeed(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 489 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -p, --pressure "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getPressurecxx . . $ ProgramOptions#getPressure(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 490 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --track-enhancing "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getTrackEnhancingcxx . . $ ProgramOptions#getTrackEnhancing(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 491 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --margin-top "<<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). getMarginTopMMcxx . . $ ProgramOptions#getMarginTopMM(31fa7155c10fdd13).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " / " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getMarginTopcxx . . $ ProgramOptions#getMarginTop(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 492 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --margin-right "<<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). getMarginRightMMcxx . . $ ProgramOptions#getMarginRightMM(31fa7155c10fdd13).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " / " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getMarginRightcxx . . $ ProgramOptions#getMarginRight(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 493 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -r, --reg-mark-auto "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getRegMarkAutocxx . . $ ProgramOptions#getRegMarkAuto(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 494 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --reg-mark "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getRegMarkcxx . . $ ProgramOptions#getRegMark(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 495 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -a, --reg-dimension-width "<<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). getRegDimensionWidthMMcxx . . $ ProgramOptions#getRegDimensionWidthMM(31fa7155c10fdd13).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " / " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getRegDimensionWidthcxx . . $ ProgramOptions#getRegDimensionWidth(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 496 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -b, --reg-dimension-height "<<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). getRegDimensionHeightMMcxx . . $ ProgramOptions#getRegDimensionHeightMM(31fa7155c10fdd13).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " / " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getRegDimensionHeightcxx . . $ ProgramOptions#getRegDimensionHeight(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 497 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -c, --reg-origin-width "<<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). getRegOriginWidthMMcxx . . $ ProgramOptions#getRegOriginWidthMM(31fa7155c10fdd13).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " / " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getRegOriginWidthcxx . . $ ProgramOptions#getRegOriginWidth(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 498 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " -d, --reg-origin-height "<<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). getRegOriginHeightMMcxx . . $ ProgramOptions#getRegOriginHeightMM(31fa7155c10fdd13).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " / " <<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getRegOriginHeightcxx . . $ ProgramOptions#getRegOriginHeight(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 499 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --usb-vendor-id "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getVendorUSB_IDcxx . . $ ProgramOptions#getVendorUSB_ID(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 500 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " --usb-product-id "<<cxx . . $ std/basic_ostream#`operator<<`(23b6575433a77e57). getProductUSB_IDcxx . . $ ProgramOptions#getProductUSB_ID(b126dc7c1de90089).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 501 | coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "[File] "<<cxx . . $ std/`operator<<`(88df5bef833f7f83). getFileNamecxx . . $ ProgramOptions#getFileName(4365c3963150523e).().toStdStringcxx . . $ QString#toStdString(219584694fe2b248).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 502 | } |
| 503 | |
| 504 | void ProgramOptionscxx . . $ ProgramOptions#::initAttributescxx . . $ ProgramOptions#initAttributes(49f6e7a06ebc5aa8). ( ) { |
| 505 | sortPathcxx . . $ ProgramOptions#sortPath. = false; |
| 506 | tspSortPathcxx . . $ ProgramOptions#tspSortPath. = false; // used for BBox |
| 507 | startCutcxx . . $ ProgramOptions#startCut. = false; |
| 508 | fileNamecxx . . $ ProgramOptions#fileName. =cxx . . $ QString#`operator=`(d02845eef0c33901). ""; |
| 509 | mediacxx . . $ ProgramOptions#media. = 2; |
| 510 | speedcxx . . $ ProgramOptions#speed. = 10; |
| 511 | pressurecxx . . $ ProgramOptions#pressure. = 10; |
| 512 | regMarkAutocxx . . $ ProgramOptions#regMarkAuto. = false; |
| 513 | regMarkcxx . . $ ProgramOptions#regMark. = false; |
| 514 | setRegDimensionWidthMMcxx . . $ ProgramOptions#setRegDimensionWidthMM(ba8836b59fb42830).(180.0); |
| 515 | setRegDimensionHeightMMcxx . . $ ProgramOptions#setRegDimensionHeightMM(ba8836b59fb42830).(240.0); |
| 516 | setRegOriginWidthMMcxx . . $ ProgramOptions#setRegOriginWidthMM(ba8836b59fb42830).(15.0); |
| 517 | setRegOriginHeightMMcxx . . $ ProgramOptions#setRegOriginHeightMM(ba8836b59fb42830).(10.0); |
| 518 | vendorUSB_IDcxx . . $ ProgramOptions#vendorUSB_ID. = 0x0b4d; |
| 519 | productUSB_IDcxx . . $ ProgramOptions#productUSB_ID. = 0x111d; |
| 520 | setMarginTopcxx . . $ ProgramOptions#setMarginTop(d4f767463ce0a6b3).(500); |
| 521 | setMarginRightcxx . . $ ProgramOptions#setMarginRight(d4f767463ce0a6b3).(320); |
| 522 | trackEnhancingcxx . . $ ProgramOptions#trackEnhancing. = false; |
| 523 | } |
| 524 |