MCPcopy Create free account
hub / github.com/Geant4/geant4 / CreateHTML

Method CreateHTML

source/intercoms/src/G4UIcommandTree.cc:493–677  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

491
492// --------------------------------------------------------------------
493void G4UIcommandTree::CreateHTML(const G4String& sideBar)
494{
495 G4String ofileName = CreateFileName(pathName);
496 std::ofstream oF(ofileName, std::ios::out);
497
498 oF << "<html><head><title>Commands in " << ModStr(pathName) << "</title></head>" << G4endl;
499 oF << "<style> \
500 table,table td,table th { \
501 border:1px solid #eee \
502 } \
503 table td,table th { \
504 padding:5px 20px; \
505 line-height:1.3; \
506 text-align:inherit \
507 } \
508 a { \
509 color:#17a81a; \
510 text-decoration:none; \
511 transition-duration:0.3s \
512 } \
513 a:hover { \
514 color:#17a81a \
515 } \
516 table { \
517 border-collapse:collapse; \
518 border-spacing:0; \
519 margin-bottom:5px; \
520 } \
521 h1 { \
522 font-size:2.25em; \
523 font-weight:300; \
524 letter-spacing:-1px; \
525 line-height:1.15em; \
526 margin-bottom:0.5em; \
527 word-wrap:break-word \
528 } \
529 h2 { \
530 font-size:1.5em; \
531 font-weight:300; \
532 letter-spacing:-1px; \
533 line-height:1.15em; \
534 margin-bottom:0.5em; \
535 word-wrap:break-word \
536 } \
537 h3 { \
538 color:#26282a; \
539 font-weight:300; \
540 font-size:1.3em; \
541 padding:15px 0 15px 0; \
542 border-bottom:2px #eee solid; \
543 word-wrap:break-word \
544 } \
545 .sidebar { \
546 display:block; \
547 position:relative; \
548 position:sticky; \
549 float:left; \
550 -webkit-box-sizing:border-box; \

Callers

nothing calls this directly

Calls 12

GetGuidanceEntriesMethod · 0.80
GetParameterEntriesMethod · 0.80
GetParameterMethod · 0.80
GetStateListMethod · 0.80
GetParameterTypeMethod · 0.80
IsOmittableMethod · 0.80
GetCurrentAsDefaultMethod · 0.80
emptyMethod · 0.45
GetTitleMethod · 0.45
sizeMethod · 0.45
GetRangeMethod · 0.45
GetStateStringMethod · 0.45

Tested by

no test coverage detected