-/*
-//
-// Qt Example Application: drawdemo
-//
-// Demonstrates the painter and the printer.
-//
-
-//#include <qwindow.h>
-*/
+
#include <QtGui/QPainter>
#include <QtGui/QPrinter>
#include <QtGui/QPushButton>
break;
case GRAPH_WRITEXY:
- TextXY(m.param.pword[3], m.param.pword[4],
- m.param.pstr);
+ TextXY(
+ m.param.pword[3],
+ m.param.pword[4],
+ m.param.pstr
+ );
break;
case GRAPH_READCHAR:
if (!GetInput(0))
WriteChar(m.param.pchar);
break;
case GRAPH_LINETO:
- Line(curx,cury, m.param.pword[3],
- m.param.pword[4]);
+ Line(
+ curx,cury,
+ m.param.pword[3],
+ m.param.pword[4]
+ );
break;
case GRAPH_ELLIPSE:
- Ellipse(m.param.pword[3], m.param.pword[4],
- m.param.pword[5], m.param.pword[6],
- m.param.pword[7], m.param.pword[8],
- m.param.pword[9]);
+ Ellipse(
+ m.param.pword[3],
+ m.param.pword[4],
+ m.param.pword[5],
+ m.param.pword[6],
+ m.param.pword[7],
+ m.param.pword[8],
+ m.param.pword[9]
+ );
break;
case GRAPH_RECT:
- Rect(m.param.pword[3], m.param.pword[4],
- m.param.pword[5], m.param.pword[6],
- m.param.pword[7], m.param.pword[8]);
+ Rect(
+ m.param.pword[3],
+ m.param.pword[4],
+ m.param.pword[5],
+ m.param.pword[6],
+ m.param.pword[7],
+ m.param.pword[8]
+ );
break;
case GRAPH_FOREGROUND:
SetForeground(m.param.pword[3]);
CurPos();
break;
case GRAPH_OUTSTRING:
- Outstring(m.param.pword[2], m.param.pword[3],
- m.param.pstr, m.param.pword[4],
- m.param.pword[5]);
+ Outstring(
+ m.param.pword[2],
+ m.param.pword[3],
+ m.param.pstr,
+ m.param.pword[4],
+ m.param.pword[5]
+ );
break;
case GRAPH_WRITEINTXY:
writeintxy(m.param.pword[2], m.param.pword[3],
b = bcol;
fcol = msg->param.pword[4];
bcol = msg->param.pword[5];
- TextXY(msg->param.pword[2], msg->param.pword[3], msg->param.pstr);
+ TextXY(
+ msg->param.pword[2],
+ msg->param.pword[3],
+ msg->param.pstr
+ );
fcol = f;
bcol = b;
break;
b = bcol;
fcol = msg->param.pword[5];
bcol = msg->param.pword[6];
- IntXY(msg->param.pword[2], msg->param.pword[3], msg->param.pword[4]);
+ IntXY(
+ msg->param.pword[2],
+ msg->param.pword[3],
+ msg->param.pword[4]
+ );
fcol = f;
bcol = b;
break;
case 310:
f = fcol;
fcol = msg->param.pword[6];
- Line(msg->param.pword[2], msg->param.pword[3],
- msg->param.pword[4], msg->param.pword[5]);
+ Line(
+ msg->param.pword[2], msg->param.pword[3],
+ msg->param.pword[4], msg->param.pword[5]
+ );
fcol = f;
break;
/* Rectangle(x1,y1,x2,y2,fcol,icol) */
case 311:
- Rect(msg->param.pword[2], msg->param.pword[3],
- msg->param.pword[4], msg->param.pword[5],
- msg->param.pword[7], 1);
+ Rect(
+ msg->param.pword[2], msg->param.pword[3],
+ msg->param.pword[4], msg->param.pword[5],
+ msg->param.pword[7],
+ 1
+ );
Rect(msg->param.pword[2], msg->param.pword[3],
msg->param.pword[4],msg->param.pword[5],
msg->param.pword[6], 0);
{
QApplication app(argc, argv);
VGR gs(argv[1]);
-// app.setMainWidget(&gs);
gs.show();
return app.exec();
}