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)  

plot.c File Reference
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <locale.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <gtkdatabox.h>
#include <gtkdatabox_grid.h>
#include <gtkdatabox_lines.h>
#include <gtkdatabox_points.h>
#include <gtkdatabox_bars.h>
#include "auxiliar.h"
#include "main.h"
#include "callbacks.h"
#include "tutor.h"
#include "basic.h"
#include "accuracy.h"
#include "keyboard.h"
#include "translation.h"
#include "plot.h"
Include dependency graph for plot.c:

Go to the source code of this file.

Functions

GtkWidget * plot_get_databox ()
 
static void plot_error_frequencies ()
 
static void plot_touch_times ()
 
void plot_initialize ()
 
void plot_draw_chart (gint pltype)
 
void plot_pointer_update (gdouble x)
 

Variables

struct {
   GtkWidget *   databox
 
   GtkWidget *   gtkgrid
 
   struct {
      gfloat   x [50+1]
 
      gfloat   y [50+1]
 
   }   data
 
   GtkDataboxGraph *   point_kernel
 
   GtkDataboxGraph *   point_frame
 
   GtkDataboxGraph *   line_kernel
 
   GtkDataboxGraph *   line_frame
 
   GtkDataboxGraph *   line_outter
 
   struct {
      gfloat   x [1]
 
      gfloat   y [1]
 
   }   mark
 
   GtkDataboxGraph *   point_marker
 
   struct {
      gfloat   x [2]
 
      gfloat   y [2]
 
   }   goal
 
   GtkDataboxGraph *   line_goal
 
   GtkDataboxGraph *   grid
 
   GtkWidget *   label_y [13]
 
   struct {
      gfloat   x [2]
 
      gfloat   y [2]
 
   }   lim
 
   GtkDataboxGraph *   limits
 
plot
 
gfloat accur [50+1]
 
gfloat velo [50+1]
 
gfloat fluid [50+1]
 
gfloat score [50+1]
 
gchar date [50+1][20]
 
gchar hour [50+1][20]
 
gint nchars [50+1]
 
gchar lesson [50+1][299]
 
gchar language [50+1][80+1]
 
glong n_points
 
gint plot_type
 
gint lesson_n
 

Function Documentation

◆ plot_draw_chart()

◆ plot_error_frequencies()

static void plot_error_frequencies ( )
static

◆ plot_get_databox()

GtkWidget* plot_get_databox ( void  )

Interface functions

Definition at line 103 of file plot.c.

References plot.

◆ plot_initialize()

void plot_initialize ( void  )

◆ plot_pointer_update()

void plot_pointer_update ( gdouble  x)

◆ plot_touch_times()

Variable Documentation

◆ accur

gfloat accur[50+1]

◆ 

data { ... } struct

◆ databox

GtkWidget* databox

Definition at line 47 of file plot.c.

◆ date

gchar date[50+1][20]

Definition at line 89 of file plot.c.

Referenced by plot_draw_chart(), plot_pointer_update(), and top10_show_stats().

◆ fluid

gfloat fluid[50+1]

◆ 

goal { ... } struct

◆ grid

GtkDataboxGraph* grid

Definition at line 74 of file plot.c.

◆ gtkgrid

GtkWidget* gtkgrid

Definition at line 48 of file plot.c.

◆ hour

gchar hour[50+1][20]

Definition at line 90 of file plot.c.

Referenced by plot_draw_chart(), and plot_pointer_update().

◆ label_y

GtkWidget* label_y[13]

Definition at line 75 of file plot.c.

◆ language

gchar language[50+1][80+1]

Definition at line 93 of file plot.c.

Referenced by plot_draw_chart(), and trans_change_language().

◆ lesson

gchar lesson[50+1][299]

Definition at line 92 of file plot.c.

Referenced by plot_draw_chart(), and plot_pointer_update().

◆ lesson_n

gint lesson_n

Definition at line 97 of file plot.c.

Referenced by plot_draw_chart(), and plot_pointer_update().

◆ 

lim { ... } struct

◆ limits

GtkDataboxGraph* limits

Definition at line 82 of file plot.c.

◆ line_frame

GtkDataboxGraph* line_frame

Definition at line 58 of file plot.c.

◆ line_goal

GtkDataboxGraph* line_goal

Definition at line 73 of file plot.c.

◆ line_kernel

GtkDataboxGraph* line_kernel

Definition at line 57 of file plot.c.

◆ line_outter

GtkDataboxGraph* line_outter

Definition at line 59 of file plot.c.

◆ 

mark { ... } struct

Referenced by cursor_advance().

◆ n_points

glong n_points

◆ nchars

gint nchars[50+1]

◆ 

◆ plot_type

gint plot_type

Definition at line 95 of file plot.c.

Referenced by plot_draw_chart(), and plot_pointer_update().

◆ point_frame

GtkDataboxGraph* point_frame

Definition at line 56 of file plot.c.

◆ point_kernel

GtkDataboxGraph* point_kernel

Definition at line 55 of file plot.c.

◆ point_marker

GtkDataboxGraph* point_marker

Definition at line 66 of file plot.c.

◆ score

gfloat score[50+1]

Definition at line 88 of file plot.c.

Referenced by plot_draw_chart().

◆ velo

gfloat velo[50+1]

◆ x

gfloat x[2]

Definition at line 52 of file plot.c.

Referenced by plot_pointer_update(), window_restore(), and window_save().

◆ y

gfloat y[2]

Definition at line 53 of file plot.c.

Referenced by window_restore(), and window_save().