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)  

main.h File Reference
#include <sys/stat.h>
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define UNIX_OK   FALSE
 
#define LESSON_FONT   "Courier Bold 14"
 
#define NORMAL_FONT   "Comic Sans MS 12"
 
#define PACKAGE_LOCALE_DIR   "..\\share\\locale"
 
#define PACKAGE_DATA_DIR   "..\\share"
 
#define DIR_PERM   (0xFFFF)
 
#define LESSON_FONT_BO   "Tibetan Machine Uni 16"
 
#define LOCAL   TRUE
 
#define GLOBAL   FALSE
 

Functions

gchar * main_path_user (void)
 
gchar * main_path_stats (void)
 
gchar * main_path_data (void)
 
gchar * main_path_score (void)
 
gboolean main_curl_ok (void)
 
gboolean main_velo_txt (void)
 
gboolean main_preferences_exist (gchar *group, gchar *key)
 
void main_preferences_remove (gchar *group, gchar *key)
 
gchar * main_preferences_get_string (gchar *group, gchar *key)
 
void main_preferences_set_string (gchar *group, gchar *key, gchar *value)
 
gint main_preferences_get_int (gchar *group, gchar *key)
 
void main_preferences_set_int (gchar *group, gchar *key, gint value)
 
gboolean main_preferences_get_boolean (gchar *group, gchar *key)
 
void main_preferences_set_boolean (gchar *group, gchar *key, gboolean value)
 
gboolean main_altcolor_exist (gchar *group, gchar *key)
 
gchar * main_altcolor_get_string (gchar *group, gchar *key)
 
gboolean main_altcolor_get_boolean (gchar *group, gchar *key)
 
void main_altcolor_set_boolean (gchar *group, gchar *key, gboolean value)
 
void main_preferences_save (void)
 
void main_window_pass_away (void)
 

Macro Definition Documentation

◆ DIR_PERM

#define DIR_PERM   (0xFFFF)

Definition at line 33 of file main.h.

◆ GLOBAL

#define GLOBAL   FALSE

Definition at line 39 of file main.h.

◆ LESSON_FONT

#define LESSON_FONT   "Courier Bold 14"

Definition at line 27 of file main.h.

◆ LESSON_FONT_BO

#define LESSON_FONT_BO   "Tibetan Machine Uni 16"

Definition at line 36 of file main.h.

◆ LOCAL

#define LOCAL   TRUE

Definition at line 38 of file main.h.

◆ NORMAL_FONT

#define NORMAL_FONT   "Comic Sans MS 12"

Definition at line 28 of file main.h.

◆ PACKAGE_DATA_DIR

#define PACKAGE_DATA_DIR   "..\\share"

Definition at line 32 of file main.h.

◆ PACKAGE_LOCALE_DIR

#define PACKAGE_LOCALE_DIR   "..\\share\\locale"

Definition at line 30 of file main.h.

◆ UNIX_OK

#define UNIX_OK   FALSE

Definition at line 26 of file main.h.

Function Documentation

◆ main_altcolor_exist()

gboolean main_altcolor_exist ( gchar *  group,
gchar *  key 
)

Definition at line 145 of file main.c.

References altcolor.

Referenced by main_window_init().

◆ main_altcolor_get_boolean()

gboolean main_altcolor_get_boolean ( gchar *  group,
gchar *  key 
)

◆ main_altcolor_get_string()

gchar* main_altcolor_get_string ( gchar *  group,
gchar *  key 
)

◆ main_altcolor_set_boolean()

void main_altcolor_set_boolean ( gchar *  group,
gchar *  key,
gboolean  value 
)

Definition at line 164 of file main.c.

References altcolor.

Referenced by main_window_init(), and on_togglebutton_altcolor_toggled().

◆ main_curl_ok()

gboolean main_curl_ok ( void  )

Definition at line 85 of file main.c.

References curl_ok.

Referenced by top10_global_publish(), and top10_global_update().

◆ main_path_data()

◆ main_path_score()

gchar* main_path_score ( void  )

Definition at line 79 of file main.c.

References path.

Referenced by top10_global_publish(), top10_global_update(), top10_read_stats(), and top10_write_stats().

◆ main_path_stats()

gchar* main_path_stats ( void  )

◆ main_path_user()

◆ main_preferences_exist()

◆ main_preferences_get_boolean()

gboolean main_preferences_get_boolean ( gchar *  group,
gchar *  key 
)

Definition at line 133 of file main.c.

References preferences.

Referenced by get_par(), main_window_init(), on_text_tutor_realize(), tutor_beep(), and tutor_calc_stats().

◆ main_preferences_get_int()

gint main_preferences_get_int ( gchar *  group,
gchar *  key 
)

Definition at line 121 of file main.c.

References preferences.

Referenced by basic_init(), fluid_draw_random_paragraphs(), fluid_init(), main_window_init(), and window_restore().

◆ main_preferences_get_string()

◆ main_preferences_remove()

void main_preferences_remove ( gchar *  group,
gchar *  key 
)

Definition at line 103 of file main.c.

References preferences.

Referenced by fluid_init_paragraph_list(), keyb_set_chars(), trans_init_language_env(), and velo_init_dict().

◆ main_preferences_save()

void main_preferences_save ( void  )

◆ main_preferences_set_boolean()

void main_preferences_set_boolean ( gchar *  group,
gchar *  key,
gboolean  value 
)

◆ main_preferences_set_int()

void main_preferences_set_int ( gchar *  group,
gchar *  key,
gint  value 
)

◆ main_preferences_set_string()

◆ main_velo_txt()

◆ main_window_pass_away()

void main_window_pass_away ( void  )

Quit the application

Definition at line 572 of file main.c.

References accur_close(), curl_ok, and main_preferences_save().

Referenced by on_window_main_destroy(), and on_window_tutor_destroy().