#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <list>
#include "callbacks.h"
#include "interface.h"
#include "../../svm.h"
Go to the source code of this file.
Classes | |
struct | point |
Macros | |
#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< point > | point_list |
#define DEFAULT_PARAM "-t 2 -c 100" |
Definition at line 12 of file callbacks.cpp.
#define XLEN 500 |
Definition at line 13 of file callbacks.cpp.
#define YLEN 500 |
Definition at line 14 of file callbacks.cpp.
anonymous enum |
Enumerator | |
---|---|
SAVE | |
LOAD |
Definition at line 343 of file callbacks.cpp.
void clear_all | ( | ) |
Definition at line 83 of file callbacks.cpp.
void draw_all_points | ( | ) |
Definition at line 77 of file callbacks.cpp.
void draw_point | ( | const point & | p | ) |
Definition at line 70 of file callbacks.cpp.
void on_button_change_clicked | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
Definition at line 92 of file callbacks.cpp.
void on_button_clear_clicked | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
Definition at line 307 of file callbacks.cpp.
void on_button_load_clicked | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
Definition at line 371 of file callbacks.cpp.
void on_button_run_clicked | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
Definition at line 100 of file callbacks.cpp.
void on_button_save_clicked | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
Definition at line 362 of file callbacks.cpp.
gboolean on_draw_main_button_press_event | ( | GtkWidget * | widget, |
GdkEventButton * | event, | ||
gpointer | user_data | ||
) |
Definition at line 321 of file callbacks.cpp.
gboolean on_draw_main_expose_event | ( | GtkWidget * | widget, |
GdkEventExpose * | event, | ||
gpointer | user_data | ||
) |
Definition at line 332 of file callbacks.cpp.
void on_filesel_cancel_clicked | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
Definition at line 448 of file callbacks.cpp.
void on_filesel_ok_clicked | ( | GtkButton * | button, |
gpointer | user_data | ||
) |
Definition at line 379 of file callbacks.cpp.
void on_fileselection_destroy | ( | GtkObject * | object, |
gpointer | user_data | ||
) |
Definition at line 442 of file callbacks.cpp.
void on_window1_destroy | ( | GtkObject * | object, |
gpointer | user_data | ||
) |
Definition at line 314 of file callbacks.cpp.
void redraw_area | ( | GtkWidget * | widget, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Definition at line 62 of file callbacks.cpp.
void show_fileselection | ( | ) |
Definition at line 345 of file callbacks.cpp.
void svm_toy_initialize | ( | ) |
Definition at line 43 of file callbacks.cpp.
GdkColor colors[] |
Definition at line 16 of file callbacks.cpp.
int current_value = 1 |
Definition at line 41 of file callbacks.cpp.
GtkWidget * draw_main |
Definition at line 29 of file callbacks.cpp.
GtkWidget * entry_option |
Definition at line 31 of file callbacks.cpp.
GtkWidget* fileselection |
Definition at line 342 of file callbacks.cpp.
enum { ... } fileselection_flag |
GdkGC* gc |
Definition at line 27 of file callbacks.cpp.
GdkPixmap* pixmap |
Definition at line 28 of file callbacks.cpp.
list<point> point_list |
Definition at line 40 of file callbacks.cpp.