version 1.24, 2004/03/01 05:48:24 |
version 1.28, 2007/01/30 00:28:26 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/plot/ox_plot_xevent.c,v 1.23 2004/03/01 01:23:37 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/plot/ox_plot_xevent.c,v 1.27 2006/11/09 15:54:35 saito Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
|
|
#include <X11/Xaw/Paned.h> |
#include <X11/Xaw/Paned.h> |
|
|
static void Quit(); |
static void Quit(); |
|
static void print_canvas(Widget w, struct canvas *can, XtPointer calldata); |
|
static void output_to_printer(Widget w, struct canvas *can, XtPointer calldata); |
|
static void print_canvas_to_file(Widget w, struct canvas *can, XtPointer calldata); |
|
static void printing_method(Widget w, struct canvas *can, XtPointer calldata); |
|
|
static Atom wm_delete_window; |
static Atom wm_delete_window; |
|
|
Line 554 struct canvas *can; |
|
Line 558 struct canvas *can; |
|
int i,width,height; |
int i,width,height; |
Arg arg[6]; |
Arg arg[6]; |
char buf[BUFSIZ]; |
char buf[BUFSIZ]; |
static void print_canvas(); |
|
|
|
width = can->width; height = can->height; |
width = can->width; height = can->height; |
|
|
Line 840 copy_to_canvas(can) |
|
Line 843 copy_to_canvas(can) |
|
struct canvas *can; |
struct canvas *can; |
{ |
{ |
if ( display ) { |
if ( display ) { |
XCopyArea(display,can->pix,can->window, |
if ( can->color ) { |
drawGC,0,0,can->width,can->height,0,0); |
set_drawcolor(can->color); |
|
XCopyArea(display,can->pix,can->window, |
|
cdrawGC,0,0,can->width,can->height,0,0); |
|
} else |
|
XCopyArea(display,can->pix,can->window, |
|
drawGC,0,0,can->width,can->height,0,0); |
pline(display,can,can->window); |
pline(display,can,can->window); |
XFlush(display); |
XFlush(display); |
} |
} |
Line 956 static void print_canvas(w,can,calldata) |
|
Line 964 static void print_canvas(w,can,calldata) |
|
Widget entry; |
Widget entry; |
int i; |
int i; |
Arg arg[1]; |
Arg arg[1]; |
static void output_to_printer(); |
|
static void print_canvas_to_file(); |
|
static void printing_method(); |
|
|
|
W = w; |
W = w; |
Can = can; |
Can = can; |
Line 1170 static void output_to_ps_printer(w,fbutton,call) |
|
Line 1175 static void output_to_ps_printer(w,fbutton,call) |
|
/* test sequence |
/* test sequence |
ox_launch(0,"ox_plot"); |
ox_launch(0,"ox_plot"); |
ifplot(x^2-y^3); |
ifplot(x^2-y^3); |
drawcircle(0,0,100,0,0); |
drawcircle(0,0,100,0xff000,0); |
*/ |
*/ |
static int getColorSizeOfImageForPS(int xsize,int ysize,XImage *image, |
static int getColorSizeOfImageForPS(int xsize,int ysize,XImage *image, |
struct xcolorForPS **tableOfxcolorForPS); |
struct xcolorForPS **tableOfxcolorForPS); |
Line 1179 static void generate_psfile(can,fp) |
|
Line 1184 static void generate_psfile(can,fp) |
|
struct canvas *can; |
struct canvas *can; |
FILE *fp; |
FILE *fp; |
{ |
{ |
|
#if 0 |
int x,y; |
int x,y; |
XImage *image; |
XImage *image; |
int color[1]; |
int color[1]; |
Line 1203 static void generate_psfile(can,fp) |
|
Line 1209 static void generate_psfile(can,fp) |
|
method_is_not_available(); |
method_is_not_available(); |
} |
} |
fflush(NULL); |
fflush(NULL); |
|
#endif |
} |
} |
|
|
static void method_is_not_available() { |
static void method_is_not_available() { |