00001 //----------------------------------------------------------------------------------------
00011 // RCS-ID: $Id: processed_tip_provider.h,v 1.1 2003/03/09 01:35:34 robertoconnor Exp $
00012 //----------------------------------------------------------------------------------------
00013
00014 //----------------------------------------------------------------------------------------
00015 // Begin single inclusion of this .h file condition
00016 //----------------------------------------------------------------------------------------
00017
00018 #ifndef _PROCESSED_TIP_PROVIDER_H_
00019 #define _PROCESSED_TIP_PROVIDER_H_
00020
00021 //----------------------------------------------------------------------------------------
00022 // GCC interface
00023 //----------------------------------------------------------------------------------------
00024
00025 #if defined(__GNUG__) && ! defined(__APPLE__)
00026 #pragma interface "processed_tip_provider.h"
00027 #endif
00028
00029 //----------------------------------------------------------------------------------------
00030 // Shared defines
00031 //----------------------------------------------------------------------------------------
00032
00033 #include "plucker_defines.h"
00034
00035 //----------------------------------------------------------------------------------------
00036 // Begin feature removal condition
00037 //----------------------------------------------------------------------------------------
00038
00039 #if ( setupUSE_STARTUP_TIPS )
00040
00041 //----------------------------------------------------------------------------------------
00042 // Headers
00043 //----------------------------------------------------------------------------------------
00044
00045 #include "wx/tipdlg.h" // wxTipProvider and related
00046
00047 // Class definition: processed_tip_provider
00048 //----------------------------------------------------------------------------------------
00049
00051 //----------------------------------------------------------------------------------------
00055
00056 class processed_tip_provider : public wxTipProvider
00057 {
00058
00059 public:
00060
00062
00066 processed_tip_provider( const wxString& filename,
00067 size_t current_tip );
00068
00070 ~processed_tip_provider();
00071
00073 virtual wxString GetTip();
00074
00080 wxString PreprocessTip( const wxString& tip );
00081
00087 wxString PostprocessTip( const wxString& tip );
00088
00089 private:
00090
00091 wxTextFile m_textfile;
00092 wxArrayString m_tips_exclusion_filter_array;
00093
00094 };
00095
00096 //----------------------------------------------------------------------------------------
00097 // End feature removal condition
00098 //----------------------------------------------------------------------------------------
00099
00100 #endif // setupUSE_STARTUP_TIPS
00101
00102 //----------------------------------------------------------------------------------------
00103 // End single inclusion of this .h file condition
00104 //----------------------------------------------------------------------------------------
00105
00106 #endif // _PROCESSED_TIP_PROVIDER_H_
00107