00001
00007 #ifndef _ParseErrorText_h
00008 #define _ParseErrorText_h
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "../ParseError.h"
00019
00020
00021
00022
00023
00024 class ParseErrorText
00025 : public wxWindow
00026 {
00027 public:
00028
00029
00032 ParseErrorText(wxWindow* pParent,
00033 wxWindowID id,
00034 const ParseError& error);
00035
00036
00039 ~ParseErrorText(void);
00040
00041
00042
00043
00044
00045 void OnPaint(wxPaintEvent& event);
00046
00047
00048
00049
00050 protected:
00051 private:
00052 void DrawArrow(wxDC& dc,
00053 wxCoord y,
00054 wxCoord middle,
00055 wxCoord spread,
00056 wxCoord height) const;
00057
00058 wxBitmap mBitmap;
00059
00060 static const wxCoord ARROW_HEIGHT;
00061 static const wxCoord ARROW_SPREAD;
00062 static const wxCoord ARROW_WIDTH;
00063
00064 DECLARE_EVENT_TABLE()
00065 };
00066
00067
00068
00069
00070
00071
00072
00073 #endif // _ParseErrorText_h