klavaro  3.13
About: Klavaro is a touch typing tutor program.
  Fossies Dox: klavaro-3.13.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

velocity.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX_WORDS   12123
 

Functions

gchar * velo_get_dict_name (void)
 
void velo_reset_dict (void)
 
void velo_init (void)
 
void velo_init_dict (gchar *)
 
void velo_draw_random_words (void)
 
gchar * velo_filter_utf8 (gchar *text)
 
void velo_text_write_to_file (gchar *text_raw, gboolean overwrite)
 
void velo_create_dict (gchar *file_name, gboolean overwrite)
 
void velo_comment (gdouble accuracy, gdouble velocity)
 

Macro Definition Documentation

◆ MAX_WORDS

#define MAX_WORDS   12123

Definition at line 18 of file velocity.h.

Function Documentation

◆ velo_comment()

void velo_comment ( gdouble  accuracy,
gdouble  velocity 
)

Put on the screen the final comments

Definition at line 436 of file velocity.c.

References _, accuracy, get_wg(), tutor_goal_accuracy(), tutor_goal_level(), and tutor_goal_speed().

Referenced by tutor_calc_stats().

◆ velo_create_dict()

void velo_create_dict ( gchar *  file_name,
gboolean  overwrite 
)

Reads the text file "file_name" and write to the dictionary. If overwrite is TRUE, then besides overwriting any .words file, it loads a lesson with the new dictionary.

Definition at line 376 of file velocity.c.

References assert_user_dir(), main_path_user(), QUERY_INTRO, tutor_process_touch(), tutor_set_query(), velo_filter_utf8(), and velo_init_dict().

Referenced by fluid_copy_text_file(), and on_button_filechooser_open_clicked().

◆ velo_draw_random_words()

void velo_draw_random_words ( void  )

Draw random phrases with words selected from a 'discretionary'

Definition at line 170 of file velocity.c.

References dict, i, j, par, trans_lang_has_stopmark(), tutor_draw_paragraph(), and tutor_is_tibetan().

Referenced by tutor_update_start().

◆ velo_filter_utf8()

gchar* velo_filter_utf8 ( gchar *  text)

Takes text and make a list of words, one per line, validating as UTF-8

Definition at line 237 of file velocity.c.

References i, len, and MAX_WORDS.

Referenced by velo_create_dict(), and velo_text_write_to_file().

◆ velo_get_dict_name()

gchar* velo_get_dict_name ( void  )

Interface functions

Definition at line 50 of file velocity.c.

References dict.

Referenced by tutor_calc_stats().

◆ velo_init()

void velo_init ( void  )

Initialize the velo exercise window.

Definition at line 69 of file velocity.c.

References dict, main_preferences_exist(), main_preferences_get_string(), and velo_init_dict().

Referenced by tutor_init().

◆ velo_init_dict()

◆ velo_reset_dict()

void velo_reset_dict ( void  )

Definition at line 56 of file velocity.c.

References dict.

Referenced by trans_change_language(), and velo_init_dict().

◆ velo_text_write_to_file()

void velo_text_write_to_file ( gchar *  text_raw,
gboolean  overwrite 
)

Reads the text "text_raw" and write to the dictionary. If overwrite is TRUE, then besides overwriting any .words file, it loads a lesson with the new dictionary.

Definition at line 330 of file velocity.c.

References _, assert_user_dir(), main_path_user(), QUERY_INTRO, tutor_process_touch(), tutor_set_query(), velo_filter_utf8(), and velo_init_dict().

Referenced by fluid_text_write_to_file(), on_button_other_paste_clicked(), and on_entry_mesg_insert_text().