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)  

basic.c File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include "auxiliar.h"
#include "main.h"
#include "keyboard.h"
#include "tutor.h"
#include "basic.h"
Include dependency graph for basic.c:

Go to the source code of this file.


#define MAX_BASIC_CHAR_SET   (8 * 14)
#define N_LINES   8


gint basic_get_lesson ()
void basic_set_lesson (gint lesson)
gunichar * basic_get_char_set ()
gboolean basic_get_lesson_increased ()
void basic_set_lesson_increased (gboolean state)
void basic_init ()
gint basic_init_char_set ()
void basic_save_lesson (gchar *charset)
void basic_draw_lesson ()
void basic_comment (gdouble accuracy)


struct {
   gint   lesson
   gunichar   char_set [(8 *14)]
   glong   char_set_size
   gboolean   lesson_increased

Macro Definition Documentation


#define MAX_BASIC_CHAR_SET   (8 * 14)

Definition at line 35 of file basic.c.


#define N_LINES   8

Put the lesson's characters at the main screen

Definition at line 255 of file basic.c.

Function Documentation

◆ basic_comment()

void basic_comment ( gdouble  accuracy)

Put on the screen the final comments

Definition at line 356 of file basic.c.

References _, accuracy, basic, basic_init_char_set(), basic_set_lesson(), get_wg(), MAX_BASIC_LESSONS, and tutor_goal_accuracy().

Referenced by tutor_calc_stats().

◆ basic_draw_lesson()

void basic_draw_lesson ( void  )

◆ basic_get_char_set()

gunichar* basic_get_char_set ( void  )

Definition at line 64 of file basic.c.

References basic.

Referenced by on_togglebutton_edit_basic_lesson_toggled(), and tutor_update_start().

◆ basic_get_lesson()

gint basic_get_lesson ( void  )

Interface functions

Definition at line 48 of file basic.c.

References basic.

Referenced by on_button_tutor_stat_clicked(), tutor_calc_stats(), tutor_init(), tutor_process_touch(), tutor_update_intro(), and tutor_update_start().

◆ basic_get_lesson_increased()

gboolean basic_get_lesson_increased ( void  )

Definition at line 70 of file basic.c.

References basic.

Referenced by on_button_tutor_stat_clicked().

◆ basic_init()

void basic_init ( void  )

Initialize basic vars

Definition at line 85 of file basic.c.

References basic, basic_init_char_set(), basic_set_lesson(), main_preferences_exist(), and main_preferences_get_int().

Referenced by tutor_init().

◆ basic_init_char_set()

gint basic_init_char_set ( void  )

◆ basic_save_lesson()

void basic_save_lesson ( gchar *  charset)

Save the lesson's character set defined in the custom lesson entry, for the current lesson

Definition at line 233 of file basic.c.

References basic, and main_path_user().

Referenced by on_togglebutton_edit_basic_lesson_toggled().

◆ basic_set_lesson()

void basic_set_lesson ( gint  lesson)

◆ basic_set_lesson_increased()

void basic_set_lesson_increased ( gboolean  state)

Definition at line 76 of file basic.c.

References basic.

Referenced by on_spinbutton_lesson_value_changed(), and tutor_process_touch().

Variable Documentation


◆ char_set

gunichar char_set[(8 *14)]

Definition at line 39 of file basic.c.

◆ char_set_size

glong char_set_size

Definition at line 40 of file basic.c.

◆ lesson

gint lesson

Definition at line 38 of file basic.c.

Referenced by basic_set_lesson().

◆ lesson_increased

gboolean lesson_increased

Definition at line 41 of file basic.c.