Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/qdoc3/cppcodemarker.cpp

    r2 r561  
    22**
    33** 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])
    56**
    67** This file is part of the tools applications of the Qt Toolkit.
     
    2122** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    2223**
    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.
    2727**
    2828** GNU General Public License Usage
     
    3434** met: http://www.gnu.org/copyleft/gpl.html.
    3535**
    36 ** If you are unsure which license is appropriate for your use, please
    37 ** contact the sales department at qt-sales@nokia.com.
     36** If you
     37** @nokia.com.
    3838** $QT_END_LICENSE$
    3939**
     
    4444*/
    4545
     46
    4647#include "atom.h"
    4748#include "cppcodemarker.h"
     
    194195        break;
    195196    case Node::Function:
     197
     198
    196199        func = (const FunctionNode *) node;
    197200        if (style != SeparateList && !func->returnType().isEmpty())
     
    284287            else {
    285288                for (int i = 0; i < documentedItems.size(); ++i) {
    286                     if (i < MaxEnumValues - 2 || i == documentedItems.size() - 1) {
     289                    if (i < MaxEnumValues1) {
    287290                        if (i != 0)
    288291                            synopsis += ", ";
     
    345348}
    346349
     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
    347391QString CppCodeMarker::markedUpName(const Node *node)
    348392{
     
    412456}
    413457
     458
     459
     460
     461
     462
     463
     464
     465
     466
     467
     468
     469
     470
     471
     472
    414473QList<Section> CppCodeMarker::sections(const InnerNode *inner,
    415474                                       SynopsisStyle style,
     
    422481
    423482        if (style == Summary) {
    424             FastSection privateFunctions(classe, "Private Functions", "private function",
     483            FastSection privateFunctions(classe,
     484                                         "Private Functions",
     485                                         "private function",
    425486                                         "private functions");
    426487            FastSection privateSlots(classe, "Private Slots", "private slot", "private slots");
    427488            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",
    429492                                           "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");
    435509            FastSection publicSignals(classe, "Signals", "signal", "signals");
    436510            FastSection publicSlots(classe, "Public Slots", "public slot", "public slots");
    437511            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");
    439516            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",
    441520                                          "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",
    443524                                             "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",
    447532                                            "static public members");
    448533            FastSection macros(inner, "Macros", "macro", "macros");
     
    496581                            if ((*c)->type() != Node::Variable
    497582                                    || !(*c)->doc().isEmpty())
    498                                 insert(staticPublicMembers, *c, style, status);
     583                                insert(staticPublicMembers,status);
    499584                        }
    500585                        else if ((*c)->type() == Node::Property) {
     
    506591                        }
    507592                        else if ((*c)->type() == Node::Function) {
    508                             insert(publicFunctions, *c, style, status);
     593                            if (!insertReimpFunc(publicFunctions,*c,status))
     594                                insert(publicFunctions, *c, style, status);
    509595                        }
    510596                        else {
     
    519605                            if ((*c)->type() != Node::Variable
    520606                                    || !(*c)->doc().isEmpty())
    521                                 insert(staticProtectedMembers, *c, style, status);
     607                                insert(staticProtectedMembers,status);
    522608                        }
    523609                        else if ((*c)->type() == Node::Variable) {
    524610                            if (!(*c)->doc().isEmpty())
    525                                 insert(protectedVariables, *c, style, status);
     611                                insert(protectedVariables,status);
    526612                        }
    527613                        else if ((*c)->type() == Node::Function) {
    528                             insert(protectedFunctions, *c, style, status);
     614                            if (!insertReimpFunc(protectedFunctions,*c,status))
     615                                insert(protectedFunctions, *c, style, status);
    529616                        }
    530617                        else {
     
    539626                            if ((*c)->type() != Node::Variable
    540627                                    || !(*c)->doc().isEmpty())
    541                                 insert(staticPrivateMembers, *c, style, status);
     628                                insert(staticPrivateMembers,status);
    542629                        }
    543630                        else if ((*c)->type() == Node::Function) {
    544                             insert(privateFunctions, *c, style, status);
     631                            if (!insertReimpFunc(privateFunctions,*c,status))
     632                                insert(privateFunctions, *c, style, status);
    545633                        }
    546634                        else {
    547                             insert(privateTypes, *c, style, status);
     635                            insert(privateTypes,status);
    548636                        }
    549637                    }
     
    662750                                   "namespace",
    663751                                   "namespaces");
    664             FastSection classes(inner, "Classes", "class", "classes");
     752            FastSection classes(inner,
     753                                "Classes",
     754                                "class",
     755                                "classes");
    665756            FastSection types(inner,
    666                               style == Summary ? "Types" : "Type Documentation",
     757                              style == Summary ?
     758                              "Types" : "Type Documentation",
    667759                              "type",
    668760                              "types");
    669761            FastSection functions(inner,
    670                                   style == Summary ? "Functions" : "Function Documentation",
     762                                  style == Summary ?
     763                                  "Functions" : "Function Documentation",
    671764                                  "function",
    672765                                  "functions");
    673766            FastSection macros(inner,
    674                                style == Summary ? "Macros" : "Macro Documentation",
     767                               style == Summary ?
     768                               "Macros" : "Macro Documentation",
    675769                               "macro",
    676770                               "macros");
     
    10071101}
    10081102
     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
    10091226QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.