28 print_license_(false),
41 print_license_(false),
52 QObject(qet_arguments.parent()),
53 project_files_(qet_arguments.project_files_),
54 element_files_(qet_arguments.element_files_),
55 tbt_files_(qet_arguments.tbt_files_),
56 options_(qet_arguments.options_),
57 unknown_options_(qet_arguments.unknown_options_),
58 #ifdef QET_ALLOW_OVERRIDE_CED_OPTION
59 common_elements_dir_(qet_arguments.common_elements_dir_),
61 #ifdef QET_ALLOW_OVERRIDE_CTBTD_OPTION
62 common_tbt_dir_(qet_arguments.common_tbt_dir_),
64 #ifdef QET_ALLOW_OVERRIDE_CD_OPTION
65 config_dir_(qet_arguments.config_dir_),
67 lang_dir_(qet_arguments.lang_dir_),
68 print_help_(qet_arguments.print_help_),
69 print_license_(qet_arguments.print_license_),
70 print_version_(qet_arguments.print_version_)
84 #ifdef QET_ALLOW_OVERRIDE_CED_OPTION 85 common_elements_dir_ = qet_arguments.common_elements_dir_;
87 #ifdef QET_ALLOW_OVERRIDE_CTBTD_OPTION 88 common_tbt_dir_ = qet_arguments.common_tbt_dir_;
90 #ifdef QET_ALLOW_OVERRIDE_CD_OPTION 91 config_dir_ = qet_arguments.config_dir_;
175 #ifdef QET_ALLOW_OVERRIDE_CED_OPTION 176 common_elements_dir_.clear();
178 #ifdef QET_ALLOW_OVERRIDE_CTBTD_OPTION 179 common_tbt_dir_.clear();
181 #ifdef QET_ALLOW_OVERRIDE_CD_OPTION 197 QFileInfo argument_info(argument);
198 if (argument_info.exists()) {
200 QString can_argument = argument_info.canonicalFilePath();
212 if (file.endsWith(
".elmt")) {
240 if (option == QString(
"--help")) {
244 }
else if (option == QString(
"--version") || option == QString(
"-v")) {
248 }
else if (option == QString(
"--license")) {
254 #ifdef QET_ALLOW_OVERRIDE_CED_OPTION 255 QString ced_arg(
"--common-elements-dir=");
256 if (option.startsWith(ced_arg)) {
257 common_elements_dir_ = option.mid(ced_arg.length());
262 #ifdef QET_ALLOW_OVERRIDE_CTBTD_OPTION 263 QString ctbtd_arg(
"--common-tbt-dir=");
264 if (option.startsWith(ctbtd_arg)) {
265 common_tbt_dir_ = option.mid(ctbtd_arg.length());
269 #ifdef QET_ALLOW_OVERRIDE_CD_OPTION 270 QString cd_arg(
"--config-dir=");
271 if (option.startsWith(cd_arg)) {
272 config_dir_ = option.mid(cd_arg.length());
278 QString ld_arg(
"--lang-dir=");
279 if (option.startsWith(ld_arg)) {
288 #ifdef QET_ALLOW_OVERRIDE_CED_OPTION 293 bool QETArguments::commonElementsDirSpecified()
const {
294 return(!common_elements_dir_.isEmpty());
301 QString QETArguments::commonElementsDir()
const {
302 return(common_elements_dir_);
306 #ifdef QET_ALLOW_OVERRIDE_CTBTD_OPTION 311 bool QETArguments::commonTitleBlockTemplatesDirSpecified()
const {
312 return(!common_tbt_dir_.isEmpty());
319 QString QETArguments::commonTitleBlockTemplatesDir()
const {
320 return(common_tbt_dir_);
324 #ifdef QET_ALLOW_OVERRIDE_CD_OPTION 328 bool QETArguments::configDirSpecified()
const {
329 return(!config_dir_.isEmpty());
336 QString QETArguments::configDir()
const {
QList< QString > project_files_
QList< QString > options_
virtual QList< QString > projectFiles() const
void parseArguments(const QList< QString > &)
virtual QList< QString > arguments() const
void handleOptionArgument(const QString &)
virtual QList< QString > elementFiles() const
QList< QString > tbt_files_
QList< QString > element_files_
void handleFileArgument(const QString &)
virtual bool printVersionRequested() const
virtual bool printLicenseRequested() const
virtual bool langDirSpecified() const
QETArguments(QObject *=nullptr)
virtual QList< QString > options() const
virtual QString langDir() const
QETArguments & operator=(const QETArguments &)
#define TITLEBLOCKS_FILE_EXTENSION
virtual void setArguments(const QList< QString > &)
virtual QList< QString > titleBlockTemplateFiles() const
QList< QString > unknown_options_
virtual bool printHelpRequested() const
virtual QList< QString > unknownOptions() const
virtual QList< QString > files() const