Changeset 561 for trunk/tools/qdoc3/main.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/tools/qdoc3/main.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the tools applications of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 44 44 */ 45 45 46 #include <qglobal.h> 46 47 #include <QtCore> 47 48 #include <stdlib.h> … … 95 96 96 97 static bool slow = false; 98 static bool showInternal = false; 99 static bool obsoleteLinks = false; 97 100 static QStringList defines; 98 101 static QHash<QString, Tree *> trees; 99 100 //static int doxygen = 0;101 102 102 103 /*! … … 122 123 Location::information(tr("Usage: qdoc [options] file1.qdocconf ...\n" 123 124 "Options:\n" 124 " -help "125 " -help " 125 126 "Display this information and exit\n" 126 " -version "127 " -version " 127 128 "Display version of qdoc and exit\n" 128 " -D<name> "129 " -D<name> " 129 130 "Define <name> as a macro while parsing sources\n" 130 " -slow " 131 "Turn on features that slow down qdoc") ); 131 " -slow " 132 "Turn on features that slow down qdoc\n" 133 " -showinternal " 134 "Include stuff marked internal\n" 135 " -obsoletelinks " 136 "Report links from obsolete items to non-obsolete items") ); 132 137 } 133 138 … … 137 142 static void printVersion() 138 143 { 139 Location::information(tr("qdoc version 4.4.1")); 144 QString s = QString(tr("qdoc version ")) + QString(QT_VERSION_STR); 145 Location::information(s); 140 146 } 141 147 … … 161 167 } 162 168 config.setStringList(CONFIG_SLOW, QStringList(slow ? "true" : "false")); 169 config.setStringList(CONFIG_SHOWINTERNAL, 170 QStringList(showInternal ? "true" : "false")); 171 config.setStringList(CONFIG_OBSOLETELINKS, 172 QStringList(obsoleteLinks ? "true" : "false")); 163 173 164 174 /* … … 223 233 Location langLocation = config.lastLocation(); 224 234 225 #ifdef QDOC2DOX226 // qdoc -> doxygen227 if (doxygen == 2) {228 qDebug() << "READING anchors.txt";229 DoxWriter::readAnchors();230 qDebug() << "READING title maps";231 DoxWriter::readTitles();232 qDebug() << "READING member multimaps";233 DoxWriter::readMembers();234 }235 #endif236 237 235 /* 238 236 Initialize the tree where all the parsed sources will be stored. … … 321 319 tree->resolveTargets(); 322 320 323 #ifdef QDOC2DOX324 // qdoc -> doxygen325 if (doxygen == 1) {326 DoxWriter::writeAnchors();327 DoxWriter::writeTitles();328 DoxWriter::writeMembers();329 }330 331 if (doxygen == 0) {332 #endif333 334 321 /* 335 322 Now the tree has been built, and all the stuff that needed … … 353 340 if (!tagFile.isEmpty()) 354 341 tree->generateTagFile(tagFile); 355 342 356 343 tree->setVersion(""); 357 344 Generator::terminate(); 358 359 #ifdef QDOC2DOX360 }361 #endif362 363 345 CodeParser::terminate(); 364 346 CodeMarker::terminate(); … … 371 353 foreach (QTranslator *translator, translators) 372 354 delete translator; 373 374 355 delete tree; 375 356 } … … 455 436 slow = true; 456 437 } 457 458 #ifdef QDOC2DOX 459 else if (opt == "-doxygen1") { 460 // qdoc -> doxygen 461 // Don't use this; it isn't ready yet. 462 // Now it's a fossil. 463 qDebug() << "doxygen pass 1"; 464 doxygen = 1; 465 DoxWriter::setDoxPass(1); 438 else if (opt == "-showinternal") { 439 showInternal = true; 466 440 } 467 else if (opt == "-doxygen2") { 468 // qdoc -> doxygen 469 // Don't use this; it isn't ready yet. 470 // Now it's a fossil. 471 qDebug() << "doxygen pass 2"; 472 doxygen = 2; 473 DoxWriter::setDoxPass(2); 441 else if (opt == "-obsoletelinks") { 442 obsoleteLinks = true; 474 443 } 475 #endif476 477 444 else { 478 445 qdocFiles.append(opt);
Note:
See TracChangeset
for help on using the changeset viewer.