Make a typedef of a function type, hoping to fix Doxygen warnings.

Originally committed to SVN as r3348.
This commit is contained in:
Niels Martin Hansen 2009-08-01 03:27:13 +00:00
parent 718b1ca94a
commit 51288bc06d
3 changed files with 13 additions and 16 deletions

View File

@ -774,14 +774,7 @@ wxString AssDialogue::GetMarginString(int which,bool pad) {
/// @brief Process parameters via callback void AssDialogue::ProcessParameters(AssDialogueBlockOverride::ProcessParametersCallback callback,void *userData) {
/// @param tagName
/// @param par_n
/// @param param
/// @param userData)
/// @param userData
///
void AssDialogue::ProcessParameters(void (*callback)(wxString tagName,int par_n,AssOverrideParameter *param,void *userData),void *userData) {
// Apply for all override blocks // Apply for all override blocks
AssDialogueBlockOverride *curBlock; AssDialogueBlockOverride *curBlock;
//ParseASSTags(); //ParseASSTags();

View File

@ -179,7 +179,13 @@ public:
ASS_BlockType GetType() { return BLOCK_OVERRIDE; } ASS_BlockType GetType() { return BLOCK_OVERRIDE; }
wxString GetText(); wxString GetText();
void ParseTags(); // Parses tags void ParseTags(); // Parses tags
void ProcessParameters(void (*callback)(wxString,int,AssOverrideParameter*,void *),void *userData);
/// Type of callback function passed to ProcessParameters
typedef void (*ProcessParametersCallback)(wxString,int,AssOverrideParameter*,void *);
/// @brief Process parameters via callback
/// @param callback The callback function to call per tag paramer
/// @param userData User data to pass to callback function
void ProcessParameters(ProcessParametersCallback callback,void *userData);
}; };
@ -237,7 +243,10 @@ public:
void ParseSRTTags(); // Converts tags to ass format and calls ParseASSTags+UpdateData void ParseSRTTags(); // Converts tags to ass format and calls ParseASSTags+UpdateData
void ClearBlocks(); // Clear all blocks, ALWAYS call this after you're done processing tags void ClearBlocks(); // Clear all blocks, ALWAYS call this after you're done processing tags
void ProcessParameters(void (*callback)(wxString,int,AssOverrideParameter*,void *userData),void *userData=NULL); // Callback to process parameters /// @brief Process parameters via callback
/// @param callback The callback function to call per tag paramer
/// @param userData User data to pass to callback function
void ProcessParameters(AssDialogueBlockOverride::ProcessParametersCallback callback,void *userData=NULL); // Callback to process parameters
void ConvertTagsToSRT(); // Converts tags to SRT format void ConvertTagsToSRT(); // Converts tags to SRT format
void StripTags(); // Strips all tags from the text void StripTags(); // Strips all tags from the text
void StripTag(wxString tagName);// Strips a specific tag from the text void StripTag(wxString tagName);// Strips a specific tag from the text

View File

@ -163,12 +163,7 @@ wxString AssDialogueBlockOverride::GetText () {
} }
void AssDialogueBlockOverride::ProcessParameters(AssDialogueBlockOverride::ProcessParametersCallback callback,void *userData) {
/// @brief Process parameters via callback
/// @param callback
/// @param userData
///
void AssDialogueBlockOverride::ProcessParameters(void (*callback)(wxString,int,AssOverrideParameter *,void *),void *userData) {
AssOverrideTag *curTag; AssOverrideTag *curTag;
AssOverrideParameter *curPar; AssOverrideParameter *curPar;