From f99769c81f35a6b2df5f1d687991163f33814a6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Fri, 29 Jan 2016 00:12:13 +0100 Subject: [PATCH] Code formatting --- src/graph/loggraph.cpp | 86 +++++++++++++++++++++++++++--------------- 1 file changed, 55 insertions(+), 31 deletions(-) diff --git a/src/graph/loggraph.cpp b/src/graph/loggraph.cpp index 7528284..4a12ad4 100644 --- a/src/graph/loggraph.cpp +++ b/src/graph/loggraph.cpp @@ -1,12 +1,4 @@ -/* -// -// Qt Example Application: drawdemo -// -// Demonstrates the painter and the printer. -// - -//#include -*/ + #include #include #include @@ -1052,8 +1044,11 @@ void VGR::RequestMessage() 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)) @@ -1079,19 +1074,32 @@ void VGR::RequestMessage() 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]); @@ -1114,9 +1122,13 @@ void VGR::RequestMessage() 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], @@ -1197,7 +1209,11 @@ void VGR::MagicGraph(G_MESSAGE *msg) 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; @@ -1207,7 +1223,11 @@ void VGR::MagicGraph(G_MESSAGE *msg) 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; @@ -1285,15 +1305,20 @@ void VGR::MagicGraph(G_MESSAGE *msg) 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); @@ -1312,7 +1337,6 @@ int main(int argc, char **argv) { QApplication app(argc, argv); VGR gs(argv[1]); -// app.setMainWidget(&gs); gs.show(); return app.exec(); } -- 2.30.2