1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
|
/* $Id: callbacks.c,v 1.4 2005/02/12 22:06:03 danmc Exp $ */
/*******************************************************************************/
/* */
/* gEDA Suite Project Manager */
/* */
/* Copyright (C) 2002 Piotr Miarecki, sp9rve@radioam.net */
/* */
/* This program is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU General Public License */
/* as published by the Free Software Foundation version 2. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program; if not, email to the author */
/* */
/*******************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <gtk/gtk.h>
#include "callbacks.h"
#include "global.h"
#include "graph.h"
#include "interface.h"
#include "libstring.h"
#include "support.h"
#include "value.h"
void
MainNotebookPlotsNewButton_clicked (GtkButton *button,
gpointer user_data)
{
}
void
MainNotebookPlotsModifyButton_clicked (GtkButton *button,
gpointer user_data)
{
}
void
MainNotebookPlotsDeleteButton_clicked (GtkButton *button,
gpointer user_data)
{
}
void
MainNotebookGraphBorderButton_clicked (GtkButton *button,
gpointer user_data)
{
}
void PlotButtonOkButton_clicked(GtkButton *pButton, gpointer pUserData)
{
}
void PlotButtonCancelButton_clicked(GtkButton *pButton, gpointer pUserData)
{
}
void MainButtonOk_clicked(GtkButton *pButton, gpointer pUserData)
{
GraphSave(szFilename);
gtk_main_quit();
}
void MainButtonCancel_clicked(GtkButton *pButton, gpointer pUserData)
{
gtk_main_quit();
}
void MainButtonPlot_clicked(GtkButton *pButton, gpointer pUserData)
{
char *pCommand = NULL;
pCommand = StringCreate();
StringCopy(&pCommand, Graph.szFileName);
StringCat(&pCommand, ".gw");
execlp("gwave", "-s", pCommand, NULL);
}
gboolean MainDeleteEvent_clicked(GtkWidget *pWidget, GdkEvent *pEvent, gpointer pUserData)
{
gtk_main_quit();
return FALSE;
}
|