![]() |
![]() |
![]() |
WritRecogn Reference Manual | ![]() |
---|---|---|---|---|
gchar* filename_get_user_chosen_callback_open_GUI (const gchar *defaultFileName, const gchar **extensions, const gchar *prompt, gpointer option); gchar* filename_get_user_chosen_callback_save_GUI (const gchar *defaultFileName, const gchar **extensions, const gchar *prompt, gpointer option); gboolean characterDataFile_open_GUI (); gboolean characterDataFile_save_GUI (CharacterDataFile *cDataFile); gboolean characterDataFile_saveAs_GUI (); gboolean strokeHypothesisFile_open_GUI (); gboolean strokeHypothesisFile_save_GUI (const gchar *filename); gboolean strokeHypothesisFile_saveAs_GUI (); TrainingProgressData* strokeHypothesisFile_start_training_GUI (RadicalRecognizer *recognizer, RadicalList *radicalList);
gchar* filename_get_user_chosen_callback_open_GUI (const gchar *defaultFileName, const gchar **extensions, const gchar *prompt, gpointer option);
This function will ensure that the open file is readable.
returns
: Returns the filename if it is readable; NULL otherwise.
|
pre-selected filename. Can be NULL. |
|
acceptable file extensions. NULL for don't care. |
|
the string to be shown in UI, usually shown as dialog title for GUI. |
|
Other custom option. |
Returns : |
gchar* filename_get_user_chosen_callback_save_GUI (const gchar *defaultFileName, const gchar **extensions, const gchar *prompt, gpointer option);
This function will ensure that the save file is readable.
returns
: Returns the filename if it is readable; NULL otherwise.
|
pre-selected filename. Can be NULL. |
|
acceptable file extensions. NULL for don't care. |
|
the string to be shown in UI, usually shown as dialog title for GUI. |
|
Other custom option. |
Returns : |
gboolean characterDataFile_save_GUI (CharacterDataFile *cDataFile);
|
Character DataFile to be saved. |
Returns : |
TRUE if success, FALSE otherwise. |
gboolean characterDataFile_saveAs_GUI ();
A dialog will be invoked to get the filename, then call
characterDataFile_save_GUI()
returns
: TRUE if success, FALSE otherwise.
Returns : |
gboolean strokeHypothesisFile_save_GUI (const gchar *filename);
|
|
Returns : |
TrainingProgressData* strokeHypothesisFile_start_training_GUI (RadicalRecognizer *recognizer, RadicalList *radicalList);
|
the recognizer to be used. |
|
the radical list to be training. |
Returns : |
a TraingProgressData. The "result" field indicates whether the training is completed, failed or canceled. The "hypo" points to new hypothesis. |