Changeset 355 for branches


Ignore:
Timestamp:
10/15/13 04:50:04 (6 years ago)
Author:
jls17
Message:
  • linking between field details and overview of schema-fields is working now
Location:
branches/work_304
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/work_304/doc/DocFieldDetails.cpp

    r317 r355  
    5151                if (overlayHelper.IsOriginal() || overlayHelper.IsCustom()) 
    5252                        contHeadStrm << CAREnum::GetOverlayTypeString(schemaOverlayType); 
    53                 contHeadStrm << MenuSeparator << CAREnum::DataType(this->field.GetDataType()) << " " << CWebUtil::Link("Field",  CPageParams(PAGE_DETAILS, &schema), "", rootLevel) << endl; 
     53                contHeadStrm << MenuSeparator << CAREnum::DataType(this->field.GetDataType()) << " " << CWebUtil::Link("Field",  CPageParams(PAGE_OVERVIEW, AR_STRUCT_ITEM_XML_FIELD, &field), "", rootLevel) << endl; 
    5454                contHeadStrm << MenuSeparator << CWebUtil::ObjName(this->field.GetName()) << endl; 
    5555                contHeadStrm << " (Id: " << this->field.GetFieldId() << ")" << CAREnum::GetOverlayTypeString(overlayType) << endl; 
  • branches/work_304/output/FileNaming.cpp

    r307 r355  
    314314//////////////////////////////////////////////////////////////////// 
    315315// for schema fields                                              // 
     316class SchemaFieldOverview : public IFileStructure 
     317{ 
     318public: 
     319        SchemaFieldOverview(const CARField* fld) : obj(fld) {  } 
     320        virtual string GetFileName() const { return FILE_INDEX; } 
     321        virtual string GetFullFileName() const { return GetPath() + "/" + CWebUtil::DocName(GetFileName()) + "#tab-2"; } 
     322        virtual string GetPath() const { return string(DIR_SCHEMA) + "/" + obj->GetSchema().FileID(); } 
     323        virtual unsigned int GetRootLevel() const { return 2; } 
     324private: 
     325        const CARField* obj; 
     326}; 
     327 
    316328class SchemaFieldDetail : public IFileStructure 
    317329{ 
     
    13091321                                        } 
    13101322                                        break; 
     1323                                case AR_STRUCT_ITEM_XML_FIELD: assert(params.obj1 != NULL && params.obj1->GetServerObjectTypeXML() == AR_STRUCT_ITEM_XML_FIELD); return new SchemaFieldOverview(static_cast<const CARField*>(params.obj1)); 
    13111324                                case AR_STRUCT_ITEM_XML_VUI: assert(params.obj1 != NULL && params.obj1->GetServerObjectTypeXML() == AR_STRUCT_ITEM_XML_SCHEMA); return new SchemaVUIOverview(static_cast<const CARSchema*>(params.obj1)); 
    13121325#if AR_CURRENT_API_VERSION >= AR_API_VERSION_750 
     
    15291542}; 
    15301543 
     1544class ObjectNameSchemaFieldOverview : public IFileStructure 
     1545{ 
     1546public: 
     1547        ObjectNameSchemaFieldOverview(const CARField* fld) : obj(fld) {  } 
     1548        virtual string GetFileName() const { return FILE_INDEX; } 
     1549        virtual string GetFullFileName() const { return GetPath() + "/" + CWebUtil::DocName(GetFileName()) + "#tab-2"; } 
     1550        virtual string GetPath() const { return string(DIR_SCHEMA) + "/" + GetFileNameOfObjectName(obj->GetSchema().GetName(), IsObjectOverlaid(&obj->GetSchema())); } 
     1551        virtual unsigned int GetRootLevel() const { return 2; } 
     1552private: 
     1553        const CARField* obj; 
     1554}; 
     1555 
    15311556class ObjectNameSchemaFieldDetail : public IFileStructure 
    15321557{ 
     
    24132438                                        } 
    24142439                                        break; 
     2440                                case AR_STRUCT_ITEM_XML_FIELD: return new ObjectNameSchemaFieldOverview(static_cast<const CARField*>(params.obj1)); 
    24152441                                case AR_STRUCT_ITEM_XML_VUI: return new ObjectNameSchemaVUIOverview(static_cast<const CARSchema*>(params.obj1)); 
    24162442#if AR_CURRENT_API_VERSION >= AR_API_VERSION_750 
Note: See TracChangeset for help on using the changeset viewer.