Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added accessibility to version3

  • Loading branch information...
commit 49d7b7ab0019b1da11cc2591c96be79735126ebf 1 parent ba80b48
Paul Childs authored
2  gtk2plot/Makefile.am
View
@@ -12,7 +12,7 @@ libgtkplot_@PLOT_API_VERSION@_la_SOURCES= \
libgtkplot_@PLOT_API_VERSION@_la_LDFLAGS= \
@lt_enable_auto_import@ \
-no-undefined \
- -version-info 0:0:0 \
+ -version-info 0:0:0 \
$(PLOT_LIBS)
gtkplotincludedir=$(includedir)/gtkplot-2.0
gtkplotinclude_HEADERS= \
12 gtk3plot/Makefile.am
View
@@ -8,17 +8,23 @@ lib_LTLIBRARIES=libgtkplot-@PLOT_API_VERSION@.la
libgtkplot_@PLOT_API_VERSION@_la_SOURCES= \
gtkplot.c \
gtkplotlinear.c \
- gtkplotpolar.c
+ gtkplotpolar.c \
+ a11y/gtkplotaccessible.c \
+ a11y/gtkplotlinearaccessible.c \
+ a11y/gtkplotpolaraccessible.c
libgtkplot_@PLOT_API_VERSION@_la_LDFLAGS= \
@lt_enable_auto_import@ \
-no-undefined \
- -version-info 0:0:0 \
+ -version-info 0:0:0 \
$(PLOT_LIBS)
gtkplotincludedir=$(includedir)/gtkplot-3.0
gtkplotinclude_HEADERS= \
gtkplot.h \
gtkplotlinear.h \
- gtkplotpolar.h
+ gtkplotpolar.h \
+ a11y/gtkplotaccessible.h \
+ a11y/gtkplotlinearaccessible.h \
+ a11y/gtkplotpolaraccessible.h
bin_PROGRAMS=TestPlotLinear TestPlotPolar
TestPlotLinear_SOURCES=testplotlinear.c
43 gtk3plot/a11y/gtkplotaccessible.c
View
@@ -0,0 +1,43 @@
+/***************************************************************************
+ * gtkplotaccessible.c
+ *
+ * An ATK base class for data plotting
+ *
+ * Sat Dec 4 17:18:14 2010
+ * Copyright 2011 Paul Childs
+ * <pchilds@physics.org>
+ ****************************************************************************/
+
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <gtk/gtk.h>
+#include "gtkplotaccessible.h"
+G_DEFINE_TYPE(GtkPlotAccessible, _gtk_plot_accessible, GTK_TYPE_WIDGET_ACCESSIBLE)
+
+static void gtk_plot_accessible_initialise(AtkObject *obj, gpointer data)
+{
+ (ATK_OBJECT_CLASS(_gtk_plot_accessible_parent_class))->initialize(obj, data);
+ obj->role=ATK_ROLE_CHART;
+}
+
+static void gtk_plot_accessible_finalise(GObject *obj) {(G_OBJECT_CLASS(_gtk_plot_accessible_parent_class))->finalize(obj);}
+
+static void _gtk_plot_accessible_class_init(GtkPlotAccessibleClass *klass)
+{
+ (G_OBJECT_CLASS(klass))->finalize=gtk_plot_accessible_finalise;
+ (ATK_OBJECT_CLASS(klass))->initialize=gtk_plot_accessible_initialise;
+}
+
+static void _gtk_plot_accessible_init(GtkPlotAccessible *plot) {}
47 gtk3plot/a11y/gtkplotaccessible.h
View
@@ -0,0 +1,47 @@
+/***************************************************************************
+ * gtkplotaccessible.h
+ *
+ * An ATK base class for data plotting
+ *
+ * Sat Dec 4 17:18:14 2010
+ * Copyright 2011 Paul Childs
+ * <pchilds@physics.org>
+ ****************************************************************************/
+
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_PLOT_ACCESSIBLE_H__
+# define __GTK_PLOT_ACCESSIBLE_H__
+# include <gtk/gtk.h>
+ G_BEGIN_DECLS
+# define GTK_TYPE_PLOT_ACCESSIBLE (_gtk_plot_accessible_get_type())
+# define GTK_PLOT_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_PLOT_ACCESSIBLE, GtkPlotAccessible))
+# define GTK_IS_PLOT_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_PLOT_ACCESSIBLE))
+# define GTK_PLOT_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_PLOT_ACCESSIBLE, GtkPlotAccessibleClass))
+# define GTK_IS_PLOT_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_PLOT_ACCESSIBLE))
+# define GTK_PLOT_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_PLOT_ACCESSIBLE, GtkPlotAccessibleClass))
+ typedef struct _GtkPlotAccessible GtkPlotAccessible;
+ typedef struct _GtkPlotAccessibleClass GtkPlotAccessibleClass;
+ struct _GtkPlotAccessible
+ {
+ GtkWidgetAccessible parent;
+ };
+ struct _GtkPlotAccessibleClass
+ {
+ GtkWidgetAccessibleClass parent_class;
+ };
+ GType _gtk_plot_accessible_get_type(void);
+ G_END_DECLS
+#endif
192 gtk3plot/a11y/gtkplotlinearaccessible.c
View
@@ -0,0 +1,192 @@
+/***************************************************************************
+ * gtkplotlinearaccessible.c
+ *
+ * An ATK class for data plotting
+ *
+ * Sat Dec 4 17:18:14 2010
+ * Copyright 2011 Paul Childs
+ * <pchilds@physics.org>
+ ****************************************************************************/
+
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <gtk/gtk.h>
+#include "gtkplotlinearaccessible.h"
+#include "../gtkplotlinear.h"
+#define ZS 0.5 /* zoom scale */
+#define ZSC 0.5 /* 1 minus this */
+#define UZ 2 /* inverse of this */
+#define UZC 1 /* this minus 1 */
+
+static gboolean gtk_plot_linear_accessible_do_action(AtkAction* action, gint i)
+{
+ gint tp, xf, xi, yf, yi;
+ GtkPlotLinear *plt;
+ GtkWidget *plot;
+
+ plot=gtk_accessible_get_widget(GTK_ACCESSIBLE(action));
+ plt=GTK_PLOT_LINEAR(plot);
+ if (plot==NULL||!gtk_widget_get_sensitive(plot)) return FALSE;
+ g_object_get(G_OBJECT(plot), "xmin", &xi, "xmax", &xf, "ymin", &mny, "ymax", &mxy, NULL);
+ switch i
+ {
+ case 5:
+ tp=-UZC*(plt->yps);
+ {yi*=UZ; yf*=UZ;}
+ {yi+=tp; yf+=tp;}
+ break;
+ case 4:
+ tp=ZS*(plt->yps);
+ {yi*=ZSC; yf*=ZSC;}
+ {yi+=tp; yf+=tp;}
+ break;
+ case 3:
+ tp=-UZC*(plt->xps);
+ {xi*=UZ; xf*=UZ;}
+ {xi+=tp; xf+=tp;}
+ break;
+ case 2:
+ tp=ZS*(plt->xps);
+ {xi*=ZSC; xf*=ZSC;}
+ {xi+=tp; xf+=tp;}
+ break;
+ case 1:
+ tp=-UZC*(plt->xps);
+ {xi*=UZ; xf*=UZ;}
+ {xi+=tp; xf+=tp;}
+ tp=-UZC*(plt->yps);
+ {yi*=UZ; yf*=UZ;}
+ {yi+=tp; yf+=tp;}
+ break;
+ case 0:
+ tp=ZS*(plt->xps);
+ {xi*=ZSC; xf*=ZSC;}
+ {xi+=tp; xf+=tp;}
+ tp=ZS*(plt->yps);
+ {yi*=ZSC; yf*=ZSC;}
+ {yi+=tp; yf+=tp;}
+ break;
+ default:
+ return FALSE;
+ }
+ gtk_plot_linear_update_scale_pretty(plot, xi, xf, yi, yf);
+ return TRUE;
+}
+
+static gint gtk_plot_linear_accessible_get_n_actions(AtkAction* action)
+{
+ GtkWidget *plot;
+
+ plot=gtk_accessible_get_widget(GTK_ACCESSIBLE(action));
+ if (plot==NULL) return 0;
+ return 6;
+}
+
+static const gchar* gtk_plot_linear_accessible_action_get_name(AtkAction* action, gint i)
+{
+ if (gtk_plot_linear_accessible_get_n_actions(action)==0) return NULL;
+ switch i
+ {
+ case 5: return "grow";
+ case 4: return "shrink";
+ case 3: return "widen";
+ case 2: return "narrow";
+ case 1: return "out";
+ case 0: return "in";
+ default: return NULL;
+ }
+}
+
+static const gchar* gtk_plot_linear_accessible_action_get_description(AtkAction* action, gint i)
+{
+ if (gtk_plot_linear_accessible_get_n_actions(action)==0) return NULL;
+ switch i
+ {
+ case 5: return "zoom out vertically";
+ case 4: return "zoom in vertically";
+ case 3: return "zoom out horizontally";
+ case 2: return "zoom in horizontally";
+ case 1: return "zoom out";
+ case 0: return "zoom in";
+ default: return NULL;
+ }
+}
+
+static const gchar* gtk_plot_linear_accessible_get_keybinding(AtkAction* action, gint i) {}
+
+static void atk_action_interface_init(AtkActionIface* iface)
+{
+ iface->do_action=gtk_plot_linear_accessible_do_action;
+ iface->get_n_actions=gtk_plot_linear_accessible_get_n_actions;
+ iface->get_name=gtk_plot_linear_accessible_action_get_name;
+ iface->get_name=gtk_plot_linear_accessible_action_get_description;
+ iface->get_keybinding=gtk_plot_linear_accessible_get_keybinding;
+}
+
+static void gtk_plot_linear_accessible_get_image_position(AtkImage* img, gint* x, gint* y, AtkCoordType coord_type) {atk_component_get_position(ATK_COMPONENT(img), x, y, coord_type);}
+
+static const gchar* gtk_plot_linear_accessible_get_image_description(AtkImage* img) {return (GTK_IMAGE_ACCESSIBLE(img))->image_description;}
+
+static gboolean gtk_plot_linear_accessible_set_image_description(AtkImage* img, const gchar* desc)
+{
+ GtkPlotLinearAccessible* access=GTK_PLOT_LINEAR_ACCESSIBLE(img);
+
+ g_free(access->image_description);
+ access->image_description=g_strdup(desc);
+ return TRUE;
+}
+
+static void gtk_plot_linear_accessible_get_image_size(AtkImage* img, gint* width, gint* height)
+{
+ GtkWidget* widget;
+
+ widget=gtk_accessible_get_widget(GTK_ACCESSIBLE(img));
+ if (widget==NULL) {*height=-1; *width=-1;}
+ else {*width=gtk_widget_get_allocated_width(widget); *height=gtk_widget_get_allocated_height(widget);}
+}
+
+static void atk_image_interface_init(AtkImageIface* iface)
+{
+ iface->get_image_position=gtk_plot_linear_accessible_get_image_position;
+ iface->get_image_description=gtk_plot_linear_accessible_get_image_description;
+ iface->set_image_description=gtk_plot_linear_accessible_set_image_description;
+ iface->get_image_size=gtk_plot_linear_accessible_get_image_size;
+}
+
+G_DEFINE_TYPE_WITH_CODE(GtkPlotLinearAccessible, _gtk_plot_linear_accessible, GTK_TYPE_WIDGET_ACCESSIBLE,
+ G_IMPLEMENT_INTERFACE(ATK_TYPE_ACTION, atk_action_interface_init);
+ G_IMPLEMENT_INTERFACE(ATK_TYPE_IMAGE, atk_image_interface_init))
+
+static void gtk_plot_linear_accessible_initialise(AtkObject* obj, gpointer data) {(ATK_OBJECT_CLASS(_gtk_plot_linear_accessible_parent_class))->initialize(obj, data);}
+
+static void gtk_plot_linear_accessible_finalise(GObject* obj)
+{
+ g_free(GTK_PLOT_LINEAR_ACCESSIBLE(obj)->image_description);
+ (G_OBJECT_CLASS(_gtk_plot_linear_accessible_parent_class))->finalize(obj);
+}
+
+static void _gtk_plot_linear_accessible_class_init(GtkPlotLinearAccessibleClass* klass)
+{
+ (ATK_OBJECT_CLASS(klass))->initialize=gtk_plot_linear_accessible_initialise;
+ (G_OBJECT_CLASS(klass))->finalize=gtk_plot_linear_accessible_finalise;
+}
+
+static void _gtk_plot_linear_accessible_init(GtkPlotLinearAccessible* access)
+{
+ GtkPlotLinear* plt;
+
+ plt=GTK_PLOT_LINEAR(gtk_accessible_get_widget(GTK_ACCESSIBLE(access)));
+ access->image_description=g_strdup_printf("Linear plot of %s versus %s", plt->ylab, plt->xlab);
+}
48 gtk3plot/a11y/gtkplotlinearaccessible.h
View
@@ -0,0 +1,48 @@
+/***************************************************************************
+ * gtkplotlinearaccessible.h
+ *
+ * An ATK class for data plotting
+ *
+ * Sat Dec 4 17:18:14 2010
+ * Copyright 2011 Paul Childs
+ * <pchilds@physics.org>
+ ****************************************************************************/
+
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_PLOT_LINEAR_ACCESSIBLE_H__
+# define __GTK_PLOT_LINEAR_ACCESSIBLE_H__
+# include "gtkplotaccessible.h"
+ G_BEGIN_DECLS
+# define GTK_TYPE_PLOT_LINEAR_ACCESSIBLE (_gtk_plot_linear_accessible_get_type())
+# define GTK_PLOT_LINEAR_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_PLOT_LINEAR_ACCESSIBLE, GtkPlotLinearAccessible))
+# define GTK_IS_PLOT_LINEAR_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_PLOT_LINEAR_ACCESSIBLE))
+# define GTK_PLOT_LINEAR_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_PLOT_LINEAR_ACCESSIBLE, GtkPlotLinearAccessibleClass))
+# define GTK_IS_PLOT_LINEAR_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_PLOT_LINEAR_ACCESSIBLE))
+# define GTK_PLOT_LINEAR_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_PLOT_LINEAR_ACCESSIBLE, GtkPlotLinearAccessibleClass))
+ typedef struct _GtkPlotLinearAccessible GtkPlotLinearAccessible;
+ typedef struct _GtkPlotLinearAccessibleClass GtkPlotLinearAccessibleClass;
+ struct _GtkPlotLinearAccessible
+ {
+ GtkPlotAccessible parent;
+ gchar* image_description;
+ };
+ struct _GtkPlotLinearAccessibleClass
+ {
+ GtkPlotAccessibleClass parent_class;
+ };
+ GType _gtk_plot_linear_accessible_get_type(void);
+ G_END_DECLS
+#endif
172 gtk3plot/a11y/gtkplotpolaraccessible.c
View
@@ -0,0 +1,172 @@
+/***************************************************************************
+ * gtkplotpolaraccessible.c
+ *
+ * An ATK class for data plotting
+ *
+ * Sat Dec 4 17:18:14 2010
+ * Copyright 2011 Paul Childs
+ * <pchilds@physics.org>
+ ****************************************************************************/
+
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <gtk/gtk.h>
+#include "gtkplotpolaraccessible.h"
+#include "../gtkplotpolar.h"
+#define ZS 0.5 /* zoom scale */
+#define ZSC 0.5 /* 1 minus this */
+#define UZ 2 /* inverse of this */
+#define UZC 1 /* this minus 1 */
+
+static gboolean gtk_plot_polar_accessible_do_action(AtkAction* action, gint i)
+{
+ gint tp, xf, xi, yf, yi;
+ GtkPlotPolar *plt;
+ GtkWidget *plot;
+
+ plot=gtk_accessible_get_widget(GTK_ACCESSIBLE(action));
+ plt=GTK_PLOT_POLAR(plot);
+ if (plot==NULL||!gtk_widget_get_sensitive(plot)) return FALSE;
+ g_object_get(G_OBJECT(plot), "thmin", &yi, "thmax", &yf, "rmin", &xi, "rmax", &xf, NULL);
+ switch i
+ {
+ case 3:
+ tp=-UZC*(plt->thps);
+ {yi*=UZ; yf*=UZ;}
+ {yi+=tp; yf+=tp;}
+ break;
+ case 2:
+ tp=ZS*(plt->thps);
+ {yi*=ZSC; yf*=ZSC;}
+ {yi+=tp; yf+=tp;}
+ break;
+ case 1:
+ tp=-UZC*(plt->rps);
+ {xi*=UZ; xf*=UZ;}
+ {xi+=tp; xf+=tp;}
+ break;
+ case 0:
+ tp=ZS*(plt->rps);
+ {xi*=ZSC; xf*=ZSC;}
+ {xi+=tp; xf+=tp;}
+ break;
+ default:
+ return FALSE;
+ }
+ gtk_plot_polar_update_scale_pretty(plot, xi, xf, yi, yf);
+ return TRUE;
+}
+
+static gint gtk_plot_polar_accessible_get_n_actions(AtkAction* action)
+{
+ GtkWidget *plot;
+
+ plot=gtk_accessible_get_widget(GTK_ACCESSIBLE(action));
+ if (plot==NULL) return 0;
+ return 4;
+}
+
+static const gchar* gtk_plot_polar_accessible_action_get_name(AtkAction* action, gint i)
+{
+ if (gtk_plot_polar_accessible_get_n_actions(action)==0) return NULL;
+ switch i
+ {
+ case 5: return "out";
+ case 4: return "in";
+ case 3: return "open";
+ case 2: return "close";
+ default: return NULL;
+ }
+}
+
+static const gchar* gtk_plot_polar_accessible_action_get_description(AtkAction* action, gint i)
+{
+ if (gtk_plot_polar_accessible_get_n_actions(action)==0) return NULL;
+ switch i
+ {
+ case 5: return "zoom out radially";
+ case 4: return "zoom in radially";
+ case 3: return "zoom out azimuthally";
+ case 2: return "zoom in azimuthally";
+ default: return NULL;
+ }
+}
+
+static const gchar* gtk_plot_polar_accessible_get_keybinding(AtkAction* action, gint i) {}
+
+static void atk_action_interface_init(AtkActionIface* iface)
+{
+ iface->do_action=gtk_plot_polar_accessible_do_action;
+ iface->get_n_actions=gtk_plot_polar_accessible_get_n_actions;
+ iface->get_name=gtk_plot_polar_accessible_action_get_name;
+ iface->get_name=gtk_plot_polar_accessible_action_get_description;
+ iface->get_keybinding=gtk_plot_polar_accessible_get_keybinding;
+}
+
+static void gtk_plot_polar_accessible_get_image_position(AtkImage* img, gint* x, gint* y, AtkCoordType coord_type) {atk_component_get_position(ATK_COMPONENT(img), x, y, coord_type);}
+
+static const gchar* gtk_plot_polar_accessible_get_image_description(AtkImage* img) {return (GTK_IMAGE_ACCESSIBLE(img))->image_description;}
+
+static gboolean gtk_plot_polar_accessible_set_image_description(AtkImage* img, const gchar* desc)
+{
+ GtkPlotPolarAccessible* access=GTK_PLOT_POLAR_ACCESSIBLE(img);
+
+ g_free(access->image_description);
+ access->image_description=g_strdup(desc);
+ return TRUE;
+}
+
+static void gtk_plot_polar_accessible_get_image_size(AtkImage* img, gint* width, gint* height)
+{
+ GtkWidget* widget;
+
+ widget=gtk_accessible_get_widget(GTK_ACCESSIBLE(img));
+ if (widget==NULL) {*height=-1; *width=-1;}
+ else {*width=gtk_widget_get_allocated_width(widget); *height=gtk_widget_get_allocated_height(widget);}
+}
+
+static void atk_image_interface_init(AtkImageIface* iface)
+{
+ iface->get_image_position=gtk_plot_polar_accessible_get_image_position;
+ iface->get_image_description=gtk_plot_polar_accessible_get_image_description;
+ iface->set_image_description=gtk_plot_polar_accessible_set_image_description;
+ iface->get_image_size=gtk_plot_polar_accessible_get_image_size;
+}
+
+G_DEFINE_TYPE_WITH_CODE(GtkPlotPolarAccessible, _gtk_plot_polar_accessible, GTK_TYPE_WIDGET_ACCESSIBLE,
+ G_IMPLEMENT_INTERFACE(ATK_TYPE_ACTION, atk_action_interface_init);
+ G_IMPLEMENT_INTERFACE(ATK_TYPE_IMAGE, atk_image_interface_init))
+
+static void gtk_plot_polar_accessible_initialise(AtkObject *obj, gpointer data) {(ATK_OBJECT_CLASS(_gtk_plot_polar_accessible_parent_class))->initialize(obj, data);}
+
+static void gtk_plot_polar_accessible_finalise(GObject *obj)
+{
+ g_free(GTK_PLOT_POLAR_ACCESSIBLE(obj)->image_description);
+ (G_OBJECT_CLASS(_gtk_plot_polar_accessible_parent_class))->finalize(obj);
+}
+
+static void _gtk_plot_polar_accessible_class_init(GtkPlotPolarAccessibleClass *klass)
+{
+ (ATK_OBJECT_CLASS(klass))->initialize=gtk_plot_polar_accessible_initialise;
+ (G_OBJECT_CLASS(klass))->finalize=gtk_plot_polar_accessible_finalise;
+}
+
+static void _gtk_plot_polar_accessible_init(GtkPlotPolarAccessible* access)
+{
+ GtkPlotPolar* plt;
+
+ plt=GTK_PLOT_POLAR(gtk_accessible_get_widget(GTK_ACCESSIBLE(access)));
+ access->image_description=g_strdup_printf("Polar plot of %s versus %s", plt->rlab, plt->thlab);
+}
48 gtk3plot/a11y/gtkplotpolaraccessible.h
View
@@ -0,0 +1,48 @@
+/***************************************************************************
+ * gtkplotpolaraccessible.h
+ *
+ * An ATK class for data plotting
+ *
+ * Sat Dec 4 17:18:14 2010
+ * Copyright 2011 Paul Childs
+ * <pchilds@physics.org>
+ ****************************************************************************/
+
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef __GTK_PLOT_POLAR_ACCESSIBLE_H__
+# define __GTK_PLOT_POLAR_ACCESSIBLE_H__
+# include "gtkplotaccessible.h"
+ G_BEGIN_DECLS
+# define GTK_TYPE_PLOT_POLAR_ACCESSIBLE (_gtk_plot_linear_accessible_get_type())
+# define GTK_PLOT_POLAR_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GTK_TYPE_PLOT_POLAR_ACCESSIBLE, GtkPlotPolarAccessible))
+# define GTK_IS_PLOT_POLAR_ACCESSIBLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GTK_TYPE_PLOT_POLAR_ACCESSIBLE))
+# define GTK_PLOT_POLAR_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GTK_TYPE_PLOT_POLAR_ACCESSIBLE, GtkPlotPolarAccessibleClass))
+# define GTK_IS_PLOT_POLAR_ACCESSIBLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GTK_TYPE_PLOT_POLAR_ACCESSIBLE))
+# define GTK_PLOT_POLAR_ACCESSIBLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GTK_TYPE_PLOT_POLAR_ACCESSIBLE, GtkPlotPolarAccessibleClass))
+ typedef struct _GtkPlotPolarAccessible GtkPlotPolarAccessible;
+ typedef struct _GtkPlotPolarAccessibleClass GtkPlotPolarAccessibleClass;
+ struct _GtkPlotPolarAccessible
+ {
+ GtkPlotAccessible parent;
+ gchar *image_description;
+ };
+ struct _GtkPlotPolarAccessibleClass
+ {
+ GtkPlotAccessibleClass parent_class;
+ };
+ GType _gtk_plot_polar_accessible_get_type(void);
+ G_END_DECLS
+#endif
32 gtk3plot/gtkplot.c
View
@@ -8,26 +8,24 @@
* <pchilds@physics.org>
****************************************************************************/
-/*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
*/
#include <gtk/gtk.h>
#include "gtkplot.h"
-
-G_DEFINE_TYPE (GtkPlot, gtk_plot, GTK_TYPE_DRAWING_AREA);
+#include "a11y/gtkplotaccessible.h"
+G_DEFINE_TYPE(GtkPlot, gtk_plot, GTK_TYPE_DRAWING_AREA);
void gtk_plot_set_font(GtkPlot *plot, PangoFontDescription *lf, PangoFontDescription *af)
{
@@ -69,10 +67,10 @@ static void gtk_plot_finalise(GtkPlot *plot)
static void gtk_plot_class_init(GtkPlotClass *klass)
{
GObjectClass *obj_klass;
- GtkWidgetClass *widget_klass;
obj_klass=G_OBJECT_CLASS(klass);
(obj_klass->finalize)=(GObjectFinalizeFunc) gtk_plot_finalise;
+ gtk_widget_class_set_accessible(GTK_WIDGET_CLASS(klass), GTK_TYPE_PLOT_ACCESSIBLE);
}
static void gtk_plot_init(GtkPlot *plot)
26 gtk3plot/gtkplot.h
View
@@ -8,20 +8,18 @@
* <pchilds@physics.org>
****************************************************************************/
-/*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Library General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_PLOT_H__
29 gtk3plot/gtkplotlinear.c
View
@@ -15,20 +15,18 @@
* <pchilds@physics.org>
****************************************************************************/
-/*
- * 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; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
*/
#include <gtk/gtk.h>
@@ -36,7 +34,7 @@
#include <cairo-ps.h>
#include <cairo-svg.h>
#include "gtkplotlinear.h"
-
+#include "a11y/gtkplotlinearaccessible.h"
#define GTK_PLOT_LINEAR_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), GTK_PLOT_TYPE_LINEAR, GtkPlotLinearPrivate))
#define ARP 0.05 /* Proportion of the graph occupied by arrows */
#define IRTR 0.577350269 /* 1/square root 3 */
@@ -4322,6 +4320,7 @@ static void gtk_plot_linear_class_init(GtkPlotLinearClass *klass)
(widget_klass->motion_notify_event)=gtk_plot_linear_motion_notify;
(widget_klass->button_release_event)=gtk_plot_linear_button_release;
(widget_klass->draw)=gtk_plot_linear_draw;
+ gtk_widget_class_set_accessible(widget_klass, GTK_TYPE_PLOT_LINEAR_ACCESSIBLE);
gtk_plot_linear_signals[MOVED]=g_signal_new("moved", G_OBJECT_CLASS_TYPE(obj_klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkPlotLinearClass, moved), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
}
26 gtk3plot/gtkplotlinear.h
View
@@ -8,20 +8,18 @@
* <pchilds@physics.org>
****************************************************************************/
-/*
- * 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; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_PLOT_LINEAR_H__
29 gtk3plot/gtkplotpolar.c
View
@@ -13,20 +13,18 @@
* <pchilds@physics.org>
****************************************************************************/
-/*
- * 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; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty ofpriv->ticks.zin
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Library General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
*/
/* TO DO:
@@ -43,7 +41,7 @@
#include <cairo-ps.h>
#include <cairo-svg.h>
#include "gtkplotpolar.h"
-
+#include "a11y/gtkplotpolaraccessible.h"
#define GTK_PLOT_POLAR_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), GTK_PLOT_TYPE_POLAR, GtkPlotPolarPrivate))
#define ARP 0.05 /* Proportion of the graph occupied by arrows */
#define IRTR 0.577350269 /* 1/square root 3 */
@@ -5725,6 +5723,7 @@ static void gtk_plot_polar_class_init(GtkPlotPolarClass *klass)
(widget_klass->motion_notify_event)=gtk_plot_polar_motion_notify;
(widget_klass->button_release_event)=gtk_plot_polar_button_release;
(widget_klass->draw)=gtk_plot_polar_draw;
+ gtk_widget_class_set_accessible(widget_klass, GTK_TYPE_PLOT_POLAR_ACCESSIBLE);
gtk_plot_polar_signals[MOVED]=g_signal_new("moved", G_OBJECT_CLASS_TYPE(obj_klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkPlotPolarClass, moved), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
}
26 gtk3plot/gtkplotpolar.h
View
@@ -8,20 +8,18 @@
* <pchilds@physics.org>
****************************************************************************/
-/*
- * 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; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_PLOT_POLAR_H__
27 gtk3plot/testplotlinear.c
View
@@ -9,27 +9,24 @@
* <pchilds@physics.org>
****************************************************************************/
-/*
- * 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; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
*/
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <math.h>
#include "gtkplotlinear.h"
-
#define CM 65535
#define CMI 0.000015259021897
#define HM 32767
27 gtk3plot/testplotpolar.c
View
@@ -9,27 +9,24 @@
* <pchilds@physics.org>
****************************************************************************/
-/*
- * 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; either version 2 of the License, or
- * (at your option) any later version.
- *
- * 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 Library General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
+/* GtkPlot3 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, either version 3 of the License, or
+ (at your option) any later version.
+
+ 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, see <http://www.gnu.org/licenses/>.
*/
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
#include <math.h>
#include "gtkplotpolar.h"
-
#define NMY_PI -3.1415926535897932384626433832795028841971693993751
GtkWidget *helpwin, *window, *plot, *statusbar, *colour, *jind, *entry1, *entry2, *butt1, *butt2, *jix;
101 reversion.sh
View
@@ -6,20 +6,84 @@ then
echo " and x,y,z is the library current, age, and revision versions"
exit 1
fi
+gar=$2
+lcr=$3
+lag=$4
+lrv=$5
if [ $1 -eq 3 ]
then
gmx=3
gmn=0
gdp="-3"
+ {
+ echo "AM_CFLAGS=\$(PLOT_CFLAGS) -g"
+ echo "MAINTAINERCLEANFILES=Makefile.in"
+ echo ""
+ echo "gtkplot_libincludedir=\$(libdir)/gtkplot-3.${gar}/include"
+ echo "nodist_gtkplot_libinclude_HEADERS=../gtkplotconfig.h"
+ echo ""
+ echo "lib_LTLIBRARIES=libgtkplot-@PLOT_API_VERSION@.la"
+ echo "libgtkplot_@PLOT_API_VERSION@_la_SOURCES= \\"
+ echo " gtkplot.c \\"
+ echo " gtkplotlinear.c \\"
+ echo " gtkplotpolar.c"
+ echo "libgtkplot_@PLOT_API_VERSION@_la_LDFLAGS= \\"
+ echo " @lt_enable_auto_import@ \\"
+ echo " -no-undefined \\"
+ echo " -version-info ${lcr}:${lrv}:${lag} \\"
+ echo " \$(PLOT_LIBS)"
+ echo "gtkplotincludedir=\$(includedir)/gtkplot-3.${gar}"
+ echo "gtkplotinclude_HEADERS= \\"
+ echo " gtkplot.h \\"
+ echo " gtkplotlinear.h \\"
+ echo " gtkplotpolar.h"
+ echo ""
+ echo "bin_PROGRAMS=TestPlotLinear TestPlotPolar"
+ echo "TestPlotLinear_SOURCES=testplotlinear.c"
+ echo "TestPlotLinear_LDADD=\$(PLOT_LIBS) libgtkplot-@PLOT_API_VERSION@.la"
+ echo "TestPlotPolar_SOURCES=testplotpolar.c"
+ echo "TestPlotPolar_LDADD=\$(PLOT_LIBS) libgtkplot-@PLOT_API_VERSION@.la"
+ } >gtk3plot/Makefile.am
else
gmx=2
gmn=18
gdp="2.$2"
+ {
+ echo "AM_CFLAGS=\$(PLOT_CFLAGS) -g"
+ echo "MAINTAINERCLEANFILES=Makefile.in"
+ echo ""
+ echo "gtkplot_libincludedir=\$(libdir)/gtkplot-2.${gar}/include"
+ echo "nodist_gtkplot_libinclude_HEADERS=../gtkplotconfig.h"
+ echo ""
+ echo "lib_LTLIBRARIES=libgtkplot-@PLOT_API_VERSION@.la"
+ echo "libgtkplot_@PLOT_API_VERSION@_la_SOURCES= \\"
+ echo " gtkplot.c \\"
+ echo " gtkplotlinear.c \\"
+ echo " gtkplotpolar.c \\"
+ echo " a11y/gtkplotaccessible.c \\"
+ echo " a11y/gtkplotlinearaccessible.c \\"
+ echo " a11y/gtkplotpolaraccessible.c"
+ echo "libgtkplot_@PLOT_API_VERSION@_la_LDFLAGS= \\"
+ echo " @lt_enable_auto_import@ \\"
+ echo " -no-undefined \\"
+ echo " -version-info ${lcr}:${lrv}:${lag} \\"
+ echo " \$(PLOT_LIBS)"
+ echo "gtkplotincludedir=\$(includedir)/gtkplot-2.${gar}"
+ echo "gtkplotinclude_HEADERS= \\"
+ echo " gtkplot.h \\"
+ echo " gtkplotlinear.h \\"
+ echo " gtkplotpolar.h \\"
+ echo " a11y/gtkplotaccessible.h \\"
+ echo " a11y/gtkplotlinearaccessible.h \\"
+ echo " a11y/gtkplotpolaraccessible.h"
+ echo ""
+ echo "bin_PROGRAMS=TestPlotLinear TestPlotPolar"
+ echo "TestPlotLinear_SOURCES=testplotlinear.c"
+ echo "TestPlotLinear_LDADD=\$(PLOT_LIBS) libgtkplot-@PLOT_API_VERSION@.la"
+ echo "TestPlotPolar_SOURCES=testplotpolar.c"
+ echo "TestPlotPolar_LDADD=\$(PLOT_LIBS) libgtkplot-@PLOT_API_VERSION@.la"
+ } >gtk2plot/Makefile.am
fi
-gar=$2
-lcr=$3
-lag=$4
-lrv=$5
{
echo "AC_PREREQ([2.65])"
echo "AC_INIT([Gtk${gmx}Plot],[${gmx}.${lcr}.${lrv}],[pchilds@physics.org],[gtk${gmx}plot],[https://github.com/pchilds/GtkPlot])"
@@ -59,35 +123,6 @@ echo "pkgconfigdir=\$(libdir)/pkgconfig"
echo "pkgconfig_DATA=gtkplot-${gmx}.${gar}.pc"
} >Makefile.am
{
-echo "AM_CFLAGS=\$(PLOT_CFLAGS) -g"
-echo "MAINTAINERCLEANFILES=Makefile.in"
-echo ""
-echo "gtkplot_libincludedir=\$(libdir)/gtkplot-${gmx}.${gar}/include"
-echo "nodist_gtkplot_libinclude_HEADERS=../gtkplotconfig.h"
-echo ""
-echo "lib_LTLIBRARIES=libgtkplot-@PLOT_API_VERSION@.la"
-echo "libgtkplot_@PLOT_API_VERSION@_la_SOURCES= \\"
-echo " gtkplot.c \\"
-echo " gtkplotlinear.c \\"
-echo " gtkplotpolar.c"
-echo "libgtkplot_@PLOT_API_VERSION@_la_LDFLAGS= \\"
-echo " @lt_enable_auto_import@ \\"
-echo " -no-undefined \\"
-echo " -version-info ${lcr}:${lrv}:${lag} \\"
-echo " \$(PLOT_LIBS)"
-echo "gtkplotincludedir=\$(includedir)/gtkplot-${gmx}.${gar}"
-echo "gtkplotinclude_HEADERS= \\"
-echo " gtkplot.h \\"
-echo " gtkplotlinear.h \\"
-echo " gtkplotpolar.h"
-echo ""
-echo "bin_PROGRAMS=TestPlotLinear TestPlotPolar"
-echo "TestPlotLinear_SOURCES=testplotlinear.c"
-echo "TestPlotLinear_LDADD=\$(PLOT_LIBS) libgtkplot-@PLOT_API_VERSION@.la"
-echo "TestPlotPolar_SOURCES=testplotpolar.c"
-echo "TestPlotPolar_LDADD=\$(PLOT_LIBS) libgtkplot-@PLOT_API_VERSION@.la"
-} >gtk${gmx}plot/Makefile.am
-{
echo "Source: libgtkplot"
echo "Priority: optional"
echo "Maintainer: Paul Childs <pchilds@physics.org>"
Please sign in to comment.
Something went wrong with that request. Please try again.