mirror of
https://github.com/rvtr/TwlToolsRED.git
synced 2025-10-31 06:41:18 -04:00
エクスポートHTMLのCSS変更。特記事項を青色に変更。小数点文字がコンマだったときHTMLエクスポート時に"."に置き換え。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@507 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
parent
0e3c3ee283
commit
e7824a9200
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -46,6 +46,20 @@ static System::Xml::XmlElement^ CreateRomInfoListElement(System::Xml::XmlDocumen
|
||||
return tag;
|
||||
}
|
||||
|
||||
static System::Xml::XmlElement^ CreateSpecialRomInfoListElement(System::Xml::XmlDocument ^doc,
|
||||
System::String ^label, System::String ^val, System::String ^type)
|
||||
{
|
||||
System::Xml::XmlElement ^tag = doc->CreateElement("sp-info"); // “Á•ʂȒl
|
||||
tag->SetAttribute( "num", ( s_NodeCount++ ).ToString() );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "label", label );
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "value", val );
|
||||
if( type )
|
||||
{
|
||||
MasterEditorTWL::appendXmlTag( doc, tag, "type", type );
|
||||
}
|
||||
return tag;
|
||||
}
|
||||
|
||||
static System::Xml::XmlElement^ CreateSDKVersionListElement(System::Xml::XmlDocument ^doc,
|
||||
System::String ^version, System::Boolean isStatic)
|
||||
{
|
||||
@ -128,7 +142,7 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labHeaderCRC->Text, this->tboxHeaderCRC->Text, nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labRomCRC->Text, this->tboxWholeCRC->Text, nullptr) );
|
||||
}
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labCaptionEx->Text, this->tboxCaptionEx->Text, nullptr) );
|
||||
tag->AppendChild( CreateSpecialRomInfoListElement(doc, this->labCaptionEx->Text, this->tboxCaptionEx->Text, nullptr) );
|
||||
section->AppendChild(tag);
|
||||
}
|
||||
root->AppendChild(section);
|
||||
@ -184,8 +198,8 @@ void Form1::makeRomInfoListXml(System::Xml::XmlDocument ^doc, System::Boolean wi
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labPrivateSize->Text, this->tboxPrivateSizeFS->Text, nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labSubBannerSize->Text, this->tboxSubBannerSizeFS->Text, nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labTmdSize->Text, this->tboxTmdSizeFS->Text, nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labSumSize->Text + " " + this->labSumSize2->Text,
|
||||
this->tboxSumSize->Text + " (" + this->tboxSumSizeMB->Text + ")", nullptr) );
|
||||
tag->AppendChild( CreateRomInfoListElement(doc, this->labSumSize->Text + " " + this->labSumSize2->Text,
|
||||
this->tboxSumSize->Text + " (" + this->tboxSumSizeMB->Text->Replace( ',', '.' ) + ")", nullptr) );
|
||||
}
|
||||
section->AppendChild(tag);
|
||||
}
|
||||
|
||||
@ -69,8 +69,8 @@
|
||||
}
|
||||
th {
|
||||
font-size: 12px;
|
||||
background-color: #D6D3CE;
|
||||
color: black;
|
||||
background-color: #000000;
|
||||
color: #dddddd;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
@ -171,6 +171,7 @@
|
||||
</div>
|
||||
<hr />
|
||||
<xsl:apply-templates select="error-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="warning-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="error-caption-list" />
|
||||
|
||||
@ -70,8 +70,8 @@
|
||||
}
|
||||
th {
|
||||
font-size: 12px;
|
||||
background-color: #D6D3CE;
|
||||
color: black;
|
||||
background-color: #000000;
|
||||
color: #dddddd;
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
}
|
||||
@ -123,6 +123,10 @@
|
||||
td.value {
|
||||
width: 300px;
|
||||
}
|
||||
td.sp-value {
|
||||
width: 300px;
|
||||
color: #0000FF;
|
||||
}
|
||||
td.type {
|
||||
width: 300px;
|
||||
}
|
||||
@ -174,13 +178,21 @@
|
||||
</div>
|
||||
<hr />
|
||||
<xsl:apply-templates select="basic-rom-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="twl-extended-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="access-control-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="dsi-ware-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="market-and-rating-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="sdk-version-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="middleware-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="error-info" />
|
||||
<hr />
|
||||
<xsl:apply-templates select="warning-info" />
|
||||
<hr />
|
||||
<div class="footer">
|
||||
@ -332,6 +344,23 @@
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="sp-info">
|
||||
<xsl:if test="(@num mod 2)=1">
|
||||
<tr class="odd">
|
||||
<td class="name"><xsl:value-of select="label" /></td>
|
||||
<td class="sp-value"><xsl:value-of select="value" /></td>
|
||||
<td class="type"><xsl:value-of select="type" /></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="(@num mod 2)=0">
|
||||
<tr class="even">
|
||||
<td class="name"><xsl:value-of select="label" /></td>
|
||||
<td class="sp-value"><xsl:value-of select="value" /></td>
|
||||
<td class="type"><xsl:value-of select="type" /></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Make the SDK version table -->
|
||||
|
||||
<xsl:template match="sdk-version-list">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user