Index: openacs-4/packages/acs-developer-support/acs-developer-support.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/acs-developer-support.info,v
diff -u -r1.14 -r1.15
--- openacs-4/packages/acs-developer-support/acs-developer-support.info 13 Dec 2003 15:03:00 -0000 1.14
+++ openacs-4/packages/acs-developer-support/acs-developer-support.info 4 May 2004 20:51:37 -0000 1.15
@@ -16,16 +16,18 @@
Developer support stores timing and other logged information for requests
to support debugging and tuning and supports user switching and a Tcl Sell to invoke arbitrary tcl code on the server.
+ 0
-
+
+
+ @stub_path@
+
+
+
+
Index: openacs-4/packages/acs-developer-support/lib/adp-reveal.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/lib/Attic/adp-reveal.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-developer-support/lib/adp-reveal.tcl 4 May 2004 20:51:37 -0000 1.1
@@ -0,0 +1,5 @@
+set ds_adp_box_class [ds_adp_box_class]
+set ds_adp_file_class [ds_adp_file_class]
+set apidoc_path [string range $ds_adp_stub [string length [acs_root_dir]] end].$ds_adp_template_extension
+set stub_path [join [split $ds_adp_stub /] " / "]
+set ds_adp_output_class [ds_adp_output_class]
Index: openacs-4/packages/acs-developer-support/lib/toolbar.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/lib/toolbar.adp,v
diff -u -r1.9 -r1.10
--- openacs-4/packages/acs-developer-support/lib/toolbar.adp 17 Mar 2004 13:17:12 -0000 1.9
+++ openacs-4/packages/acs-developer-support/lib/toolbar.adp 4 May 2004 20:51:37 -0000 1.10
@@ -10,6 +10,7 @@
USR
DB
TRN
+ ADP
Index: openacs-4/packages/acs-developer-support/lib/toolbar.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/lib/toolbar.tcl,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/acs-developer-support/lib/toolbar.tcl 11 Jan 2004 16:37:03 -0000 1.4
+++ openacs-4/packages/acs-developer-support/lib/toolbar.tcl 4 May 2004 20:51:37 -0000 1.5
@@ -25,6 +25,10 @@
set translator_toggle_url [export_vars -base "/acs-lang/admin/translator-mode-toggle" { { return_url [ad_return_url] } }]
set translator_on [ad_decode $translator_p 1 "on" "off"]
+ set adp_p [ds_adp_reveal_enabled_p]
+ set adp_toggle_url {javascript:void(d=document);void(el=d.getElementsByTagName('span'));for(i=0;iturn it off)" \
"off (turn it on)"]
+ADP reveal is currently
+[ad_decode $adp_reveal_enabled_p 1 \
+ "on (turn it off)" \
+ "off (turn it on)"]
+
Help on edit and code links.
Index: openacs-4/packages/acs-developer-support/www/set-adp-reveal-enabled.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/Attic/set-adp-reveal-enabled.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/acs-developer-support/www/set-adp-reveal-enabled.tcl 4 May 2004 20:51:38 -0000 1.1
@@ -0,0 +1,15 @@
+ad_page_contract {
+
+ @author Lars Pind (lars@pinds.com)
+ @creation-date 2003-10-28
+ @cvs-id $Id: set-adp-reveal-enabled.tcl,v 1.1 2004/05/04 20:51:38 andrewg Exp $
+} {
+ enabled_p
+ {return_url "."}
+}
+
+ds_require_permission [ad_conn package_id] "admin"
+
+ds_set_adp_reveal_enabled $enabled_p
+
+ad_returnredirect $return_url
Index: openacs-4/packages/acs-developer-support/www/resources/acs-developer-support.css
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-developer-support/www/resources/acs-developer-support.css,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/acs-developer-support/www/resources/acs-developer-support.css 29 Mar 2004 21:02:35 -0000 1.2
+++ openacs-4/packages/acs-developer-support/www/resources/acs-developer-support.css 4 May 2004 20:51:38 -0000 1.3
@@ -54,9 +54,42 @@
display: inline;
}
+/* ADP Reveal mode */
+div.developer-support-adp-box-on {
+ background-color: #fcc;
+ border-style: solid;
+ border-color: #f33;
+ border-width: 1px 1px 1px 1px;
+}
+div.developer-support-adp-box-off {
+ background-color: inherit;
+ border-width: 0px;
+}
+span.developer-support-adp-file-on {
+ font-size: 80%;
+}
+
+span.developer-support-adp-file-off {
+ display: none;
+}
+
+div.developer-support-adp-output-on {
+ background-color: #fff;
+ border-style: solid;
+ border-color: #777;
+ border-width: 1px 0px 0px 0px;
+ padding: 3px;
+}
+
+div.developer-support-adp-output-off {
+ background-color: inherit;
+ border-width: 0px;
+ padding: 0px;
+}
+
/* Developer-support footer */
.developer-support-footer {