00001 00006 #ifndef _LineSearchValidator_h 00007 #define _LineSearchValidator_h 00008 00009 // SYSTEM INCLUDES 00010 // 00011 00012 // PROJECT INCLUDES 00013 // 00014 00015 // LOCAL INCLUDES 00016 // 00017 #include "../CountedPtr.h" 00018 #include "LineSearchControl.h" 00019 00020 // FORWARD REFERENCES 00021 // 00022 00023 00024 class LineSearchValidator 00025 : public wxValidator 00026 { 00027 public: 00028 // LIFECYCLE 00029 00032 LineSearchValidator(CountedPtr<const LineSearch>& rcpLineSearch, 00033 const ProblemBase* pProblem); 00034 00039 LineSearchValidator(const LineSearchValidator& from); 00040 00043 ~LineSearchValidator(void); 00044 00045 00046 // OPERATORS 00047 00048 // OPERATIONS 00049 00052 virtual wxObject* Clone() const; 00053 00056 virtual bool TransferToWindow(); 00057 00060 virtual bool TransferFromWindow(); 00061 00064 virtual bool Validate(wxWindow* pParent); 00065 00066 // ACCESS 00067 // INQUIRY 00068 00069 protected: 00070 private: 00072 CountedPtr<const LineSearch>& mrcpLineSearch; 00073 const ProblemBase* mpProblem; 00074 }; 00075 00076 // INLINE METHODS 00077 // 00078 00079 // EXTERNAL REFERENCES 00080 // 00081 00082 #endif // _LineSearchValidator_h