Skip to content
Browse files

update

  • Loading branch information...
1 parent f7931e7 commit 80c6a47410a0d5377da03967bafae39bf026f1eb @pchilds committed Jun 14, 2011
Showing with 4,629 additions and 34,289 deletions.
  1. 0 COPYING
  2. +11 −6 INSTALL
  3. +0 −2 PlotLinear/Makefile.am
  4. +3 −3 PlotLinear/src/Makefile.am
  5. +4,114 −3,273 PlotLinear/src/plotlinear0-1-0.c
  6. +48 −48 PlotLinear/src/plotlinear0-1-0.h
  7. +0 −2,848 PlotLinear/src/plotlinearboth0-1-0.c
  8. +0 −75 PlotLinear/src/plotlinearboth0-1-0.h
  9. +0 −2,763 PlotLinear/src/plotlinearlines0-1-0.c
  10. +0 −74 PlotLinear/src/plotlinearlines0-1-0.h
  11. +0 −2,446 PlotLinear/src/plotlinearpoints0-1-0.c
  12. +0 −74 PlotLinear/src/plotlinearpoints0-1-0.h
  13. +453 −195 PlotLinear/src/testplotlinear0-1-0.c
  14. 0 PlotLinear/src/testplotlinear0-1-0.h
  15. BIN PlotLinear/testplotlinear
  16. +0 −2 PlotLog/Makefile.am
  17. +0 −75 PlotLog/src/plotlinearlogboth0-1-0.h
  18. +0 −74 PlotLog/src/plotlinearloglines0-1-0.h
  19. +0 −74 PlotLog/src/plotlinearlogpoints0-1-0.h
  20. +0 −75 PlotLog/src/plotloglinearboth0-1-0.h
  21. +0 −74 PlotLog/src/plotloglinearlines0-1-0.h
  22. +0 −74 PlotLog/src/plotloglinearpoints0-1-0.h
  23. +0 −75 PlotLog/src/plotloglogboth0-1-0.h
  24. +0 −74 PlotLog/src/plotlogloglines0-1-0.h
  25. +0 −74 PlotLog/src/plotloglogpoints0-1-0.h
  26. +0 −677 PlotPolar/Makefile
  27. +0 −2 PlotPolar/Makefile.am
  28. +0 −677 PlotPolar/Makefile.in
  29. +0 −1,109 PlotPolar/aclocal.m4
  30. +0 −4,690 PlotPolar/autom4te.cache/output.0
  31. +0 −4,690 PlotPolar/autom4te.cache/output.1
  32. +0 −141 PlotPolar/autom4te.cache/requests
  33. +0 −840 PlotPolar/autom4te.cache/traces.0
  34. +0 −337 PlotPolar/autom4te.cache/traces.1
  35. +0 −26 PlotPolar/config.h
  36. +0 −25 PlotPolar/config.h.in
  37. +0 −291 PlotPolar/config.log
  38. +0 −1,172 PlotPolar/config.status
  39. +0 −4,690 PlotPolar/configure
  40. +0 −630 PlotPolar/depcomp
  41. +0 −520 PlotPolar/install-sh
  42. +0 −376 PlotPolar/missing
  43. +0 −459 PlotPolar/src/Makefile
  44. +0 −459 PlotPolar/src/Makefile.in
  45. BIN PlotPolar/src/TestPolarPlot
Sorry, we could not display the entire diff because it was too big.
View
0 COPYING 100755 → 100644
File mode changed.
View
17 INSTALL
@@ -17,21 +17,26 @@ to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release.
- The file `configure.in' is used to create `configure' by a program
-called `autoconf'. You only need `configure.in' if you want to change
-it or regenerate `configure' using a newer version of `autoconf'.
+ The file `configure.ac' is used to create `configure' by a program
+called `autoconf'. You only need `configure.ac' if you want to change
+it or regenerate `configure' using a newer version of `autoconf' (see
+the optional part of step 1 below).
The simplest way to compile this package is:
1. `cd' to the directory named according to the desired plotting
- function (e.g. /PlotPolar) and type `autoreconf --install' to
- create the configure and Makefile appropriate for your system.
+ function (e.g. `cd PlotPolar') and (optionally) type
+ `autoreconf --install' to create the appropriate scripts and
+ convert the configure and Makefile to something appropriate for
+ your system.
2. Type `./configure' to configure the package for your system. If
you're using `csh' on an old version of System V, you might need
to type `sh ./configure' instead to prevent `csh' from trying to
execute `configure' itself. While running, configure prints some
- messages telling which features it is checking for.
+ messages telling which features it is checking for. If it tells
+ you that dependenceies aren't met, then you will need to install
+ the -dev package corresponding to them.
3. Type `make' to compile the package.
View
2 PlotLinear/Makefile.am
@@ -1,5 +1,3 @@
## Process this file with automake to produce Makefile.in
SUBDIRS=src
-EXTRA_DIST= \
- autogen.sh
View
6 PlotLinear/src/Makefile.am
@@ -1,9 +1,9 @@
## Process this file with automake to produce Makefile.in
AM_CFLAGS=$(LIN_CFLAGS)
-bin_PROGRAMS=TestLinearPlot
-TestLinearPlot_SOURCES= \
+bin_PROGRAMS=TestPlotLinear
+TestPlotLinear_SOURCES= \
testplotlinear0-1-0.c \
plotlinear0-1-0.c \
testplotlinear0-1-0.h \
plotlinear0-1-0.h
-TestLinearPlot_LDADD=$(LIN_LIBS)
+TestPlotLinear_LDADD=$(LIN_LIBS)
View
7,387 PlotLinear/src/plotlinear0-1-0.c 100755 → 100644
4,114 additions, 3,273 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
96 PlotLinear/src/plotlinear0-1-0.h 100755 → 100644
@@ -25,52 +25,52 @@
*/
#ifndef __PLOT_LINEAR_H__
-#define __PLOT_LINEAR_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LINEAR (plot_linear_get_type())
-#define PLOT_LINEAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LINEAR, PlotLinear))
-#define PLOT_IS_LINEAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LINEAR))
-#define PLOT_LINEAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LINEAR, PlotLinearClass))
-#define PLOT_IS_LINEAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LINEAR))
-#define PLOT_GET_LINEAR_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LINEAR, PlotLinearClass))
-
-typedef struct _PlotLinear PlotLinear;
-typedef struct _PlotLinearClass PlotLinearClass;
-
-struct _PlotLinear
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- guint flagd; /* data display flags 1=lines only, 2=points only, 3=both */
- };
-
-struct _PlotLinearClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLinear *plot);
- };
-
-GType plot_linear_get_type(void);
-gboolean plot_linear_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linear_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linear_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_linear_new(void);
-
-G_END_DECLS
-
+# define __PLOT_LINEAR_H__
+# include <gtk/gtk.h>
+ G_BEGIN_DECLS
+# define PLOT_TYPE_LINEAR (plot_linear_get_type())
+# define PLOT_LINEAR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LINEAR, PlotLinear))
+# define PLOT_IS_LINEAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LINEAR))
+# define PLOT_LINEAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LINEAR, PlotLinearClass))
+# define PLOT_IS_LINEAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LINEAR))
+# define PLOT_LINEAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LINEAR, PlotLinearClass))
+ typedef struct _PlotLinear PlotLinear;
+ typedef struct _PlotLinearClass PlotLinearClass;
+ typedef enum
+ {
+ PLOT_LINEAR_ZOOM_OUT = 1 << 0,
+ PLOT_LINEAR_ZOOM_HZT = 1 << 1,
+ PLOT_LINEAR_ZOOM_VRT = 1 << 2,
+ PLOT_LINEAR_ZOOM_SGL = 1 << 3
+ } PlotLinearZoom;
+ typedef enum
+ {
+ PLOT_LINEAR_DISP_LIN = 1 << 0,
+ PLOT_LINEAR_DISP_PTS = 1 << 1
+ } PlotLinearDisp;
+ struct _PlotLinear
+ {
+ GtkDrawingArea parent;
+ GArray *xdata, *ydata; /* x and y data sets */
+ GArray *ind, *sizes; /* indices of first element and number of elements for each trace */
+ GArray *rd, *gr, *bl, *al; /* colour and alpha of the plots */
+ gchar *xlab, *ylab; /* labels for the x and y axes */
+ PangoFontDescription *afont, *lfont; /* font descriptions for the tick mark and axis labels */
+ guint ptsize, linew; /* radii of the points and line width of the plot line */
+ gint zmode; /* zoom mode flags */
+ gdouble xps, yps; /* x and y position of mouse */
+ guint flagd; /* data display flags */
+ };
+ struct _PlotLinearClass
+ {
+ GtkDrawingAreaClass parent_class;
+ void (*moved) (PlotLinear *plot);
+ };
+ gboolean plot_linear_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
+ gboolean plot_linear_update_scale_pretty(GtkWidget *widget, gdouble xl, gdouble xu, gdouble yl, gdouble yu);
+ gboolean plot_linear_print_eps(GtkWidget *widget, gchar *fout);
+ gboolean plot_linear_print_png(GtkWidget *widget, gchar *fout);
+ gboolean plot_linear_print_svg(GtkWidget *widget, gchar *fout);
+ GtkWidget *plot_linear_new(void);
+ G_END_DECLS
#endif
View
2,848 PlotLinear/src/plotlinearboth0-1-0.c
0 additions, 2,848 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
75 PlotLinear/src/plotlinearboth0-1-0.h
@@ -1,75 +0,0 @@
-/***************************************************************************
- * plotlinearboth.h
- *
- * A GTK+ widget that plots data (points and lines)
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LINEAR_BOTH_H__
-#define __PLOT_LINEAR_BOTH_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LINEAR_BOTH (plot_linear_both_get_type())
-#define PLOT_LINEAR_BOTH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LINEAR_BOTH, PlotLinearBoth))
-#define PLOT_IS_LINEAR_BOTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LINEAR_BOTH))
-#define PLOT_LINEAR_BOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LINEAR_BOTH, PlotLinearBothClass))
-#define PLOT_IS_LINEAR_BOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LINEAR_BOTH))
-#define PLOT_GET_LINEAR_BOTH_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LINEAR_BOTH, PlotLinearBothClass))
-
-typedef struct _PlotLinearBoth PlotLinearBoth;
-typedef struct _PlotLinearBothClass PlotLinearBothClass;
-
-struct _PlotLinearBoth
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLinearBothClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLinearBoth *plot);
- };
-
-GType plot_linear_both_get_type(void);
-gboolean plot_linear_both_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linear_both_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linear_both_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_linear_both_new(void);
-
-G_END_DECLS
-
-#endif
View
2,763 PlotLinear/src/plotlinearlines0-1-0.c
0 additions, 2,763 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
74 PlotLinear/src/plotlinearlines0-1-0.h
@@ -1,74 +0,0 @@
-/***************************************************************************
- * plotlinearlines.h
- *
- * A GTK+ widget that plots data (lines only)
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LINEAR_LINES_H__
-#define __PLOT_LINEAR_LINES_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LINEAR_LINES (plot_linear_lines_get_type())
-#define PLOT_LINEAR_LINES(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LINEAR_LINES, PlotLinearLines))
-#define PLOT_IS_LINEAR_LINES(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LINEAR_LINES))
-#define PLOT_LINEAR_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LINEAR_LINES, PlotLinearLinesClass))
-#define PLOT_IS_LINEAR_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LINEAR_LINES))
-#define PLOT_GET_LINEAR_LINES_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LINEAR_LINES, PlotLinearLinesClass))
-
-typedef struct _PlotLinearLines PlotLinearLines;
-typedef struct _PlotLinearLinesClass PlotLinearLinesClass;
-
-struct _PlotLinearLines
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLinearLinesClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLinearLines *plot);
- };
-
-GType plot_linear_lines_get_type (void);
-gboolean plot_linear_lines_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linear_lines_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linear_lines_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_linear_lines_new (void);
-
-G_END_DECLS
-
-#endif
View
2,446 PlotLinear/src/plotlinearpoints0-1-0.c
0 additions, 2,446 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
74 PlotLinear/src/plotlinearpoints0-1-0.h
@@ -1,74 +0,0 @@
-/***************************************************************************
- * plotlinearpoints.h
- *
- * A GTK+ widget that plots data (points only)
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LINEAR_POINTS_H__
-#define __PLOT_LINEAR_POINTS_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LINEAR_POINTS (plot_linear_points_get_type())
-#define PLOT_LINEAR_POINTS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LINEAR_POINTS, PlotLinearPoints))
-#define PLOT_IS_LINEAR_POINTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LINEAR_POINTS))
-#define PLOT_LINEAR_POINTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LINEAR_POINTS, PlotLinearPointsClass))
-#define PLOT_IS_LINEAR_POINTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LINEAR_POINTS))
-#define PLOT_GET_LINEAR_POINTS_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LINEAR_POINTS, PlotLinearPointsClass))
-
-typedef struct _PlotLinearPoints PlotLinearPoints;
-typedef struct _PlotLinearPointsClass PlotLinearPointsClass;
-
-struct _PlotLinearPoints
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLinearPointsClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLinearPoints *plot);
- };
-
-GType plot_linear_points_get_type (void);
-gboolean plot_linear_points_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linear_points_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linear_points_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_linear_points_new (void);
-
-G_END_DECLS
-
-#endif
View
648 PlotLinear/src/testplotlinear0-1-0.c 100755 → 100644
@@ -27,215 +27,473 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#include <math.h>
#include "plotlinear0-1-0.h"
-GtkWidget *window, *plot, *statusbar;
+#define CM 65535
+#define CMI 0.000015259021897
+#define HM 32767
+
+GtkWidget *window, *plot, *statusbar, *jind, *label;
+GArray *x, *y, *sz, *nx;
+gchar* fol=NULL;
+
+void dpr(GtkWidget *widget, gpointer data)
+{
+ GtkWidget *helpwin, *content, *table, *entry1, *entry2, *label, *butt1, *butt2, *colour;
+ GtkAdjustment *adj1, *adj2;
+ GdkColor cl;
+ PlotLinear *plt;
+ gdouble *ptr;
+ gint j;
+ gdouble xi, xf, mny, mxy;
+ gchar *str;
+
+ helpwin=gtk_dialog_new_with_buttons("Dsiplay Properties", GTK_WINDOW(window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CLOSE, GTK_RESPONSE_CANCEL, GTK_STOCK_APPLY, GTK_RESPONSE_APPLY, NULL);
+ g_signal_connect_swapped(G_OBJECT(helpwin), "destroy", G_CALLBACK(gtk_widget_destroy), G_OBJECT(helpwin));
+ gtk_widget_show(helpwin);
+ content=gtk_dialog_get_content_area(GTK_DIALOG(helpwin));
+ table=gtk_table_new(8, 2, FALSE);
+ gtk_widget_show(table);
+ label=gtk_label_new("X axis text:");
+ gtk_widget_show(label);
+ gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ label=gtk_label_new("Y axis text:");
+ gtk_widget_show(label);
+ gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ label=gtk_label_new("Text size:");
+ gtk_widget_show(label);
+ gtk_table_attach(GTK_TABLE(table), label, 0, 1, 4, 5, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ label=gtk_label_new("Tick label size:");
+ gtk_widget_show(label);
+ gtk_table_attach(GTK_TABLE(table), label, 0, 1, 6, 7, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ entry1=gtk_entry_new();
+ entry2=gtk_entry_new();
+ plt=PLOT_LINEAR(plot);
+ str=g_strdup(plt->xlab);
+ gtk_entry_set_text(GTK_ENTRY(entry1), str);
+ g_free(str);
+ str=g_strdup(plt->ylab);
+ gtk_entry_set_text(GTK_ENTRY(entry2), str);
+ g_free(str);
+ str=pango_font_description_to_string(plt->lfont);
+ butt1=gtk_font_button_new_with_font(str);
+ g_free(str);
+ gtk_font_button_set_show_style(GTK_FONT_BUTTON(butt1), TRUE);
+ gtk_font_button_set_show_size(GTK_FONT_BUTTON(butt1), TRUE);
+ gtk_font_button_set_use_font(GTK_FONT_BUTTON(butt1), TRUE);
+ gtk_font_button_set_use_size(GTK_FONT_BUTTON(butt1), FALSE);
+ gtk_font_button_set_title(GTK_FONT_BUTTON(butt1), "Font Selection for Axis Labels");
+ str=pango_font_description_to_string(plt->afont);
+ butt2=gtk_font_button_new_with_font(str);
+ g_free(str);
+ gtk_font_button_set_show_style(GTK_FONT_BUTTON(butt2), TRUE);
+ gtk_font_button_set_show_size(GTK_FONT_BUTTON(butt2), TRUE);
+ gtk_font_button_set_use_font(GTK_FONT_BUTTON(butt2), TRUE);
+ gtk_font_button_set_use_size(GTK_FONT_BUTTON(butt2), FALSE);
+ gtk_font_button_set_title(GTK_FONT_BUTTON(butt2), "Font Selection for Tick Mark Labels");
+ gtk_widget_show(entry1);
+ gtk_widget_show(entry2);
+ gtk_widget_show(butt1);
+ gtk_widget_show(butt2);
+ gtk_table_attach(GTK_TABLE(table), entry1, 0, 1, 1, 2, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ gtk_table_attach(GTK_TABLE(table), entry2, 0, 1, 3, 4, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ gtk_table_attach(GTK_TABLE(table), butt1, 0, 1, 5, 6, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ gtk_table_attach(GTK_TABLE(table), butt2, 0, 1, 7, 8, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ colour=gtk_color_selection_new();
+ gtk_color_selection_set_has_opacity_control(GTK_COLOR_SELECTION(colour), TRUE);
+ gtk_widget_show(colour);
+ gtk_table_attach(GTK_TABLE(table), colour, 1, 2, 0, 7, GTK_FILL|GTK_SHRINK|GTK_EXPAND, GTK_FILL|GTK_SHRINK|GTK_EXPAND, 2, 2);
+ gtk_container_add(GTK_CONTAINER(content), table);
+ if (gtk_dialog_run(GTK_DIALOG(helpwin))==GTK_RESPONSE_APPLY)
+ {
+ g_free(plt->xlab);
+ g_free(plt->ylab);
+ pango_font_description_free(plt->lfont);
+ pango_font_description_free(plt->afont);
+ (plt->xlab)=g_strdup(gtk_entry_get_text(GTK_ENTRY(entry1)));
+ (plt->ylab)=g_strdup(gtk_entry_get_text(GTK_ENTRY(entry2)));
+ str=g_strdup(gtk_font_button_get_font_name(GTK_FONT_BUTTON(butt1)));
+ (plt->lfont)=pango_font_description_from_string(str);
+ g_free(str);
+ str=g_strdup(gtk_font_button_get_font_name(GTK_FONT_BUTTON(butt2)));
+ (plt->afont)=pango_font_description_from_string(str);
+ g_free(str);
+ g_object_get(G_OBJECT(plot), "xmin", &xi, "xmax", &xf, "ymin", &mny, "ymax", &mxy, NULL);
+ plot_linear_update_scale(plot, xi, xf, mny, mxy);
+ }
+ gtk_widget_destroy(helpwin);
+}
void prt(GtkWidget *widget, gpointer data)
- {
- GtkWidget *wfile;
- GtkFileFilter *filter;
- gchar *fout=NULL;
+{
+ GtkWidget *wfile;
+ GtkFileFilter *epsfilt, *pngfilt, *svgfilt, *filt;
+ gchar *fout=NULL, *fout2=NULL;
+
+ wfile=gtk_file_chooser_dialog_new("Select Image File", GTK_WINDOW(window), GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL);
+ g_signal_connect(G_OBJECT(wfile), "destroy", G_CALLBACK(gtk_widget_destroy), G_OBJECT(wfile));
+ gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(wfile), TRUE);
+ gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(wfile), fol);
+ gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(wfile), FALSE);
+ epsfilt=gtk_file_filter_new();
+ gtk_file_filter_set_name(epsfilt, "Encapsulated Postscript (EPS)");
+ gtk_file_filter_add_mime_type(epsfilt, "application/postscript");
+ gtk_file_filter_add_mime_type(epsfilt, "application/eps");
+ gtk_file_filter_add_mime_type(epsfilt, "image/eps");
+ gtk_file_filter_add_mime_type(epsfilt, "image/x-eps");
+ gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(wfile), epsfilt);
+ pngfilt=gtk_file_filter_new();
+ gtk_file_filter_set_name(pngfilt, "Portable Network Graphics (PNG)");
+ gtk_file_filter_add_mime_type(pngfilt, "image/png");
+ gtk_file_filter_add_mime_type(pngfilt, "application/png");
+ gtk_file_filter_add_mime_type(pngfilt, "application/x-png");
+ gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(wfile), pngfilt);
+ svgfilt=gtk_file_filter_new();
+ gtk_file_filter_set_name(svgfilt, "Scalable Vector Graphics (SVG)");
+ gtk_file_filter_add_mime_type(svgfilt, "image/svg+xml");
+ gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(wfile), svgfilt);
+ if (gtk_dialog_run(GTK_DIALOG(wfile))==GTK_RESPONSE_ACCEPT)
+ {
+ g_free(fol);
+ fol=gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(wfile));
+ fout=gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(wfile));
+ filt=gtk_file_chooser_get_filter(GTK_FILE_CHOOSER(wfile));
+ if (filt==epsfilt)
+ {
+ if (g_str_has_suffix(fout, ".eps")) plot_linear_print_eps(plot, fout);
+ else
+ {
+ fout2=g_strconcat(fout, ".eps", NULL);
+ plot_linear_print_eps(plot, fout2);
+ g_free(fout2);
+ }
+ }
+ else if (filt==svgfilt)
+ {
+ if (g_str_has_suffix(fout, ".svg")) plot_linear_print_svg(plot, fout);
+ else
+ {
+ fout2=g_strconcat(fout, ".svg", NULL);
+ plot_linear_print_svg(plot, fout2);
+ g_free(fout2);
+ }
+ }
+ else if (g_str_has_suffix(fout, ".png")) plot_linear_print_png(plot, fout);
+ else
+ {
+ fout2=g_strconcat(fout, ".png", NULL);
+ plot_linear_print_png(plot, fout2);
+ g_free(fout2);
+ }
+ g_free(fout);
+ }
+ gtk_widget_destroy(wfile);
+}
+
+void opd(GtkWidget *widget, gpointer data)
+{
+ PlotLinear *plt;
+ GtkWidget *wfile;
+ gdouble xi, xf, lcl, mny, mxy;
+ guint k, sal;
+ gint lc;
+ gchar *contents, *str, *fin=NULL;
+ gchar **strary, **strat;
+ GError *Err;
- wfile=gtk_file_chooser_dialog_new("Select Image File", GTK_WINDOW(window), GTK_FILE_CHOOSER_ACTION_SAVE, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT, NULL);
- g_signal_connect(G_OBJECT(wfile), "destroy", G_CALLBACK(gtk_widget_destroy), G_OBJECT(wfile));
- gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(wfile), TRUE);
- filter=gtk_file_filter_new();
- gtk_file_filter_set_name(filter, "Encapsulated Postscript (EPS)");
- gtk_file_filter_add_pattern(filter, "*.eps");
- gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(wfile), filter);
- if (gtk_dialog_run(GTK_DIALOG(wfile))==GTK_RESPONSE_ACCEPT)
- {
- fout=gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(wfile));
- plot_linear_print_eps(plot, fout);
- g_free(fout);
- }
+ wfile=gtk_file_chooser_dialog_new("Select Data File", GTK_WINDOW(window), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
+ g_signal_connect(G_OBJECT(wfile), "destroy", G_CALLBACK(gtk_widget_destroy), G_OBJECT(wfile));
+ gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(wfile), FALSE);
+ gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(wfile), FALSE);
+ gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(wfile), fol);
+ if (gtk_dialog_run(GTK_DIALOG(wfile))==GTK_RESPONSE_ACCEPT)
+ {
+ g_free(fol);
+ fol=gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(wfile));
+ fin=gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(wfile));
+ if (g_file_get_contents(fin, &contents, NULL, &Err))
+ {
+ strary=g_strsplit_set(contents, "\r\n", 0);
+ sal=g_strv_length(strary);
+ g_array_free(x, TRUE);
+ g_array_free(y, TRUE);
+ g_array_free(sz, TRUE);
+ g_array_free(nx, TRUE);
+ x=g_array_new(FALSE, FALSE, sizeof(gdouble));
+ y=g_array_new(FALSE, FALSE, sizeof(gdouble));
+ sz=g_array_new(FALSE, FALSE, sizeof(gint));
+ nx=g_array_new(FALSE, FALSE, sizeof(gint));
+ lc=0;
+ for (k=gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(jind)); k<sal; k++)
+ {
+ if (!strary[k]) continue;
+ g_strchug(strary[k]);
+ if (!g_strcmp0("", strary[k])) continue;
+ if (!(g_ascii_isdigit(strary[k][0])|(g_str_has_prefix(strary[k],"-")))) continue;
+ strat=g_strsplit_set(strary[k], "\t,", 0);
+ lcl=g_ascii_strtod(g_strstrip(strat[0]), NULL);
+ g_array_append_val(x, lcl);
+ if (!strat[1]) lcl=0;
+ else lcl=g_ascii_strtod(g_strstrip(strat[1]), NULL);
+ if (lc==0) {mny=lcl; mxy=lcl;}
+ else
+ {
+ if (!strat[1]) lcl=0;
+ else lcl=g_ascii_strtod(g_strstrip(strat[1]), NULL);
+ if (lcl<mny) mny=lcl;
+ else if (lcl>mxy) mxy=lcl;
+ }
+ g_array_append_val(y, lcl);
+ g_strfreev(strat);
+ lc++;
+ }
+ g_strfreev(strary);
+ str=g_strdup_printf("File: %s successfully loaded", fin);
+ gtk_statusbar_push(GTK_STATUSBAR(statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), str), str);
+ g_free(str);
+ plt=PLOT_LINEAR(plot);
+ g_array_append_val(sz, lc);
+ (plt->sizes)=sz;
+ k=0;
+ g_array_append_val(nx, k);
+ (plt->xdata)=x;
+ (plt->ydata)=y;
+ (plt->ind)=nx;
+ xi=g_array_index(x, gdouble, 0);
+ xf=g_array_index(x, gdouble, (lc-1));
+ plot_linear_update_scale(plot, xi, xf, mny, mxy);
+ }
+ else
+ {
+ str=g_strdup_printf("Loading failed for file: %s", fin);
+ gtk_statusbar_push(GTK_STATUSBAR(statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), str), str);
+ g_free(str);
+ }
+ g_free(contents);
+ g_free(fin);
+ }
gtk_widget_destroy(wfile);
}
-void opd(GtkWidget *widget, gpointer data)
- {
- PlotLinear *plt;
- GtkWidget *wfile;
- GArray *x, *yb;
- gdouble xi, xf, lcl, mny, mxy;
- guint k, sal;
- gint lc;
- gchar *contents, *str, *fin=NULL;
- gchar **strary, **strat;
- GError *Err;
+void ad(GtkWidget *widget, gpointer data)
+{
+ PlotLinear *plt;
+ GtkWidget *wfile;
+ gdouble xi, xf, lcl, mny, mxy;
+ guint k, sal;
+ gint lc;
+ gchar *contents, *str, *fin=NULL;
+ gchar **strary, **strat;
+ GError *Err;
- wfile=gtk_file_chooser_dialog_new("Select Data File", GTK_WINDOW(window), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
- g_signal_connect(G_OBJECT(wfile), "destroy", G_CALLBACK(gtk_widget_destroy), G_OBJECT(wfile));
- if (gtk_dialog_run(GTK_DIALOG(wfile))==GTK_RESPONSE_ACCEPT)
- {
- fin=gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(wfile));
- if (g_file_get_contents(fin, &contents, NULL, &Err))
- {
- strary=g_strsplit_set(contents, "\r\n", 0);
- sal=g_strv_length(strary);
- x=g_array_new(FALSE, FALSE, sizeof(gdouble));
- yb=g_array_new(FALSE, FALSE, sizeof(gdouble));
- k=0;
- lc=0;
- for (k=0; k<sal; k++)
- {
- if (!strary[k]) continue;
- if (!g_strcmp0("", strary[k])) continue;
- if (!(g_ascii_isdigit(strary[k][0])|(g_str_has_prefix(strary[k],"-")))) continue;
- strat=g_strsplit_set(strary[k], "\t,", 0);
- lcl=g_ascii_strtod(g_strstrip(strat[0]), NULL);
- g_array_append_val(x, lcl);
- if (lc==0)
- {
- if (!strat[1]) lcl=0;
- else lcl=g_ascii_strtod(g_strstrip(strat[1]), NULL);
- mny=lcl;
- mxy=lcl;
- }
- else
- {
- if (!strat[1]) lcl=0;
- else lcl=g_ascii_strtod(g_strstrip(strat[1]), NULL);
- if (lcl<mny) mny=lcl;
- else if (lcl>mxy) mxy=lcl;
- }
- g_array_append_val(yb, lcl);
- g_strfreev(strat);
- lc++;
- }
- g_strfreev(strary);
- str=g_strdup_printf("File: %s successfully loaded", fin);
- gtk_statusbar_push(GTK_STATUSBAR(statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), str), str);
- g_free(str);
- plt=PLOT_LINEAR(plot);
- plt->size=lc;
- plt->xdata=x;
- plt->ydata=yb;
- xi=g_array_index(x, gdouble, 0);
- xf=g_array_index(x, gdouble, (lc-1));
- g_array_free(x, TRUE);
- g_array_free(yb, TRUE);
- plot_linear_update_scale(plot, xi, xf, mny, mxy);
- }
- else
- {
- str=g_strdup_printf("Loading failed for file: %s", fin);
- gtk_statusbar_push(GTK_STATUSBAR(statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), str), str);
- g_free(str);
- }
- g_free(contents);
- g_free(fin);
- }
+ wfile=gtk_file_chooser_dialog_new("Select Data File", GTK_WINDOW(window), GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
+ g_signal_connect(G_OBJECT(wfile), "destroy", G_CALLBACK(gtk_widget_destroy), G_OBJECT(wfile));
+ gtk_file_chooser_set_select_multiple(GTK_FILE_CHOOSER(wfile), FALSE);
+ gtk_file_chooser_set_show_hidden(GTK_FILE_CHOOSER(wfile), FALSE);
+ gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(wfile), fol);
+ if (gtk_dialog_run(GTK_DIALOG(wfile))==GTK_RESPONSE_ACCEPT)
+ {
+ g_free(fol);
+ fol=gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(wfile));
+ fin=gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(wfile));
+ if (g_file_get_contents(fin, &contents, NULL, &Err))
+ {
+ plt=PLOT_LINEAR(plot);
+ g_object_get(G_OBJECT(plot), "xmin", &xi, "xmax", &xf, "ymin", &mny, "ymax", &mxy, NULL);
+ k=(x->len);
+ g_array_append_val(nx, k);
+ strary=g_strsplit_set(contents, "\r\n", 0);
+ sal=g_strv_length(strary);
+ lc=0;
+ for (k=gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(jind)); k<sal; k++)
+ {
+ if (!strary[k]) continue;
+ g_strchug(strary[k]);
+ if (!g_strcmp0("", strary[k])) continue;
+ if (!(g_ascii_isdigit(strary[k][0])|(g_str_has_prefix(strary[k],"-")))) continue;
+ strat=g_strsplit_set(strary[k], "\t,", 0);
+ if (!strat[1]) lcl=0;
+ else lcl=g_ascii_strtod(g_strstrip(strat[1]), NULL);
+ if (lcl<mny) mny=lcl;
+ else if (lcl>mxy) mxy=lcl;
+ g_array_append_val(y, lcl);
+ lcl=g_ascii_strtod(g_strstrip(strat[0]), NULL);
+ if ((lc==0)&&(lcl<xi)) xi=lcl;
+ g_array_append_val(x, lcl);
+ g_strfreev(strat);
+ lc++;
+ }
+ if (lcl>xf) xf=lcl;
+ g_strfreev(strary);
+ str=g_strdup_printf("File: %s successfully loaded", fin);
+ gtk_statusbar_push(GTK_STATUSBAR(statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), str), str);
+ g_free(str);
+ g_array_append_val(sz, lc);
+ (plt->sizes)=sz;
+ (plt->ind)=nx;
+ (plt->xdata)=x;
+ (plt->ydata)=y;
+ plot_linear_update_scale(plot, xi, xf, mny, mxy);
+ }
+ else
+ {
+ str=g_strdup_printf("Loading failed for file: %s", fin);
+ gtk_statusbar_push(GTK_STATUSBAR(statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), str), str);
+ g_free(str);
+ }
+ g_free(contents);
+ g_free(fin);
+ }
gtk_widget_destroy(wfile);
}
void pltmv(PlotLinear *plt, gpointer data)
- {
- gchar *str;
-
- str=g_strdup_printf("x: %f, y: %f", plt->xps, plt->yps);
- gtk_statusbar_push(GTK_STATUSBAR(statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), str), str);
- g_free(str);
- }
+{
+ gchar *str;
+
+ str=g_strdup_printf("x: %f, y: %f", plt->xps, plt->yps);
+ gtk_statusbar_push(GTK_STATUSBAR(statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(statusbar), str), str);
+ g_free(str);
+}
void upg(GtkWidget *widget, gpointer data)
- {
- PlotLinear *plt;
- gint d;
- gdouble xn, xx, yn, yx;
-
- plt=PLOT_LINEAR(plot);
- d=gtk_combo_box_get_active(GTK_COMBO_BOX(widget));
- d++;
- (plt->flagd)=d;
- g_object_get(G_OBJECT(plot), "xmin", &xn, "xmax", &xx, "ymin", &yn, "ymax", &yx, NULL);
- plot_linear_update_scale_pretty(plot, xn, xx, yn, yx);
- }
+{
+ PlotLinear *plt;
+ gint d;
+ gdouble xn, xx, yn, yx;
+
+ plt=PLOT_LINEAR(plot);
+ d=gtk_combo_box_get_active(GTK_COMBO_BOX(widget));
+ d++;
+ (plt->flagd)=d;
+ g_object_get(G_OBJECT(plot), "xmin", &xn, "xmax", &xx, "ymin", &yn, "ymax", &yx, NULL);
+ plot_linear_update_scale_pretty(plot, xn, xx, yn, yx);
+}
int main(int argc, char *argv[])
- {
- PlotLinear *plt;
- GtkWidget *vbox, *vbox2, *mnb, *mnu, *mni, *hpane, *butt;
- GArray *x, *y;
- guint j;
- gdouble val;
- GtkAccelGroup *accel_group=NULL;
-
- gtk_init(&argc, &argv);
- window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
- gtk_window_set_title(GTK_WINDOW(window), "PlotLinear tester");
- g_signal_connect_swapped(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
- vbox=gtk_vbox_new(FALSE, 0);
- gtk_container_add(GTK_CONTAINER(window), vbox);
- gtk_widget_show(vbox);
- mnb=gtk_menu_bar_new();
- gtk_box_pack_start(GTK_BOX(vbox), mnb, FALSE, FALSE, 2);
- gtk_widget_show(mnb);
- mnu=gtk_menu_new();
- accel_group=gtk_accel_group_new();
- gtk_window_add_accel_group(GTK_WINDOW(window), accel_group);
- mni=gtk_image_menu_item_new_from_stock(GTK_STOCK_OPEN, NULL);
- gtk_widget_add_accelerator(mni, "activate", accel_group, GDK_o, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
- g_signal_connect(G_OBJECT(mni), "activate", G_CALLBACK(opd), NULL);
- gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
- gtk_widget_show(mni);
- mni=gtk_image_menu_item_new_from_stock(GTK_STOCK_PRINT, NULL);
- gtk_widget_add_accelerator(mni, "activate", accel_group, GDK_p, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
- g_signal_connect(G_OBJECT(mni), "activate", G_CALLBACK(prt), NULL);
- gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
- gtk_widget_show(mni);
- mni=gtk_separator_menu_item_new();
- gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
- gtk_widget_show(mni);
- mni=gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, accel_group);
- gtk_widget_add_accelerator(mni, "activate", accel_group, GDK_q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
- g_signal_connect(G_OBJECT(mni), "activate", G_CALLBACK(gtk_main_quit), NULL);
- gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
- gtk_widget_show(mni);
- mni=gtk_menu_item_new_with_mnemonic("_File");
- gtk_widget_show(mni);
- gtk_menu_item_set_submenu(GTK_MENU_ITEM(mni), mnu);
- gtk_menu_shell_append(GTK_MENU_SHELL(mnb), mni);
- hpane=gtk_hpaned_new();
- gtk_widget_show(hpane);
- gtk_container_add(GTK_CONTAINER(vbox), hpane);
- vbox2=gtk_vbox_new(FALSE, 0);
- gtk_widget_show(vbox2);
- butt=gtk_combo_box_new_text();
- gtk_combo_box_append_text(GTK_COMBO_BOX(butt), "lines");
- gtk_combo_box_append_text(GTK_COMBO_BOX(butt), "points");
- gtk_combo_box_append_text(GTK_COMBO_BOX(butt), "both");
- g_signal_connect(G_OBJECT(butt), "changed", G_CALLBACK(upg), NULL);
- gtk_box_pack_start(GTK_BOX(vbox2), butt, FALSE, FALSE, 2);
- gtk_widget_show(butt);
- gtk_paned_add1(GTK_PANED(hpane), vbox2);
- plot=plot_linear_new();
- g_signal_connect(plot, "moved", G_CALLBACK(pltmv), NULL);
- x=g_array_sized_new(FALSE, FALSE, sizeof(gdouble), 1024);
- y=g_array_sized_new(FALSE, FALSE, sizeof(gdouble), 1024);
- for (j=0; j<50; j++)
- {
- val=((gdouble)j-10)/32;
- g_array_append_val(x, val);
- val*=val;
- val=-val;
- val++;
- g_array_append_val(y, val);
- }
- plt=PLOT_LINEAR(plot);
- (plt->flagd)=3;
- (plt->size)=j;
- (plt->xdata)=x;
- (plt->ydata)=y;
- (plt->ptsize)=4;
- (plt->lfsize)=14;
- gtk_widget_show(plot);
- gtk_paned_add2(GTK_PANED(hpane), plot);
- statusbar=gtk_statusbar_new();
- gtk_box_pack_start(GTK_BOX(vbox), statusbar, FALSE, FALSE, 2);
- gtk_widget_show(statusbar);
- gtk_widget_show(window);
- gtk_main();
- return 0;
- }
+{
+ PlotLinear *plt;
+ GtkWidget *vbox, *vbox2, *mnb, *mnu, *mni, *hpane, *butt;
+ GtkAdjustment *adj;
+ guint j;
+ gdouble val;
+ GtkAccelGroup *accel_group=NULL;
+
+ gtk_init(&argc, &argv);
+ window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_title(GTK_WINDOW(window), "PlotLinear tester");
+ g_signal_connect_swapped(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
+ vbox=gtk_vbox_new(FALSE, 0);
+ gtk_container_add(GTK_CONTAINER(window), vbox);
+ gtk_widget_show(vbox);
+ mnb=gtk_menu_bar_new();
+ gtk_box_pack_start(GTK_BOX(vbox), mnb, FALSE, FALSE, 2);
+ gtk_widget_show(mnb);
+ mnu=gtk_menu_new();
+ accel_group=gtk_accel_group_new();
+ gtk_window_add_accel_group(GTK_WINDOW(window), accel_group);
+ mni=gtk_image_menu_item_new_from_stock(GTK_STOCK_OPEN, NULL);
+ gtk_widget_add_accelerator(mni, "activate", accel_group, GDK_o, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
+ g_signal_connect(G_OBJECT(mni), "activate", G_CALLBACK(opd), NULL);
+ gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
+ gtk_widget_show(mni);
+ mni=gtk_image_menu_item_new_from_stock(GTK_STOCK_ADD, NULL);
+ gtk_widget_add_accelerator(mni, "activate", accel_group, GDK_a, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
+ g_signal_connect(G_OBJECT(mni), "activate", G_CALLBACK(ad), NULL);
+ gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
+ gtk_widget_show(mni);
+ mni=gtk_image_menu_item_new_from_stock(GTK_STOCK_PRINT, NULL);
+ gtk_widget_add_accelerator(mni, "activate", accel_group, GDK_p, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
+ g_signal_connect(G_OBJECT(mni), "activate", G_CALLBACK(prt), NULL);
+ gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
+ gtk_widget_show(mni);
+ mni=gtk_separator_menu_item_new();
+ gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
+ gtk_widget_show(mni);
+ mni=gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, accel_group);
+ gtk_widget_add_accelerator(mni, "activate", accel_group, GDK_q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE);
+ g_signal_connect(G_OBJECT(mni), "activate", G_CALLBACK(gtk_main_quit), NULL);
+ gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
+ gtk_widget_show(mni);
+ mni=gtk_menu_item_new_with_mnemonic("_File");
+ gtk_widget_show(mni);
+ gtk_menu_item_set_submenu(GTK_MENU_ITEM(mni), mnu);
+ gtk_menu_shell_append(GTK_MENU_SHELL(mnb), mni);
+ mnu=gtk_menu_new();
+ mni=gtk_menu_item_new_with_label("Display Properties:");
+ gtk_widget_add_accelerator(mni, "activate", accel_group, GDK_F2, 0, GTK_ACCEL_VISIBLE);
+ g_signal_connect(G_OBJECT(mni), "activate", G_CALLBACK(dpr), NULL);
+ gtk_menu_shell_append(GTK_MENU_SHELL(mnu), mni);
+ gtk_widget_show(mni);
+ mni=gtk_menu_item_new_with_mnemonic("_Properties");
+ gtk_widget_show(mni);
+ gtk_menu_item_set_submenu(GTK_MENU_ITEM(mni), mnu);
+ gtk_menu_shell_append(GTK_MENU_SHELL(mnb), mni);
+ hpane=gtk_hpaned_new();
+ gtk_widget_show(hpane);
+ gtk_container_add(GTK_CONTAINER(vbox), hpane);
+ vbox2=gtk_vbox_new(FALSE, 0);
+ gtk_widget_show(vbox2);
+ butt=gtk_combo_box_new_text();
+ gtk_combo_box_append_text(GTK_COMBO_BOX(butt), "lines");
+ gtk_combo_box_append_text(GTK_COMBO_BOX(butt), "points");
+ gtk_combo_box_append_text(GTK_COMBO_BOX(butt), "both");
+ gtk_combo_box_set_active(GTK_COMBO_BOX(butt), 3);
+ g_signal_connect(G_OBJECT(butt), "changed", G_CALLBACK(upg), NULL);
+ gtk_box_pack_start(GTK_BOX(vbox2), butt, FALSE, FALSE, 2);
+ gtk_widget_show(butt);
+ label=gtk_label_new("Header Lines:");
+ gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 2);
+ gtk_widget_show(label);
+ adj=(GtkAdjustment *) gtk_adjustment_new(5, 0, G_MAXINT, 1.0, 5.0, 0.0);
+ jind=gtk_spin_button_new(adj, 0, 0);
+ gtk_box_pack_start(GTK_BOX(vbox2), jind, FALSE, FALSE, 2);
+ gtk_widget_show(jind);
+ gtk_paned_add1(GTK_PANED(hpane), vbox2);
+ plot=plot_linear_new();
+ g_signal_connect(plot, "moved", G_CALLBACK(pltmv), NULL);
+ x=g_array_sized_new(FALSE, FALSE, sizeof(gdouble), 1024);
+ y=g_array_sized_new(FALSE, FALSE, sizeof(gdouble), 1024);
+ sz=g_array_new(FALSE, FALSE, sizeof(gint));
+ nx=g_array_new(FALSE, FALSE, sizeof(gint));
+ plt=PLOT_LINEAR(plot);
+ (plt->flagd)=3;
+ j=0;
+ g_array_append_val(nx, j);
+ while (j<50)
+ {
+ val=(((gdouble)(j++))-10)/32;
+ g_array_append_val(x, val);
+ val*=val;
+ val=-val;
+ val++;
+ g_array_append_val(y, val);
+
+ }
+ g_array_append_val(sz, j);
+ g_array_append_val(nx, j);
+ for (j=0; j<25; j++)
+ {
+ val=((gdouble)j-2)/15;
+ g_array_append_val(x, val);
+ val--;
+ val*=sin(G_PI*val);
+ g_array_append_val(y, val);
+ }
+ g_array_append_val(sz, j);
+ (plt->sizes)=sz;
+ (plt->ind)=nx;
+ (plt->xdata)=x;
+ (plt->ydata)=y;
+ (plt->ptsize)=4;
+ gtk_widget_show(plot);
+ gtk_paned_add2(GTK_PANED(hpane), plot);
+ statusbar=gtk_statusbar_new();
+ gtk_box_pack_start(GTK_BOX(vbox), statusbar, FALSE, FALSE, 2);
+ gtk_widget_show(statusbar);
+ gtk_widget_show(window);
+ fol=g_strdup("/home");
+ gtk_main();
+ return 0;
+}
View
0 PlotLinear/src/testplotlinear0-1-0.h 100755 → 100644
File mode changed.
View
BIN PlotLinear/testplotlinear
Binary file not shown.
View
2 PlotLog/Makefile.am
@@ -1,5 +1,3 @@
## Process this file with automake to produce Makefile.in
SUBDIRS=src
-EXTRA_DIST= \
- autogen.sh
View
75 PlotLog/src/plotlinearlogboth0-1-0.h
@@ -1,75 +0,0 @@
-/***************************************************************************
- * plotlinearlogboth.h
- *
- * A GTK+ widget that plots data (points and lines) on a semilog scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LINEARLOG_BOTH_H__
-#define __PLOT_LINEARLOG_BOTH_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LINEARLOG_BOTH (plot_linearlog_both_get_type())
-#define PLOT_LINEARLOG_BOTH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LINEARLOG_BOTH, PlotLinearlogBoth))
-#define PLOT_IS_LINEARLOG_BOTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LINEARLOG_BOTH))
-#define PLOT_LINEARLOG_BOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LINEARLOG_BOTH, PlotLinearlogBothClass))
-#define PLOT_IS_LINEARLOG_BOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LINEARLOG_BOTH))
-#define PLOT_GET_LINEARLOG_BOTH_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LINEARLOG_BOTH, PlotLinearlogBothClass))
-
-typedef struct _PlotLinearlogBoth PlotLinearlogBoth;
-typedef struct _PlotLinearlogBothClass PlotLinearlogBothClass;
-
-struct _PlotLinearlogBoth
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLinearlogBothClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLinearlogBoth *plot);
- };
-
-GType plot_linearlog_both_get_type (void);
-gboolean plot_linearlog_both_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linearlog_both_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linearlog_both_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_linearlog_both_new (void);
-
-G_END_DECLS
-
-#endif
View
74 PlotLog/src/plotlinearloglines0-1-0.h
@@ -1,74 +0,0 @@
-/***************************************************************************
- * plotlinearloglines.h
- *
- * A GTK+ widget that plots data (lines only) on a semilog scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LINEARLOG_LINES_H__
-#define __PLOT_LINEARLOG_LINES_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LINEARLOG_LINES (plot_linearlog_lines_get_type())
-#define PLOT_LINEARLOG_LINES(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LINEARLOG_LINES, PlotLinearlogLines))
-#define PLOT_IS_LINEARLOG_LINES(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LINEARLOG_LINES))
-#define PLOT_LINEARLOG_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LINEARLOG_LINES, PlotLinearlogLinesClass))
-#define PLOT_IS_LINEARLOG_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LINEARLOG_LINES))
-#define PLOT_GET_LINEARLOG_LINES_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LINEARLOG_LINES, PlotLinearlogLinesClass))
-
-typedef struct _PlotLinearlogLines PlotLinearlogLines;
-typedef struct _PlotLinearlogLinesClass PlotLinearlogLinesClass;
-
-struct _PlotLinearlogLines
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLinearlogLinesClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLinearlogLines *plot);
- };
-
-GType plot_linearlog_lines_get_type (void);
-gboolean plot_linearlog_lines_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linearlog_lines_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linearlog_lines_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_linearlog_lines_new (void);
-
-G_END_DECLS
-
-#endif
View
74 PlotLog/src/plotlinearlogpoints0-1-0.h
@@ -1,74 +0,0 @@
-/***************************************************************************
- * plotlinearlogpoints.h
- *
- * A GTK+ widget that plots data (points only) on a semilog scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LINEARLOG_POINTS_H__
-#define __PLOT_LINEARLOG_POINTS_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LINEARLOG_POINTS (plot_linearlog_points_get_type())
-#define PLOT_LINEARLOG_POINTS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LINEARLOG_POINTS, PlotLinearlogPoints))
-#define PLOT_IS_LINEARLOG_POINTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LINEARLOG_POINTS))
-#define PLOT_LINEARLOG_POINTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LINEARLOG_POINTS, PlotLinearlogPointsClass))
-#define PLOT_IS_LINEARLOG_POINTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LINEARLOG_POINTS))
-#define PLOT_GET_LINEARLOG_POINTS_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LINEARLOG_POINTS, PlotLinearlogPointsClass))
-
-typedef struct _PlotLinearlogPoints PlotLinearlogPoints;
-typedef struct _PlotLinearlogPointsClass PlotLinearlogPointsClass;
-
-struct _PlotLinearlogPoints
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLinearlogPointsClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLinearlogPoints *plot);
- };
-
-GType plot_linearlog_points_get_type (void);
-gboolean plot_linearlog_points_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linearlog_points_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_linearlog_points_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_linearlog_points_new (void);
-
-G_END_DECLS
-
-#endif
View
75 PlotLog/src/plotloglinearboth0-1-0.h
@@ -1,75 +0,0 @@
-/***************************************************************************
- * plotloglinearboth.h
- *
- * A GTK+ widget that plots data (points and lines) on a semilog scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LOGLINEAR_BOTH_H__
-#define __PLOT_LOGLINEAR_BOTH_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LOGLINEAR_BOTH (plot_loglinear_both_get_type())
-#define PLOT_LOGLINEAR_BOTH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LOGLINEAR_BOTH, PlotLoglinearBoth))
-#define PLOT_IS_LOGLINEAR_BOTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LOGLINEAR_BOTH))
-#define PLOT_LOGLINEAR_BOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LOGLINEAR_BOTH, PlotLoglinearBothClass))
-#define PLOT_IS_LOGLINEAR_BOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LOGLINEAR_BOTH))
-#define PLOT_GET_LOGLINEAR_BOTH_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LOGLINEAR_BOTH, PlotLoglinearBothClass))
-
-typedef struct _PlotLoglinearBoth PlotLoglinearBoth;
-typedef struct _PlotLoglinearBothClass PlotLoglinearBothClass;
-
-struct _PlotLoglinearBoth
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLoglinearBothClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLoglinearBoth *plot);
- };
-
-GType plot_loglinear_both_get_type (void);
-gboolean plot_loglinear_both_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglinear_both_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglinear_both_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_loglinear_both_new (void);
-
-G_END_DECLS
-
-#endif
View
74 PlotLog/src/plotloglinearlines0-1-0.h
@@ -1,74 +0,0 @@
-/***************************************************************************
- * plotloglinearlines.h
- *
- * A GTK+ widget that plots data (lines only) on a semilog scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LOGLINEAR_LINES_H__
-#define __PLOT_LOGLINEAR_LINES_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LOGLINEAR_LINES (plot_loglinear_lines_get_type())
-#define PLOT_LOGLINEAR_LINES(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LOGLINEAR_LINES, PlotLoglinearLines))
-#define PLOT_IS_LOGLINEAR_LINES(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LOGLINEAR_LINES))
-#define PLOT_LOGLINEAR_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LOGLINEAR_LINES, PlotLoglinearLinesClass))
-#define PLOT_IS_LOGLINEAR_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LOGLINEAR_LINES))
-#define PLOT_GET_LOGLINEAR_LINES_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LOGLINEAR_LINES, PlotLoglinearLinesClass))
-
-typedef struct _PlotLoglinearLines PlotLoglinearLines;
-typedef struct _PlotLoglinearLinesClass PlotLoglinearLinesClass;
-
-struct _PlotLoglinearLines
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLoglinearLinesClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLoglinearLines *plot);
- };
-
-GType plot_loglinear_lines_get_type (void);
-gboolean plot_loglinear_lines_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglinear_lines_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglinear_lines_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_loglinear_lines_new (void);
-
-G_END_DECLS
-
-#endif
View
74 PlotLog/src/plotloglinearpoints0-1-0.h
@@ -1,74 +0,0 @@
-/***************************************************************************
- * plotloglinearpoints.h
- *
- * A GTK+ widget that plots data (points only) on a semilog scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LOGLINEAR_POINTS_H__
-#define __PLOT_LOGLINEAR_POINTS_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LOGLINEAR_POINTS (plot_loglinear_points_get_type())
-#define PLOT_LOGLINEAR_POINTS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LOGLINEAR_POINTS, PlotLoglinearPoints))
-#define PLOT_IS_LOGLINEAR_POINTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LOGLINEAR_POINTS))
-#define PLOT_LOGLINEAR_POINTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LOGLINEAR_POINTS, PlotLoglinearPointsClass))
-#define PLOT_IS_LOGLINEAR_POINTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LOGLINEAR_POINTS))
-#define PLOT_GET_LOGLINEAR_POINTS_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LOGLINEAR_POINTS, PlotLoglinearPointsClass))
-
-typedef struct _PlotLoglinearPoints PlotLoglinearPoints;
-typedef struct _PlotLoglinearPointsClass PlotLoglinearPointsClass;
-
-struct _PlotLoglinearPoints
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLoglinearPointsClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLoglinearPoints *plot);
- };
-
-GType plot_loglinear_points_get_type (void);
-gboolean plot_loglinear_points_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglinear_points_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglinear_points_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_loglinear_points_new (void);
-
-G_END_DECLS
-
-#endif
View
75 PlotLog/src/plotloglogboth0-1-0.h
@@ -1,75 +0,0 @@
-/***************************************************************************
- * plotloglogboth.h
- *
- * A GTK+ widget that plots data (points and lines) on a log-log scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LOGLOG_BOTH_H__
-#define __PLOT_LOGLOG_BOTH_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LOGLOG_BOTH (plot_loglog_both_get_type())
-#define PLOT_LOGLOG_BOTH(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LOGLOG_BOTH, PlotLoglogBoth))
-#define PLOT_IS_LOGLOG_BOTH(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LOGLOG_BOTH))
-#define PLOT_LOGLOG_BOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LOGLOG_BOTH, PlotLoglogBothClass))
-#define PLOT_IS_LOGLOG_BOTH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LOGLOG_BOTH))
-#define PLOT_GET_LOGLOG_BOTH_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LOGLOG_BOTH, PlotLoglogBothClass))
-
-typedef struct _PlotLoglogBoth PlotLoglogBoth;
-typedef struct _PlotLoglogBothClass PlotLoglogBothClass;
-
-struct _PlotLoglogBoth
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLoglogBothClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLoglogBoth *plot);
- };
-
-GType plot_loglog_both_get_type (void);
-gboolean plot_loglog_both_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglog_both_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglog_both_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_loglog_both_new (void);
-
-G_END_DECLS
-
-#endif
View
74 PlotLog/src/plotlogloglines0-1-0.h
@@ -1,74 +0,0 @@
-/***************************************************************************
- * plotlogloglines.h
- *
- * A GTK+ widget that plots data (lines only) on a log-log scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LOGLOG_LINES_H__
-#define __PLOT_LOGLOG_LINES_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LOGLOG_LINES (plot_loglog_lines_get_type())
-#define PLOT_LOGLOG_LINES(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LOGLOG_LINES, PlotLoglogLines))
-#define PLOT_IS_LOGLOG_LINES(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LOGLOG_LINES))
-#define PLOT_LOGLOG_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LOGLOG_LINES, PlotLoglogLinesClass))
-#define PLOT_IS_LOGLOG_LINES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LOGLOG_LINES))
-#define PLOT_GET_LOGLOG_LINES_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LOGLOG_LINES, PlotLoglogLinesClass))
-
-typedef struct _PlotLoglogLines PlotLoglogLines;
-typedef struct _PlotLoglogLinesClass PlotLoglogLinesClass;
-
-struct _PlotLoglogLines
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint linew; /* line width of the plot line */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLoglogLinesClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLoglogLines *plot);
- };
-
-GType plot_loglog_lines_get_type (void);
-gboolean plot_loglog_lines_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglog_lines_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglog_lines_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_loglog_lines_new (void);
-
-G_END_DECLS
-
-#endif
View
74 PlotLog/src/plotloglogpoints0-1-0.h
@@ -1,74 +0,0 @@
-/***************************************************************************
- * plotloglinearpoints.h
- *
- * A GTK+ widget that plots data (points only) on a log-log scale
- *
- * Sat Dec 4 17:18:14 2010
- * Copyright 2011 Paul Childs
- * <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
- */
-
-#ifndef __PLOT_LOGLOG_POINTS_H__
-#define __PLOT_LOGLOG_POINTS_H__
-
-#include <gtk/gtk.h>
-
-G_BEGIN_DECLS
-
-#define PLOT_TYPE_LOGLOG_POINTS (plot_loglog_points_get_type())
-#define PLOT_LOGLOG_POINTS(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), PLOT_TYPE_LOGLOG_POINTS, PlotLoglogPoints))
-#define PLOT_IS_LOGLOG_POINTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLOT_TYPE_LOGLOG_POINTS))
-#define PLOT_LOGLOG_POINTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PLOT_LOGLOG_POINTS, PlotLoglogPointsClass))
-#define PLOT_IS_LOGLOG_POINTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PLOT_TYPE_LOGLOG_POINTS))
-#define PLOT_GET_LOGLOG_POINTS_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PLOT_TYPE_LOGLOG_POINTS, PlotLoglogPointsClass))
-
-typedef struct _PlotLoglogPoints PlotLoglogPoints;
-typedef struct _PlotLoglogPointsClass PlotLoglogPointsClass;
-
-struct _PlotLoglogPoints
- {
- GtkDrawingArea parent;
- GArray *xdata; /* x data set */
- GArray *ydata; /* y data set */
- gint size; /* number of data points to display */
- gchar *xlab; /* label for the x axis */
- gchar *ylab; /* label for the y axis */
- guint afsize; /* font size for the tick mark labels */
- guint lfsize; /* font size for the axis labels */
- guint ptsize; /* radii of the points */
- gint zmode; /* zoom mode flags xxx0b/xxx1b = zoom in/out, 001xb = zoom horizontal only, 010xb = zoom vertical only, 011xb = zoom both, 1xxxb = single click zoom */
- gdouble xps; /* x position of mouse */
- gdouble yps; /* y position of mouse */
- };
-
-struct _PlotLoglogPointsClass
- {
- GtkDrawingAreaClass parent_class;
- void (*moved) (PlotLoglogPoints *plot);
- };
-
-GType plot_loglog_points_get_type (void);
-gboolean plot_loglog_points_update_scale(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglog_points_update_scale_pretty(GtkWidget *widget, gdouble xn, gdouble xx, gdouble yn, gdouble yx);
-gboolean plot_loglog_points_print_eps(GtkWidget *widget, gchar *fout);
-GtkWidget *plot_loglog_points_new (void);
-
-G_END_DECLS
-
-#endif
View
677 PlotPolar/Makefile
@@ -1,677 +0,0 @@
-# Makefile.in generated by automake 1.11.1 from Makefile.am.
-# Makefile. Generated from Makefile.in by configure.
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
-# Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-
-
-pkgdatadir = $(datadir)/gtk-plot
-pkgincludedir = $(includedir)/gtk-plot
-pkglibdir = $(libdir)/gtk-plot
-pkglibexecdir = $(libexecdir)/gtk-plot
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-subdir = .
-DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \
- $(srcdir)/Makefile.in $(srcdir)/config.h.in \
- $(top_srcdir)/configure depcomp install-sh missing
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno config.status.lineno
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES =
-CONFIG_CLEAN_VPATH_FILES =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
- html-recursive info-recursive install-data-recursive \
- install-dvi-recursive install-exec-recursive \
- install-html-recursive install-info-recursive \
- install-pdf-recursive install-ps-recursive install-recursive \
- installcheck-recursive installdirs-recursive pdf-recursive \
- ps-recursive uninstall-recursive
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
- $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
- distdir dist dist-all distcheck
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-distdir = $(PACKAGE)-$(VERSION)
-top_distdir = $(distdir)
-am__remove_distdir = \
- { test ! -d "$(distdir)" \
- || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
- && rm -fr "$(distdir)"; }; }
-am__relativize = \
- dir0=`pwd`; \
- sed_first='s,^\([^/]*\)/.*$$,\1,'; \
- sed_rest='s,^[^/]*/*,,'; \
- sed_last='s,^.*/\([^/]*\)$$,\1,'; \
- sed_butlast='s,/*[^/]*$$,,'; \
- while test -n "$$dir1"; do \
- first=`echo "$$dir1" | sed -e "$$sed_first"`; \
- if test "$$first" != "."; then \
- if test "$$first" = ".."; then \
- dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
- dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
- else \
- first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
- if test "$$first2" = "$$first"; then \
- dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
- else \
- dir2="../$$dir2"; \
- fi; \
- dir0="$$dir0"/"$$first"; \
- fi; \
- fi; \
- dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
- done; \
- reldir="$$dir2"
-DIST_ARCHIVES = $(distdir).tar.gz
-GZIP_ENV = --best
-distuninstallcheck_listfiles = find . -type f -print
-distcleancheck_listfiles = find . -type f -print
-ACLOCAL = ${SHELL} /home/iona/Documents/program/GtkPlot/PlotPolar/missing --run aclocal-1.11
-AMTAR = ${SHELL} /home/iona/Documents/program/GtkPlot/PlotPolar/missing --run tar
-AUTOCONF = ${SHELL} /home/iona/Documents/program/GtkPlot/PlotPolar/missing --run autoconf
-AUTOHEADER = ${SHELL} /home/iona/Documents/program/GtkPlot/PlotPolar/missing --run autoheader
-AUTOMAKE = ${SHELL} /home/iona/Documents/program/GtkPlot/PlotPolar/missing --run automake-1.11
-AWK = gawk
-CC = gcc
-CCDEPMODE = depmode=gcc3
-CFLAGS = -g -O2
-CPPFLAGS =
-CYGPATH_W = echo
-DEFS = -DHAVE_CONFIG_H
-DEPDIR = .deps
-ECHO_C =
-ECHO_N = -n
-ECHO_T =
-EXEEXT =
-INSTALL = /usr/bin/install -c
-INSTALL_DATA = ${INSTALL} -m 644
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_SCRIPT = ${INSTALL}
-INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
-LDFLAGS =
-LIBOBJS =
-LIBS =
-LTLIBOBJS =
-MAKEINFO = ${SHELL} /home/iona/Documents/program/GtkPlot/PlotPolar/missing --run makeinfo
-MKDIR_P = /bin/mkdir -p
-OBJEXT = o
-PACKAGE = gtk-plot
-PACKAGE_BUGREPORT = pchilds@physics.org
-PACKAGE_NAME = GtkPlot
-PACKAGE_STRING = GtkPlot 0.1.0
-PACKAGE_TARNAME = gtk-plot
-PACKAGE_URL = https://github.com/pchilds/GtkPlot
-PACKAGE_VERSION = 0.1.0
-PATH_SEPARATOR = :
-PKG_CONFIG = /usr/bin/pkg-config
-POL_CFLAGS = -pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12
-POL_LIBS = -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-SET_MAKE =
-SHELL = /bin/bash
-STRIP =
-VERSION = 0.1.0
-abs_builddir = /home/iona/Documents/program/GtkPlot/PlotPolar
-abs_srcdir = /home/iona/Documents/program/GtkPlot/PlotPolar
-abs_top_builddir = /home/iona/Documents/program/GtkPlot/PlotPolar
-abs_top_srcdir = /home/iona/Documents/program/GtkPlot/PlotPolar
-ac_ct_CC = gcc
-am__include = include
-am__leading_dot = .
-am__quote =
-am__tar = ${AMTAR} chof - "$$tardir"
-am__untar = ${AMTAR} xf -
-bindir = ${exec_prefix}/bin
-build_alias =
-builddir = .
-datadir = ${datarootdir}
-datarootdir = ${prefix}/share
-docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
-dvidir = ${docdir}
-exec_prefix = ${prefix}
-host_alias =
-htmldir = ${docdir}
-includedir = ${prefix}/include
-infodir = ${datarootdir}/info
-install_sh = ${SHELL} /home/iona/Documents/program/GtkPlot/PlotPolar/install-sh
-libdir = ${exec_prefix}/lib
-libexecdir = ${exec_prefix}/libexec
-localedir = ${datarootdir}/locale
-localstatedir = ${prefix}/var
-mandir = ${datarootdir}/man
-mkdir_p = /bin/mkdir -p
-oldincludedir = /usr/include
-pdfdir = ${docdir}
-prefix = /usr/local
-program_transform_name = s,x,x,
-psdir = ${docdir}
-sbindir = ${exec_prefix}/sbin
-sharedstatedir = ${prefix}/com
-srcdir = .
-sysconfdir = ${prefix}/etc
-target_alias =
-top_build_prefix =
-top_builddir = .
-top_srcdir = .
-SUBDIRS = src
-EXTRA_DIST = \
- autogen.sh
-
-all: config.h
- $(MAKE) $(AM_MAKEFLAGS) all-recursive
-
-.SUFFIXES:
-am--refresh:
- @:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
- $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
- $(am__cd) $(top_srcdir) && \
- $(AUTOMAKE) --foreign Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- echo ' $(SHELL) ./config.status'; \
- $(SHELL) ./config.status;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- $(SHELL) ./config.status --recheck
-
-$(top_srcdir)/configure: $(am__configure_deps)
- $(am__cd) $(srcdir) && $(AUTOCONF)
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
-$(am__aclocal_m4_deps):
-
-config.h: stamp-h1
- @if test ! -f $@; then \
- rm -f stamp-h1; \
- $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
- else :; fi
-
-stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
- @rm -f stamp-h1
- cd $(top_builddir) && $(SHELL) ./config.status config.h
-$(srcdir)/config.h.in: $(am__configure_deps)
- ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
- rm -f stamp-h1
- touch $@
-
-distclean-hdr:
- -rm -f config.h stamp-h1
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run `make' without going through this Makefile.
-# To change the values of `make' variables: instead of editing Makefiles,
-# (1) if the variable is set in `config.status', edit `config.status'
-# (which will cause the Makefiles to be regenerated when you run `make');
-# (2) otherwise, pass the desired values on the `make' command line.
-$(RECURSIVE_TARGETS):
- @fail= failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- target=`echo $@ | sed s/-recursive//`; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- dot_seen=yes; \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done; \
- if test "$$dot_seen" = "no"; then \
- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
- fi; test -z "$$fail"
-
-$(RECURSIVE_CLEAN_TARGETS):
- @fail= failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- case "$@" in \
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
- *) list='$(SUBDIRS)' ;; \
- esac; \
- rev=''; for subdir in $$list; do \
- if test "$$subdir" = "."; then :; else \
- rev="$$subdir $$rev"; \
- fi; \
- done; \
- rev="$$rev ."; \
- target=`echo $@ | sed s/-recursive//`; \
- for subdir in $$rev; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done && test -z "$$fail"
-tags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
- done
-ctags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
- done
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- set x; \
- here=`pwd`; \
- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
- include_option=--etags-include; \
- empty_fix=.; \
- else \
- include_option=--include; \
- empty_fix=; \
- fi; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test ! -f $$subdir/TAGS || \
- set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
- fi; \
- done; \
- list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- shift; \
- if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- if test $$# -gt 0; then \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- "$$@" $$unique; \
- else \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$unique; \
- fi; \
- fi
-ctags: CTAGS
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
- END { if (nonempty) { for (i in files) print i; }; }'`; \
- test -z "$(CTAGS_ARGS)$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && $(am__cd) $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) "$$here"
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
- $(am__remove_distdir)
- test -d "$(distdir)" || mkdir "$(distdir)"
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d "$(distdir)/$$file"; then \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
- find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
- fi; \
- cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
- else \
- test -f "$(distdir)/$$file" \
- || cp -p $$d/$$file "$(distdir)/$$file" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
- $(am__relativize); \
- new_distdir=$$reldir; \
- dir1=$$subdir; dir2="$(top_distdir)"; \
- $(am__relativize); \
- new_top_distdir=$$reldir; \
- echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
- echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
- ($(am__cd) $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$$new_top_distdir" \
- distdir="$$new_distdir" \
- am__remove_distdir=: \
- am__skip_length_check=: \
- am__skip_mode_fix=: \
- distdir) \
- || exit 1; \
- fi; \
- done
- -test -n "$(am__skip_mode_fix)" \
- || find "$(distdir)" -type d ! -perm -755 \
- -exec chmod u+rwx,go+rx {} \; -o \
- ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
- ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
- || chmod -R a+r "$(distdir)"
-dist-gzip: distdir
- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
- $(am__remove_distdir)
-
-dist-bzip2: distdir
- tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
- $(am__remove_distdir)
-
-dist-lzma: distdir
- tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
- $(am__remove_distdir)
-
-dist-xz: distdir
- tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
- $(am__remove_distdir)
-
-dist-tarZ: distdir
- tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
- $(am__remove_distdir)
-
-dist-shar: distdir
- shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
- $(am__remove_distdir)
-
-dist-zip: distdir
- -rm -f $(distdir).zip
- zip -rq $(distdir).zip $(distdir)
- $(am__remove_distdir)
-
-dist dist-all: distdir
- tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
- $(am__remove_distdir)
-
-# This target untars the dist file and tries a VPATH configuration. Then
-# it guarantees that the distribution is self-contained by making another
-# tarfile.
-distcheck: dist
- case '$(DIST_ARCHIVES)' in \
- *.tar.gz*) \