#include <C_SSA.h>
Public Member Functions | |
| C_SSA (void) | |
| Constructor. | |
| ~C_SSA (void) | |
| Destructor. | |
| void | Parse_SSA_File (char *filename) |
| Parse a .ssa File into memory. | |
| void | SaveSSA_File (char *filename) |
| Save lists. | |
| void | Clear () |
| Destroy all. | |
| void | Show_Event_List (C_ListView *myList) |
| Show the events list. | |
| void | Show_Events_Edit_Fields (int index, C_Text_Edit EditText, C_Text_Edit Start, C_Text_Edit End, C_Text_Edit Duration, C_Text_Edit Margins, C_Combo_List Style, C_Combo_List Name) |
| Show an event's information. | |
| void | Apply_Events_Modifications (C_Text_Edit EditText, C_Text_Edit Start, C_Text_Edit End, C_Text_Edit Margins, C_Combo_List Style, C_Combo_List Name, C_ListView myList) |
| Put information of the Edit field into an event. | |
| C_Events_List * | Apply_Events_Modifications (int index, char *Text, char *Start, char *End, char *Margins, char *Style, char *Name) |
| Update an event with gived informations. | |
| void | Show_Style_List (C_Combo_List Combo) |
| Show the events list. | |
| void | Show_Name_List (C_Combo_List Combo) |
| Show The Personnages name. | |
| void | Add_Event (int ID) |
| Add an Event. | |
| void | Swap_Event (int ID) |
| Swap 2 folowing events. | |
| void | Split_Event (int ID) |
| Split an event in 2 event. | |
| void | Join_Event (int ID) |
| Join 2 folowing events. | |
| void | Delete_Event (int ID) |
| Delete an event from the list. | |
| void | Update_List_Event (int ID, C_ListView *myList) |
| Update an event of the list. | |
| void | Update_List_View_ID (C_ListView myList) |
| Update le ID subitem of the list view. | |
| void | GetCollisionsID (int ID, int *Table) |
| Get the ID of the event wich are in collisions with the ID. | |
Data Fields | |
| C_Style_Sheet * | First_Style |
| Link for the Styles List. | |
| C_Events_List * | First_Event |
| Link for the Events List. | |
| C_Name_List * | First_Name |
| Link for the Personnage Names List. | |
| char * | Title |
| Title of the Subbed movie. | |
| char * | Fansub_team |
| Name of the Original Fansub Team. | |
| char * | Translator |
| Name of the translator of the movie. | |
| char * | Editor |
| Name of the editor of the movie. | |
| char * | Timer |
| Name of the Timer of the movie. | |
| char * | Checker |
| Name of the checker of the movie. | |
| int | Script_Version |
| Vertsion of the script (normaly 4.00), not used yet. | |
| int | Collisions_type |
| Type of SSA Collision (see ASS documentation). | |
| int | PlayResY |
| Maybe. | |
| int | PlayDepth |
| Maybe the zoom for the timing ramp. | |
| char * | Lastwav |
| Name of the last Used wav file, not used yet. | |
| float | Timer_Precision |
| Precision of the timer (normaly 100,00). | |
This Class Concentrate the Link of all Storages list (Style, Events and Personnage Names). It also begin the parsing of subtitles files.
The find function.
The replace function.
The cut/copy/past event gestion.
The srt file parser
The sub file parser
|
|
Constructor. Set to 0 all the class (memset my friend) |
|
|
Destructor.
|
|
|
Add an Event. Add an event to the ID position, if there is an event at this place, it's puted after Only applied in the memory list
|
|
||||||||||||||||||||||||||||||||
|
Update an event with gived informations. It's used to Edit the Events, only use this function (overload it if you need)
|
|
||||||||||||||||||||||||||||||||
|
Put information of the Edit field into an event. It's used to Edit the Events, only use this function (overload it if you need)
|
|
|
Destroy all. Desalouate all the lists and clean all the data members (called by the destructor) |
|
|
Delete an event from the list. Delete an event from the list in memory, not from the list view
|
|
||||||||||||
|
Get the ID of the event wich are in collisions with the ID.
|
|
|
Join 2 folowing events. Join the event ID and ID + 1, if the personnage name and the style are different, the style or the personnage name is selected for the final event. For the margins, this is the average of the 2 events. It's applied only on the memory list
|
|
|
Parse a .ssa File into memory.
|
|
|
Save lists. Save all the lists wich are in memory into a .ssa file.
|
|
|
Show the events list. Show all the events list, begining by First_Event into a listview
|
|
||||||||||||||||||||||||||||||||||||
|
Show an event's information. Show event's index information into few fields to edit this information
|
|
|
Show The Personnages name. Show all the Personnages Name into a Combo box
|
|
|
Show the events list. Show all the style list, begining by First_Event into a listview
|
|
|
Split an event in 2 event. The time is divided by 2, and the text, it take the middle of the string and advance to the next space, if there is a , it. Only applied in memory list
|
|
|
Swap 2 folowing events. Swap the event ID and ID + 1. Only applied in memory list
|
|
||||||||||||
|
Update an event of the list.
|
|
|
Update le ID subitem of the list view.
|
|
|
Name of the checker of the movie.
|
|
|
Type of SSA Collision (see ASS documentation). Not used yet |
|
|
Name of the editor of the movie.
|
|
|
Name of the Original Fansub Team.
|
|
|
Link for the Events List.
|
|
|
Link for the Personnage Names List.
|
|
|
Link for the Styles List.
|
|
|
Name of the last Used wav file, not used yet.
|
|
|
Maybe the zoom for the timing ramp.
|
|
|
Maybe.
|
|
|
Vertsion of the script (normaly 4.00), not used yet.
|
|
|
Name of the Timer of the movie.
|
|
|
Precision of the timer (normaly 100,00). Not used yet. |
|
|
Title of the Subbed movie.
|
|
|
Name of the translator of the movie.
|
1.3