#ifndef Alert_First #define Alert_First #ifdef __GNUG__ #pragma interface #endif #include "Dialog.h" #include "Alert_e.h" class Text; class StaticTextView; //---- Alert ------------------------------------------------------------------- class Alert: public Dialog { public: MetaDef(Alert); Alert(AlertType, const char *text= 0, Bitmap *bm= 0, ...); ~Alert(); int ShowF(const char *fmt, ...); int ShowV(const char *fmt, va_list ap); int ShowV(Font *fp, const char *fmt, va_list ap); static ObjArray *alerts; protected: VObject *DoMakeControls(); VObject *DoMakeActions(); void InspectorId(char *buf, int sz); protected: Text *text; StaticTextView *textview; VObject *image, *buttons; }; extern SmartBitmap gNote, gCaution, gStop, gError; #endif