fileFunctions-GUI

fileFunctions-GUI

Synopsis




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);

Description

Details

filename_get_user_chosen_callback_open_GUI ()

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.

defaultFileName :

pre-selected filename. Can be NULL.

extensions :

acceptable file extensions. NULL for don't care.

prompt :

the string to be shown in UI, usually shown as dialog title for GUI.

option :

Other custom option.

Returns :


filename_get_user_chosen_callback_save_GUI ()

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.

defaultFileName :

pre-selected filename. Can be NULL.

extensions :

acceptable file extensions. NULL for don't care.

prompt :

the string to be shown in UI, usually shown as dialog title for GUI.

option :

Other custom option.

Returns :


characterDataFile_open_GUI ()

gboolean            characterDataFile_open_GUI          ();

Returns :


characterDataFile_save_GUI ()

gboolean            characterDataFile_save_GUI          (CharacterDataFile *cDataFile);

cDataFile :

Character DataFile to be saved.

Returns :

TRUE if success, FALSE otherwise.

characterDataFile_saveAs_GUI ()

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 :


strokeHypothesisFile_open_GUI ()

gboolean            strokeHypothesisFile_open_GUI       ();

Returns :


strokeHypothesisFile_save_GUI ()

gboolean            strokeHypothesisFile_save_GUI       (const gchar *filename);

filename :

Returns :


strokeHypothesisFile_saveAs_GUI ()

gboolean            strokeHypothesisFile_saveAs_GUI     ();

Returns :


strokeHypothesisFile_start_training_GUI ()

TrainingProgressData* strokeHypothesisFile_start_training_GUI
                                                        (RadicalRecognizer *recognizer,
                                                         RadicalList *radicalList);

recognizer :

the recognizer to be used.

radicalList :

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.