29 #include <wx/wfstream.h> 30 #include <wx/except.h> 46 #include <Carbon/Carbon.h> 47 extern "C" {
void CPSEnableForegroundOperation( ProcessSerialNumber* psn ); }
60 va_start( args, fmt );
61 fprintf( stderr,
"Verbose: " );
62 vfprintf( stderr, fmt, args );
63 fprintf( stderr,
"\n" );
81 va_start( args, fmt );
82 fprintf( stderr,
"Debug: " );
83 vfprintf( stderr, fmt, args );
84 fprintf( stderr,
"\n" );
104 "wxwidgets:wxWidgets Driver:1:wxwidgets:51:wxwidgets\n" 107 "wxpng:wxWidgets PNG Driver:0:wxwidgets:52:wxpng\n" 125 #ifndef ENABLE_DYNDRIVERS 155 throw(
"plD_init_wxwidgets called when a initialization has already occurred." );
162 wxApp::SetInstance(
new wxApp() );
167 throw(
"plD_init_wxWidgets could not initialise wxWidgets" );
175 static char *mfo = NULL;
178 {
"hrshsym",
DRV_INT, &
hrshsym,
"Use Hershey symbol set (hrshsym=0|1)" },
179 {
"text",
DRV_INT, &
text,
"Use own text routines (text=0|1)" },
180 {
"mfo",
DRV_STR, &mfo,
"output metafile" },
192 device =
new wxPLDevice( pls, mfo, text, hrshsym );
207 catch (
const char *message )
210 plabort(
"error in plD_init_wxwidgets." );
215 plabort(
"unknown error in plD_init_wxwidgets." );
220 #endif // PLD_wxwidgets 232 #ifndef ENABLE_DYNDRIVERS 258 dev = common_init( pls );
272 dev->showGUI =
false;
273 dev->bitmapType = wxBITMAP_TYPE_PNG;
292 throw(
"plD_line_wxwidgets called before initialization." );
293 device->
DrawLine( x1a, y1a, x2a, y2a );
295 catch (
const char* message )
298 plabort(
"error in plD_line_wxwidgets." );
302 plabort(
"unknown error in plD_line_wxwidgets." );
320 throw(
"plD_polyline_wxwidgets called before initialization." );
323 catch (
const char* message )
326 plabort(
"error in plD_polyline_wxwidgets." );
330 plabort(
"unknown error in plD_polyline_wxwidgets." );
350 throw(
"plD_eop_wxwidgets called before initialization." );
354 catch (
const char* message )
357 plabort(
"error in plD_eop_wxwidgets." );
361 plabort(
"unknown error in plD_eop_wxwidgets." );
380 throw(
"plD_wait_wxwidgets called before initialization." );
383 catch (
const char* message )
386 plabort(
"error in plD_wait_wxwidgets." );
390 plabort(
"unknown error in plD_wait_wxwidgets." );
410 throw(
"plD_bop_wxwidgets called before initialization." );
413 catch (
const char* message )
416 plabort(
"error in plD_bop_wxwidgets." );
420 plabort(
"unknown error in plD_bop_wxwidgets." );
446 catch (
const char* message )
449 plabort(
"error in plD_tidy_wxwidgets." );
453 plabort(
"unknown error in plD_tidy_wxwidgets." );
486 catch (
const char* message )
489 plabort(
"error in plD_state_wxwidgets." );
493 plabort(
"unknown error in plD_state_wxwidgets." );
515 throw(
"plD_esc_wxwidgets called before initialization." );
527 device->
SetDC( pls, (wxDC *) ptr );
536 wxSize* size = (wxSize *) ptr;
537 device->
SetSize( pls, size->GetWidth(), size->GetHeight() );
547 device->
Flush( pls );
562 catch (
const char* message )
565 plabort(
"error in plD_tidy_wxwidgets." );
569 plabort(
"unknown error in plD_tidy_wxwidgets." );
int plParseDrvOpts(DrvOpt *acc_opt)
void SetColor(PLStream *pls)
void Flush(PLStream *pls)
PLDLLIMPEXP_DRIVER void plD_dispatch_init_wxwidgets(PLDispatchTable *pdt)
void Locate(PLStream *pls, PLGraphicsIn *graphicsIn)
void plOpenFile(PLStream *pls)
void(* plD_tidy_fp)(struct PLStream_struct *)
void SetWidth(PLStream *pls)
PLDLLIMPEXP_DRIVER void plD_dispatch_init_wxpng(PLDispatchTable *pdt)
void(* plD_init_fp)(struct PLStream_struct *)
void(* plD_eop_fp)(struct PLStream_struct *)
void(* plD_wait_fp)(struct PLStream_struct *)
void plabort(PLCHAR_VECTOR errormsg)
void FillPolygon(PLStream *pls)
void DrawLine(short x1a, short y1a, short x2a, short y2a)
void ClearBackground(PLStream *pls, PLINT x1=-1, PLINT y1=-1, PLINT x2=-1, PLINT y2=-1)
void plFamInit(PLStream *pls)
void DrawPolyline(short *xa, short *ya, PLINT npts)
void PreDestructorTidy(PLStream *pls)
void(* plD_line_fp)(struct PLStream_struct *, short, short, short, short)
void(* plD_esc_fp)(struct PLStream_struct *, PLINT, void *)
void(* plD_polyline_fp)(struct PLStream_struct *, short *, short *, PLINT)
void drawText(PLStream *pls, EscText *args)
#define PLDLLIMPEXP_DRIVER
static PLStream * pls[PL_NSTREAMS]
void FixAspectRatio(bool fix)
void EndPage(PLStream *pls)
void(* plD_bop_fp)(struct PLStream_struct *)
#define PLPLOT_wxLogDebug(string)
void SetSize(PLStream *pls, int width, int height)
void SetDC(PLStream *pls, wxDC *dc)
void BeginPage(PLStream *pls)
plD_polyline_fp pl_polyline
void(* plD_state_fp)(struct PLStream_struct *, PLINT)