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
Go to the documentation of this file.
1 /**************************************************************************/
2 /* Klavaro - a flexible touch typing tutor */
3 /* Copyright (C) 2005-2021 Felipe Emmanuel Ferreira de Castro */
4 /* */
5 /* This file is part of Klavaro, which is a free software: you can */
6 /* redistribute it and/or modify it under the terms of the GNU General */
7 /* Public License as published by the Free Software Foundation, either */
8 /* version 3 of the License, or (at your option) any later version. */
9 /* */
10 /* Klavaro is distributed in the hope that it will be useful, */
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
13 /* GNU General Public License for more details (in the file COPYING). */
14 /* You should have received a copy of the GNU General Public License */
15 /* along with Klavaro. If not, see <https://www.gnu.org/licenses/> */
16 /**************************************************************************/
17 
18 #include <sys/stat.h>
19 
20 #ifdef G_OS_UNIX
21 # define UNIX_OK TRUE
22 # define LESSON_FONT "Monospace 14"
23 # define NORMAL_FONT "Sans 14"
24 # define DIR_PERM (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
25 #else
26 # define UNIX_OK FALSE
27 # define LESSON_FONT "Courier Bold 14"
28 # define NORMAL_FONT "Comic Sans MS 12"
29 # undef PACKAGE_LOCALE_DIR
30 # define PACKAGE_LOCALE_DIR "..\\share\\locale"
31 # undef PACKAGE_DATA_DIR
32 # define PACKAGE_DATA_DIR "..\\share"
33 # define DIR_PERM (0xFFFF)
34 #endif
35 
36 # define LESSON_FONT_BO "Tibetan Machine Uni 16"
37 
38 #define LOCAL TRUE
39 #define GLOBAL FALSE
40 
41 /*
42  *Interface
43  */
44 gchar * main_path_user (void);
45 gchar * main_path_stats (void);
46 gchar * main_path_data (void);
47 gchar * main_path_score (void);
48 
49 gboolean main_curl_ok (void);
50 gboolean main_velo_txt (void);
51 
52 gboolean main_preferences_exist (gchar *group, gchar *key);
53 void main_preferences_remove (gchar *group, gchar *key);
54 gchar * main_preferences_get_string (gchar *group, gchar *key);
55 void main_preferences_set_string (gchar *group, gchar *key, gchar *value);
56 gint main_preferences_get_int (gchar *group, gchar *key);
57 void main_preferences_set_int (gchar *group, gchar *key, gint value);
58 gboolean main_preferences_get_boolean (gchar *group, gchar *key);
59 void main_preferences_set_boolean (gchar *group, gchar *key, gboolean value);
60 
61 gboolean main_altcolor_exist (gchar *group, gchar *key);
62 gchar * main_altcolor_get_string (gchar *group, gchar *key);
63 gboolean main_altcolor_get_boolean (gchar *group, gchar *key);
64 void main_altcolor_set_boolean (gchar *group, gchar *key, gboolean value);
65 
66 void main_preferences_save (void);
67 void main_window_pass_away (void);
68 
void main_preferences_remove(gchar *group, gchar *key)
Definition: main.c:103
gboolean main_altcolor_exist(gchar *group, gchar *key)
Definition: main.c:145
gint main_preferences_get_int(gchar *group, gchar *key)
Definition: main.c:121
gchar * main_preferences_get_string(gchar *group, gchar *key)
Definition: main.c:109
void main_window_pass_away(void)
Definition: main.c:572
gchar * main_path_data(void)
Definition: main.c:73
void main_preferences_set_boolean(gchar *group, gchar *key, gboolean value)
Definition: main.c:139
gchar * main_path_score(void)
Definition: main.c:79
void main_preferences_set_int(gchar *group, gchar *key, gint value)
Definition: main.c:127
gchar * main_path_user(void)
Definition: main.c:61
gboolean main_preferences_exist(gchar *group, gchar *key)
Definition: main.c:97
void main_preferences_set_string(gchar *group, gchar *key, gchar *value)
Definition: main.c:115
void main_altcolor_set_boolean(gchar *group, gchar *key, gboolean value)
Definition: main.c:164
gboolean main_altcolor_get_boolean(gchar *group, gchar *key)
Definition: main.c:158
void main_preferences_save(void)
Definition: main.c:170
gboolean main_curl_ok(void)
Definition: main.c:85
gchar * main_altcolor_get_string(gchar *group, gchar *key)
Definition: main.c:151
gboolean main_preferences_get_boolean(gchar *group, gchar *key)
Definition: main.c:133
gchar * main_path_stats(void)
Definition: main.c:67
gboolean main_velo_txt(void)
Definition: main.c:91