064a6ba7c9f9e4a2055cd8363f6128ac475c576e
galt
  Fri Feb 25 15:30:32 2011 -0800
squashed my dev branch bigNetErrDisplay to test making code review easier; this code helps hgTracks display big network warnings and errors with a yellow background; it supports bigWig, bigBed, bam, and multiWig; In the case of multiWig, it can only draw the yellow background once at the beginning, and is limited to only drawing the first track that has a network error since overlapping multiple error messages would be unreadable
diff --git src/hg/hgTracks/bigWarn.h src/hg/hgTracks/bigWarn.h
new file mode 100644
index 0000000..84ccb18
--- /dev/null
+++ src/hg/hgTracks/bigWarn.h
@@ -0,0 +1,23 @@
+/* bigWarn -- shared handlers for displaying big/udc warn/error messages */
+
+#ifndef BIGWARN_H
+#define BIGWARN_H
+
+#include "common.h"
+#include "hgTracks.h"
+#include "container.h"
+
+char *bigWarnReformat(char *errMsg);
+/* Return a copy of the re-formatted error message,
+ * such as breaking longer lines */
+
+void bigDrawWarning(struct track *tg, int seqStart, int seqEnd, struct hvGfx *hvg,
+                 int xOff, int yOff, int width, MgFont *font, Color color,
+                 enum trackVisibility vis);
+/* Draw the network error message */
+
+int bigWarnTotalHeight(struct track *tg, enum trackVisibility vis);
+/* Return total height. Called before and after drawItems.
+ * Must set the following variables: height, lineHeight, heightPer. */
+
+#endif /* BIGWARN_H */