Changeset 561 for trunk/tools/qdoc3/cppcodemarker.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/cppcodemarker.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 44 44 */ 45 45 46 46 47 #include "atom.h" 47 48 #include "cppcodemarker.h" … … 194 195 break; 195 196 case Node::Function: 197 198 196 199 func = (const FunctionNode *) node; 197 200 if (style != SeparateList && !func->returnType().isEmpty()) … … 284 287 else { 285 288 for (int i = 0; i < documentedItems.size(); ++i) { 286 if (i < MaxEnumValues - 2 || i == documentedItems.size() -1) {289 if (i < MaxEnumValues1) { 287 290 if (i != 0) 288 291 synopsis += ", "; … … 345 348 } 346 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 347 391 QString CppCodeMarker::markedUpName(const Node *node) 348 392 { … … 412 456 } 413 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 414 473 QList<Section> CppCodeMarker::sections(const InnerNode *inner, 415 474 SynopsisStyle style, … … 422 481 423 482 if (style == Summary) { 424 FastSection privateFunctions(classe, "Private Functions", "private function", 483 FastSection privateFunctions(classe, 484 "Private Functions", 485 "private function", 425 486 "private functions"); 426 487 FastSection privateSlots(classe, "Private Slots", "private slot", "private slots"); 427 488 FastSection privateTypes(classe, "Private Types", "private type", "private types"); 428 FastSection protectedFunctions(classe, "Protected Functions", "protected function", 489 FastSection protectedFunctions(classe, 490 "Protected Functions", 491 "protected function", 429 492 "protected functions"); 430 FastSection protectedSlots(classe, "Protected Slots", "protected slot", "protected slots"); 431 FastSection protectedTypes(classe, "Protected Types", "protected type", "protected types"); 432 FastSection protectedVariables(classe, "Protected Variables", "protected type", "protected variables"); 433 FastSection publicFunctions(classe, "Public Functions", "public function", 434 "public functions"); 493 FastSection protectedSlots(classe, 494 "Protected Slots", 495 "protected slot", 496 "protected slots"); 497 FastSection protectedTypes(classe, 498 "Protected Types", 499 "protected type", 500 "protected types"); 501 FastSection protectedVariables(classe, 502 "Protected Variables", 503 "protected type", 504 "protected variables"); 505 FastSection publicFunctions(classe, 506 "Public Functions", 507 "public function", 508 "public functions"); 435 509 FastSection publicSignals(classe, "Signals", "signal", "signals"); 436 510 FastSection publicSlots(classe, "Public Slots", "public slot", "public slots"); 437 511 FastSection publicTypes(classe, "Public Types", "public type", "public types"); 438 FastSection publicVariables(classe, "Public Variables", "public type", "public variables"); 512 FastSection publicVariables(classe, 513 "Public Variables", 514 "public type", 515 "public variables"); 439 516 FastSection properties(classe, "Properties", "property", "properties"); 440 FastSection relatedNonMembers(classe, "Related Non-Members", "related non-member", 517 FastSection relatedNonMembers(classe, 518 "Related Non-Members", 519 "related non-member", 441 520 "related non-members"); 442 FastSection staticPrivateMembers(classe, "Static Private Members", "static private member", 521 FastSection staticPrivateMembers(classe, 522 "Static Private Members", 523 "static private member", 443 524 "static private members"); 444 FastSection staticProtectedMembers(classe, "Static Protected Members", 445 "static protected member", "static protected members"); 446 FastSection staticPublicMembers(classe, "Static Public Members", "static public member", 525 FastSection staticProtectedMembers(classe, 526 "Static Protected Members", 527 "static protected member", 528 "static protected members"); 529 FastSection staticPublicMembers(classe, 530 "Static Public Members", 531 "static public member", 447 532 "static public members"); 448 533 FastSection macros(inner, "Macros", "macro", "macros"); … … 496 581 if ((*c)->type() != Node::Variable 497 582 || !(*c)->doc().isEmpty()) 498 insert(staticPublicMembers, *c, style,status);583 insert(staticPublicMembers,status); 499 584 } 500 585 else if ((*c)->type() == Node::Property) { … … 506 591 } 507 592 else if ((*c)->type() == Node::Function) { 508 insert(publicFunctions, *c, style, status); 593 if (!insertReimpFunc(publicFunctions,*c,status)) 594 insert(publicFunctions, *c, style, status); 509 595 } 510 596 else { … … 519 605 if ((*c)->type() != Node::Variable 520 606 || !(*c)->doc().isEmpty()) 521 insert(staticProtectedMembers, *c, style,status);607 insert(staticProtectedMembers,status); 522 608 } 523 609 else if ((*c)->type() == Node::Variable) { 524 610 if (!(*c)->doc().isEmpty()) 525 insert(protectedVariables, *c, style,status);611 insert(protectedVariables,status); 526 612 } 527 613 else if ((*c)->type() == Node::Function) { 528 insert(protectedFunctions, *c, style, status); 614 if (!insertReimpFunc(protectedFunctions,*c,status)) 615 insert(protectedFunctions, *c, style, status); 529 616 } 530 617 else { … … 539 626 if ((*c)->type() != Node::Variable 540 627 || !(*c)->doc().isEmpty()) 541 insert(staticPrivateMembers, *c, style,status);628 insert(staticPrivateMembers,status); 542 629 } 543 630 else if ((*c)->type() == Node::Function) { 544 insert(privateFunctions, *c, style, status); 631 if (!insertReimpFunc(privateFunctions,*c,status)) 632 insert(privateFunctions, *c, style, status); 545 633 } 546 634 else { 547 insert(privateTypes, *c, style,status);635 insert(privateTypes,status); 548 636 } 549 637 } … … 662 750 "namespace", 663 751 "namespaces"); 664 FastSection classes(inner, "Classes", "class", "classes"); 752 FastSection classes(inner, 753 "Classes", 754 "class", 755 "classes"); 665 756 FastSection types(inner, 666 style == Summary ? "Types" : "Type Documentation", 757 style == Summary ? 758 "Types" : "Type Documentation", 667 759 "type", 668 760 "types"); 669 761 FastSection functions(inner, 670 style == Summary ? "Functions" : "Function Documentation", 762 style == Summary ? 763 "Functions" : "Function Documentation", 671 764 "function", 672 765 "functions"); 673 766 FastSection macros(inner, 674 style == Summary ? "Macros" : "Macro Documentation", 767 style == Summary ? 768 "Macros" : "Macro Documentation", 675 769 "macro", 676 770 "macros"); … … 1007 1101 } 1008 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1009 1226 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.