src/inc/cheapcgi.h 1.71

1.71 2010/02/08 22:09:22 tdreszer
Needed to rewrite the 2way CB routines. Now called fourWay
Index: src/inc/cheapcgi.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/cheapcgi.h,v
retrieving revision 1.70
retrieving revision 1.71
diff -b -B -U 4 -r1.70 -r1.71
--- src/inc/cheapcgi.h	14 Dec 2009 19:03:59 -0000	1.70
+++ src/inc/cheapcgi.h	8 Feb 2010 22:09:22 -0000	1.71
@@ -212,11 +212,11 @@
 
 void cgiMakeCheckBoxIdAndJS(char *name, boolean checked, char *id, char *javascript);
 /* Make check box with ID and javascript. */
 
-void cgiMakeCheckBox2BoolWithIdAndJS(char *name, boolean checked, boolean enabled,char *id, char *javascript);
-/* Make check box supporting 2 boolean state: checke/unchecked and enabled/disabled
-   Also support ID and javascript.*/
+void cgiMakeCheckBoxFourWay(char *name, boolean checked, boolean enabled, char *id, char *classes, char *moreHtml);
+/* Make check box - with fourWay functionality (checked/unchecked by enabled/disabled
+ * Also makes a shadow hidden variable that supports the 2 boolean states. */
 
 void cgiMakeTextArea(char *varName, char *initialVal, int rowCount, int columnCount);
 /* Make a text area with area rowCount X columnCount and with text: intialVal. */
 
@@ -300,9 +300,12 @@
 				  struct slName *checked, int tableColumns);
 /* Make a table of checkboxes that have the same variable name but different
  * values (same behavior as a multi-select input), with nice labels in menu[]. */
 
-void cgiMakeHiddenVar(char *varName, char *string);
+void cgiMakeHiddenVarWithExtra(char *varName, char *string, char *extra);
+/* Store string in hidden input for next time around. */
+
+#define cgiMakeHiddenVar(name,val) cgiMakeHiddenVarWithExtra((name),(val),NULL)
 /* Store string in hidden input for next time around. */
 
 void cgiContinueHiddenVar(char *varName);
 /* Write CGI var back to hidden input for next time around.