Changeset View
Changeset View
Standalone View
Standalone View
libs/pigment/tests/CCSGraph.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 45 | { | |||
---|---|---|---|---|---|
55 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("graph"), i18n("specify the type of graph (see --graphs to get the full list, the default is full)"), QLatin1String("type"), QLatin1String("full"))); | 55 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("graph"), i18n("specify the type of graph (see --graphs to get the full list, the default is full)"), QLatin1String("type"), QLatin1String("full"))); | ||
56 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("key"), i18n("specify the key of the source color space"), QLatin1String("key"), QString())); | 56 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("key"), i18n("specify the key of the source color space"), QLatin1String("key"), QString())); | ||
57 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("key"), i18n("specify the key of the destination color space"), QLatin1String("key"), QString())); | 57 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("key"), i18n("specify the key of the destination color space"), QLatin1String("key"), QString())); | ||
58 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("output"), i18n("specify the output (can be ps or dot, the default is ps)"), QLatin1String("type"), QLatin1String("ps"))); | 58 | parser.addOption(QCommandLineOption(QStringList() << QLatin1String("output"), i18n("specify the output (can be ps or dot, the default is ps)"), QLatin1String("type"), QLatin1String("ps"))); | ||
59 | parser.addPositionalArgument(QLatin1String("outputfile"), i18n("name of the output file")); | 59 | parser.addPositionalArgument(QLatin1String("outputfile"), i18n("name of the output file")); | ||
60 | parser.process(app); // PORTING SCRIPT: move this to after any parser.addOption | 60 | parser.process(app); // PORTING SCRIPT: move this to after any parser.addOption | ||
61 | 61 | | |||
62 | if (parser.isSet("graphs")) { | 62 | if (parser.isSet("graphs")) { | ||
63 | // Don't change those lines to use dbgPigment derivatives, they need to be outputed | 63 | // Don't change those lines to use dbgPigment derivatives, they need to be outputted | ||
64 | // to stdout not stderr. | 64 | // to stdout not stderr. | ||
65 | std::cout << "full : show all the connection on the graph" << std::endl; | 65 | std::cout << "full : show all the connection on the graph" << std::endl; | ||
66 | std::cout << "bestpath : show the best path for a given transformation" << std::endl; | 66 | std::cout << "bestpath : show the best path for a given transformation" << std::endl; | ||
67 | exit(EXIT_SUCCESS); | 67 | exit(EXIT_SUCCESS); | ||
68 | } | 68 | } | ||
69 | QString graphType = parser.value("graph"); | 69 | QString graphType = parser.value("graph"); | ||
70 | QString outputType = parser.value("output"); | 70 | QString outputType = parser.value("output"); | ||
71 | if (parser.positionalArguments().count() != 1) { | 71 | if (parser.positionalArguments().count() != 1) { | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |