Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

processed_tip_provider Class Reference

A derived wxTipProvider, which defines some preprocessing of tips. More...

#include <processed_tip_provider.h>

List of all members.


Public Methods

  processed_tip_provider (const wxString &filename, size_t current_tip)
  Constructor.

  ~processed_tip_provider ()
  Destructor.

virtual wxString  GetTip ()
  Gets the tip.

wxString  PreprocessTip (const wxString &tip)
wxString  PostprocessTip (const wxString &tip)

Detailed Description

A derived wxTipProvider, which defines some preprocessing of tips.

Specifically, it replaces some strings with the application name, and will remove some tips that aren't used in a custom deployment.


Constructor & Destructor Documentation

processed_tip_provider::processed_tip_provider const wxString &    filename,
size_t    current_tip
 

Constructor.

Parameters:
filename  Full filename to the tips.
current_tip  The current tip number in the file

Member Function Documentation

wxString processed_tip_provider::PostprocessTip const wxString &    tip
 

Allows the derived class to to modify the tip as after, and just before the final showing. Good since we want to keep most of the translation the same, except for our replaced part.

wxString processed_tip_provider::PreprocessTip const wxString &    tip
 

Allows the derived class to override the wxTipProvider function to to modify the tip as soon as it is read. If return wxEmptyString, then the tip is skipped, and the next one is read.