Classes | Defines | Enumerations | Functions | Variables
callbacks.cpp File Reference
#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"
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 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.


Enumeration Type Documentation

anonymous enum
Enumerator:
SAVE 
LOAD 

Definition at line 339 of file callbacks.cpp.


Function Documentation

void clear_all ( )

Definition at line 82 of file callbacks.cpp.

void draw_all_points ( )

Definition at line 76 of file callbacks.cpp.

void draw_point ( const point p)

Definition at line 69 of file callbacks.cpp.

void on_button_change_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 91 of file callbacks.cpp.

void on_button_clear_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 303 of file callbacks.cpp.

void on_button_load_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 367 of file callbacks.cpp.

void on_button_run_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 99 of file callbacks.cpp.

void on_button_save_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 358 of file callbacks.cpp.

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

Definition at line 317 of file callbacks.cpp.

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

Definition at line 328 of file callbacks.cpp.

void on_filesel_cancel_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 444 of file callbacks.cpp.

void on_filesel_ok_clicked ( GtkButton *  button,
gpointer  user_data 
)

Definition at line 375 of file callbacks.cpp.

void on_fileselection_destroy ( GtkObject *  object,
gpointer  user_data 
)

Definition at line 438 of file callbacks.cpp.

void on_window1_destroy ( GtkObject *  object,
gpointer  user_data 
)

Definition at line 310 of file callbacks.cpp.

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

Definition at line 61 of file callbacks.cpp.

Definition at line 341 of file callbacks.cpp.

Definition at line 42 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 16 of file callbacks.cpp.

int current_value = 1

Definition at line 40 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 338 of file callbacks.cpp.

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

Definition at line 27 of file callbacks.cpp.

GdkPixmap* pixmap

Definition at line 28 of file callbacks.cpp.

Definition at line 39 of file callbacks.cpp.



target_obejct_detector
Author(s): CIR-KIT
autogenerated on Thu Jun 6 2019 20:19:57