TextVisualizer.h

00001 
00018 #ifndef _TextVisualizer_h
00019 #define _TextVisualizer_h
00020 
00021 // SYSTEM INCLUDES
00022 //
00023 
00024 // PROJECT INCLUDES
00025 //
00026 
00027 // LOCAL INCLUDES
00028 //
00029 #include "TextIterationVisualizer.h"
00030 #include "Visualizer.h"
00031 
00032 // FORWARD REFERENCES
00033 //
00034 
00035 
00036 class TextVisualizer
00037     : public Visualizer
00038 {
00039 public:
00040 // LIFECYCLE
00041 
00050     TextVisualizer(wxWindow*                               pParent,
00051                    const Result&                           result,
00052                    auto_ptr<const TextIterationVisualizer> apIterationVisualizer);
00053 
00054 
00057     ~TextVisualizer(void);
00058 
00059 
00060 // OPERATORS
00061 
00062 // OPERATIONS
00063 // ACCESS
00064 
00065     virtual wxString            Name() const;
00066 
00067 // INQUIRY
00068 
00069 protected:
00072     void        PrintResult(wxTextCtrl* pTargetCtrl);
00073 
00078     void        PrintHeader(wxTextCtrl* pTargetCtrl, const wxString& text);
00079 
00080 private:
00082     auto_ptr<const TextIterationVisualizer> mapIterationVisualizer;
00083 
00085     wxTextCtrl* mpTextCtrl;
00086 
00087     // TODO: legenda?
00088 
00089     // Nie może być statyczna, gdyż musi być inicjowana po zainicjowaiu wx'ów
00090     const wxTextAttr        mNormalAttribute;    
00091     const wxTextAttr        mHeaderAttribute;    
00092 
00093     const static wxString   mName;          
00094 };
00095 
00096 // INLINE METHODS
00097 //
00098 
00099 // EXTERNAL REFERENCES
00100 //
00101 
00102 #endif  // _TextVisualizer_h

Wygenerowano Fri Sep 29 21:04:49 2006 dla EduOptim2 programem  doxygen 1.4.6