"Fossies" - the Fresh Open Source Software Archive

Member "klavaro-3.13/src/main.h" (18 Apr 2021, 2893 Bytes) of package /linux/privat/klavaro-3.13.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "main.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.12_vs_3.13.

    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