Classes | Defines | Enumerations | Functions | Variables
callbacks.cpp File Reference
#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <list>
#include "callbacks.h"
#include "interface.h"
#include "../../svm.h"
Include dependency graph for callbacks.cpp:

Go to the source code of this file.

Classes

struct  point

Defines

#define DEFAULT_PARAM   "-t 2 -c 100"
#define XLEN   500
#define YLEN   500

Enumerations

enum  { SAVE, LOAD }

Functions

void clear_all ()
void draw_all_points ()
void draw_point (const point &p)
void on_button_change_clicked (GtkButton *button, gpointer user_data)
void on_button_clear_clicked (GtkButton *button, gpointer user_data)
void on_button_load_clicked (GtkButton *button, gpointer user_data)
void on_button_run_clicked (GtkButton *button, gpointer user_data)
void on_button_save_clicked (GtkButton *button, gpointer user_data)
gboolean on_draw_main_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data)
gboolean on_draw_main_expose_event (GtkWidget *widget, GdkEventExpose *event, gpointer user_data)
void on_filesel_cancel_clicked (GtkButton *button, gpointer user_data)
void on_filesel_ok_clicked (GtkButton *button, gpointer user_data)
void on_fileselection_destroy (GtkObject *object, gpointer user_data)
void on_window1_destroy (GtkObject *object, gpointer user_data)
void redraw_area (GtkWidget *widget, int x, int y, int w, int h)
void show_fileselection ()
void svm_toy_initialize ()

Variables

GdkColor colors []
int current_value = 1
GtkWidget * draw_main
GtkWidget * entry_option
GtkWidget * fileselection
static enum { ... }  fileselection_flag
GdkGC * gc
GdkPixmap * pixmap
list< pointpoint_list

Define Documentation

#define DEFAULT_PARAM   "-t 2 -c 100"

Definition at line 11 of file callbacks.cpp.

#define XLEN   500

Definition at line 12 of file callbacks.cpp.

#define YLEN   500

Definition at line 13 of file callbacks.cpp.


Enumeration Type Documentation

anonymous enum
Enumerator:
SAVE 
LOAD 

Definition at line 338 of file callbacks.cpp.


Function Documentation

void clear_all ( )

Definition at line 81 of file callbacks.cpp.

void draw_all_points ( )

Definition at line 75 of file callbacks.cpp.

void draw_point ( const point p)

Definition at line 68 of file callbacks.cpp.

void on_button_change_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 90 of file callbacks.cpp.

void on_button_clear_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 302 of file callbacks.cpp.

void on_button_load_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 366 of file callbacks.cpp.

void on_button_run_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 98 of file callbacks.cpp.

void on_button_save_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 357 of file callbacks.cpp.

gboolean on_draw_main_button_press_event ( GtkWidget *  widget,
GdkEventButton *  event,
gpointer  user_data 
)

Definition at line 316 of file callbacks.cpp.

gboolean on_draw_main_expose_event ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  user_data 
)

Definition at line 327 of file callbacks.cpp.

void on_filesel_cancel_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 420 of file callbacks.cpp.

void on_filesel_ok_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 374 of file callbacks.cpp.

void on_fileselection_destroy ( GtkObject *  object,
gpointer  user_data 
)

Definition at line 414 of file callbacks.cpp.

void on_window1_destroy ( GtkObject *  object,
gpointer  user_data 
)

Definition at line 309 of file callbacks.cpp.

void redraw_area ( GtkWidget *  widget,
int  x,
int  y,
int  w,
int  h 
)

Definition at line 60 of file callbacks.cpp.

Definition at line 340 of file callbacks.cpp.

Definition at line 41 of file callbacks.cpp.


Variable Documentation

GdkColor colors[]
Initial value:
 
{
        {0,0,0,0},
        {0,0,120<<8,120<<8},
        {0,120<<8,120<<8,0},
        {0,120<<8,0,120<<8},
        {0,0,200<<8,200<<8},
        {0,200<<8,200<<8,0},
        {0,200<<8,0,200<<8},
}

Definition at line 15 of file callbacks.cpp.

int current_value = 1

Definition at line 39 of file callbacks.cpp.

GtkWidget * draw_main

Definition at line 28 of file callbacks.cpp.

GtkWidget * entry_option

Definition at line 30 of file callbacks.cpp.

GtkWidget* fileselection

Definition at line 337 of file callbacks.cpp.

enum { ... } fileselection_flag [static]
GdkGC* gc

Definition at line 26 of file callbacks.cpp.

GdkPixmap* pixmap

Definition at line 27 of file callbacks.cpp.

Definition at line 38 of file callbacks.cpp.



libsvm3
Author(s): various
autogenerated on Wed Nov 27 2013 11:36:23