diff options
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/config.l b/src/config.l index 702f652..14db2c1 100644 --- a/src/config.l +++ b/src/config.l @@ -963,6 +963,20 @@ void Config::check() } s=aliasList.next(); } + + // check dot image format + QCString &dotImageFormat=Config_getEnum("DOT_IMAGE_FORMAT"); + dotImageFormat=dotImageFormat.stripWhiteSpace(); + if (dotImageFormat.isEmpty()) + { + dotImageFormat = "gif"; + } + else if (dotImageFormat!="gif" && dotImageFormat!="png" && dotImageFormat!="jpg") + { + config_err("Invalid value for DOT_IMAGE_FORMAT: `%s'. Using the default.\n",dotImageFormat.data()); + dotImageFormat = "gif"; + } + // check dot path QCString &dotPath = Config_getString("DOT_PATH"); @@ -2248,6 +2262,17 @@ void Config::create() TRUE ); cb->addDependency("HAVE_DOT"); + ce = addEnum( + "DOT_IMAGE_FORMAT", + "The DOT_IMAGE_FORMAT tag can be used to set the image format of the images \n" + "generated by dot. Possible values are gif, jpg, and png\n" + "If left blank gif will be used. \n", + "gif" + ); + ce->addValue("gif"); + ce->addValue("jpg"); + ce->addValue("png"); + ce->addDependency("HAVE_DOT"); cs = addString( "DOT_PATH", "The tag DOT_PATH can be used to specify the path where the dot tool can be \n" |