equal
deleted
inserted
replaced
1 /****************************************************************************** |
1 /****************************************************************************** |
2 * |
2 * |
3 * |
3 * |
4 * |
4 * |
5 * Copyright (C) 1997-2008 by Dimitri van Heesch. |
5 * Copyright (C) 1997-2010 by Dimitri van Heesch. |
6 * |
6 * |
7 * Permission to use, copy, modify, and distribute this software and its |
7 * Permission to use, copy, modify, and distribute this software and its |
8 * documentation under the terms of the GNU General Public License is hereby |
8 * documentation under the terms of the GNU General Public License is hereby |
9 * granted. No representations are made about the suitability of this software |
9 * granted. No representations are made about the suitability of this software |
10 * for any purpose. It is provided "as is" without express or implied warranty. |
10 * for any purpose. It is provided "as is" without express or implied warranty. |
1191 dotImageFormat=dotImageFormat.stripWhiteSpace(); |
1191 dotImageFormat=dotImageFormat.stripWhiteSpace(); |
1192 if (dotImageFormat.isEmpty()) |
1192 if (dotImageFormat.isEmpty()) |
1193 { |
1193 { |
1194 dotImageFormat = "png"; |
1194 dotImageFormat = "png"; |
1195 } |
1195 } |
1196 else if (dotImageFormat!="gif" && dotImageFormat!="png" && dotImageFormat!="jpg") |
1196 //else if (dotImageFormat!="gif" && dotImageFormat!="png" && dotImageFormat!="jpg") |
1197 { |
1197 //{ |
1198 config_err("Invalid value for DOT_IMAGE_FORMAT: `%s'. Using the default.\n",dotImageFormat.data()); |
1198 // config_err("Invalid value for DOT_IMAGE_FORMAT: `%s'. Using the default.\n",dotImageFormat.data()); |
1199 dotImageFormat = "png"; |
1199 // dotImageFormat = "png"; |
1200 } |
1200 //} |
1201 |
1201 |
1202 |
1202 |
1203 // check dot path |
1203 // check dot path |
1204 QCString &dotPath = Config_getString("DOT_PATH"); |
1204 QCString &dotPath = Config_getString("DOT_PATH"); |
1205 if (!dotPath.isEmpty()) |
1205 if (!dotPath.isEmpty()) |
1360 } |
1360 } |
1361 |
1361 |
1362 // check QHP creation requirements |
1362 // check QHP creation requirements |
1363 if (Config_getBool("GENERATE_QHP")) |
1363 if (Config_getBool("GENERATE_QHP")) |
1364 { |
1364 { |
1365 bool qhp=TRUE; |
|
1366 if (!Config_getBool("GENERATE_HTML")) |
|
1367 { |
|
1368 config_err("Error: GENERATE_QHP=YES requires GENERATE_HTML=YES. Disabling QHP output.\n"); |
|
1369 qhp=FALSE; |
|
1370 } |
|
1371 |
|
1372 if (Config_getString("QHP_NAMESPACE").isEmpty()) |
1365 if (Config_getString("QHP_NAMESPACE").isEmpty()) |
1373 { |
1366 { |
1374 config_err("Error: GENERATE_QHP=YES requires QHP_NAMESPACE to be set. Disabling QHP output.\n"); |
1367 config_err("Error: GENERATE_QHP=YES requires QHP_NAMESPACE to be set. Using 'org.doxygen.doc' as default!.\n"); |
1375 qhp=FALSE; |
1368 Config_getString("QHP_NAMESPACE")="org.doxygen.doc"; |
1376 } |
1369 } |
1377 |
1370 |
1378 if (Config_getString("QHP_VIRTUAL_FOLDER").isEmpty()) |
1371 if (Config_getString("QHP_VIRTUAL_FOLDER").isEmpty()) |
1379 { |
1372 { |
1380 config_err("Error: GENERATE_QHP=YES requires QHP_VIRTUAL_FOLDER to be set. Disabling QHP output.\n"); |
1373 config_err("Error: GENERATE_QHP=YES requires QHP_VIRTUAL_FOLDER to be set. Using 'doc' as default!\n"); |
1381 qhp=FALSE; |
1374 Config_getString("QHP_VIRTUAL_FOLDER")="doc"; |
1382 } |
1375 } |
1383 |
|
1384 Config_getBool("GENERATE_QHP")=qhp; |
|
1385 } |
1376 } |
1386 |
1377 |
1387 if (Config_getBool("OPTIMIZE_OUTPUT_JAVA") && Config_getBool("INLINE_INFO")) |
1378 if (Config_getBool("OPTIMIZE_OUTPUT_JAVA") && Config_getBool("INLINE_INFO")) |
1388 { |
1379 { |
1389 // don't show inline info for Java output, since Java has no inline |
1380 // don't show inline info for Java output, since Java has no inline |
1393 |
1384 |
1394 int &depth = Config_getInt("MAX_DOT_GRAPH_DEPTH"); |
1385 int &depth = Config_getInt("MAX_DOT_GRAPH_DEPTH"); |
1395 if (depth==0) |
1386 if (depth==0) |
1396 { |
1387 { |
1397 depth=1000; |
1388 depth=1000; |
|
1389 } |
|
1390 |
|
1391 int &hue = Config_getInt("HTML_COLORSTYLE_HUE"); |
|
1392 if (hue<0) |
|
1393 { |
|
1394 hue=0; |
|
1395 } |
|
1396 else if (hue>=360) |
|
1397 { |
|
1398 hue=hue%360; |
|
1399 } |
|
1400 |
|
1401 int &sat = Config_getInt("HTML_COLORSTYLE_SAT"); |
|
1402 if (sat<0) |
|
1403 { |
|
1404 sat=0; |
|
1405 } |
|
1406 else if (sat>255) |
|
1407 { |
|
1408 sat=255; |
|
1409 } |
|
1410 int &gamma = Config_getInt("HTML_COLORSTYLE_GAMMA"); |
|
1411 if (gamma<40) |
|
1412 { |
|
1413 gamma=40; |
|
1414 } |
|
1415 else if (gamma>240) |
|
1416 { |
|
1417 gamma=240; |
1398 } |
1418 } |
1399 |
1419 |
1400 |
1420 |
1401 // add default words if needed |
1421 // add default words if needed |
1402 QStrList &annotationFromBrief = Config_getList("ABBREVIATE_BRIEF"); |
1422 QStrList &annotationFromBrief = Config_getList("ABBREVIATE_BRIEF"); |