From c1d4cc4739583f906b639daf3bd9384dd791530e Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 30 Aug 2006 22:24:41 +0000 Subject: Development checkin --- callbacks.c | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) (limited to 'callbacks.c') diff --git a/callbacks.c b/callbacks.c index 019fde9..a0a7a1a 100644 --- a/callbacks.c +++ b/callbacks.c @@ -3,8 +3,82 @@ #endif #include +#include #include "callbacks.h" #include "interface.h" #include "support.h" +#include "gtkutil.h" +#include "gemma.h" + + +void CloseApplication(GtkObject *object, gpointer user_data) +{ + gtk_main_quit(); +} + + +void OnRun(GtkButton *button, gpointer user_data) +{ + GEMMA_Run(); +} + + +void OnStep(GtkButton *button, gpointer user_data) +{ + GEMMA_Step(); +} + + +void OnStepOver(GtkButton *button, gpointer user_data) +{ + GEMMA_StepOver(); +} + + +void OnStop(GtkButton *button, gpointer user_data) +{ + GEMMA_Stop(); +} + + +void OnLoadHEX(GtkButton *button, gpointer user_data) +{ + static char path[PATH_MAX]={0}; + + if (DialogFSelect("Select INTEL HEX File to load",path)) + { + GEMMA_LoadHEX(path); + } +} + + +void OnLoadLabels(GtkButton *button, gpointer user_data) +{ + static char path[PATH_MAX]={0}; + + if (DialogFSelect("Select Label File to load",path)) + { + GEMMA_LoadLabels(path); + } +} + + +void OnRunUntil(GtkButton *button, gpointer user_data) +{ + DialogOK("Not yet implemented"); +} + + +void OnQuit(GtkButton *button, gpointer user_data) +{ + gtk_main_quit(); +} + + +void OnMemoryViewChoice(GtkComboBox *combobox, gpointer user_data) +{ + GEMMA_UpdateDisplay(UPDATE_MEM_VIEW); +} + -- cgit v1.2.3