From 78266296fd201f0766b7e79319151bb4f9231e28 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 22 Sep 2008 00:11:51 +0000 Subject: [PATCH] Improve scan-view report bug interface. - Pulled css out into Resources/scanview.css git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56416 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/scan-view/Resources/bugcatcher.ico | Bin 0 -> 318 bytes tools/scan-view/Resources/scanview.css | 66 +++++++++++++++ tools/scan-view/ScanView.py | 100 +++++++++++++++-------- 3 files changed, 133 insertions(+), 33 deletions(-) create mode 100755 tools/scan-view/Resources/bugcatcher.ico create mode 100644 tools/scan-view/Resources/scanview.css diff --git a/tools/scan-view/Resources/bugcatcher.ico b/tools/scan-view/Resources/bugcatcher.ico new file mode 100755 index 0000000000000000000000000000000000000000..22d39b592036d270a079f67faaa78bb2fb61d2f8 GIT binary patch literal 318 zcmbtOyAA^(3^P)tj>pvb#{Oa0E*m4i#9tj-&L&gmCM3oWB!I%MwLfDa&ih@ z+<@<$OJ2SZ_cYyiMw?fTW6nuG_CbVh9JVBJ)p~CTKa!^UOP8f>}P{H6!-8 duTG;yAB%=DKoZ@ysC-Cgj0qwgO8U-U^#D_td>a4& literal 0 HcmV?d00001 diff --git a/tools/scan-view/Resources/scanview.css b/tools/scan-view/Resources/scanview.css new file mode 100644 index 0000000000..280ce900b8 --- /dev/null +++ b/tools/scan-view/Resources/scanview.css @@ -0,0 +1,66 @@ +body { color:#000000; background-color:#ffffff } +body { font-family: Helvetica, sans-serif; font-size:9pt } +h1 { font-size:16pt } +h3 { font-size:12pt } +table { font-size:9pt } +table { border-spacing: 0px; border: 1px solid black } +table thead { + background-color:#eee; color:#666666; + font-weight: bold; cursor: default; + text-align:center; + font-weight: bold; font-family: Verdana; + white-space:nowrap; +} +.W { font-size:0px } +th, td { padding:5px; padding-left:8px; text-align:left } +td.SUMM_DESC { padding-left:12px } +td.DESC { white-space:pre } +td.Q { text-align:right } +td { text-align:left } +td.View a { + white-space: nowrap; + -webkit-appearance:square-button; + padding-left:1em; + padding-right:1em; + padding-top:0.5ex; + padding-bottom:0.5ex; + text-decoration:none; + color:black } +tbody.scrollContent { overflow:auto } + +table.form_group { + background-color: #ccc; + border: 1px solid #333; + padding: 2px; +} + +table.form_inner_group { + background-color: #ccc; + border: 1px solid #333; + padding: 0px; +} + +table.form { + background-color: #999; + border: 1px solid #333; + padding: 5px auto; +} + +td.form_label { + text-align: right; + vertical-align: top; +} +/* For one line entires */ +td.form_clabel { + text-align: right; + vertical-align: center; +} +td.form_value { + text-align: left; + vertical-align: top; +} +td.form_submit { + text-align: right; + vertical-align: top; +} + diff --git a/tools/scan-view/ScanView.py b/tools/scan-view/ScanView.py index 9e43ddf881..c213d3a384 100644 --- a/tools/scan-view/ScanView.py +++ b/tools/scan-view/ScanView.py @@ -212,7 +212,10 @@ class ScanViewRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): # Send back an initial response and wait for the report to # finish. initial_response = """ -Filing Report + + Filing Report + +

Filing Report

Report: %(report)s
@@ -269,12 +272,25 @@ Line: %s for i,r in enumerate(self.server.reporters): reporterSelections.append(''%(i,r.getName())) - options = '\n'.join(['%s:
'%(o,r.getName(),o) for o in r.getParameterNames()]) + options = '\n'.join(["""\ + + %s: + +"""%(o,r.getName(),o) for o in r.getParameterNames()]) if i==0: - display = 'inline' + display = '' else: display = 'none' - reporterOptions.append('
\n

%s Options

%s\n
'%(r.getName(),display,r.getName(),options)) + reporterOptions.append("""\ + + %s Options + + +%s +
+ + +"""%(r.getName(),display,r.getName(),options)) reporterSelections = '\n'.join(reporterSelections) reporterOptionsDivs = '\n'.join(reporterOptions) reportersArray = '[%s]'%(','.join([`r.getName()` for r in self.server.reporters])) @@ -282,6 +298,7 @@ Line: %s result = """ File Report +

File Report

-
-Title: -
-Description:
+ + + + + +
+ + + + + + + + +
Title: + +
Description:
-
- -Method:
-
+ +
+
+ + + + + %(reporterOptionsDivs)s -
- +
Method: + +
+
+
+ +
+