home *** CD-ROM | disk | FTP | other *** search
- /* Diagnostic printer. It's a director. */
-
- #define _H_CDiagnostic
-
- struct CDiagnostic: CDirector {
- CScrollPane *itsScrollPane;
- CStaticText *itsStaticText;
- Handle itsTextHan;
- Size itsTextInUse;
- Boolean needUpdate;
-
- NEW void IDiagnostic(void);
- OVERRIDE void Dispose(void);
-
- OVERRIDE void UpdateMenus(void);
-
- PRIVATE void FlushLine(void);
- PRIVATE void AppendText(char *text); /* text is a C string. */
- NEW void Update(void);
- NEW void Diagnose(char *text); /* C string. */
- };
-
- /* The only access to the diagnostic object is through vanilla procedure
- calls. This is because it's not certain whether gDiagnostic is actually
- present or not - it's disabled in the final application, and things may
- happen before it's born or after it dies. */
-
- extern void g_Diagnostic(char *format, ...);
- extern void g_UpdateDiags(void);
-