Code formatting
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Thu, 28 Jan 2016 23:12:13 +0000 (00:12 +0100)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Thu, 28 Jan 2016 23:12:13 +0000 (00:12 +0100)
src/graph/loggraph.cpp

index 752828490a8dd60600c9d321e0058e8a35b40bdb..4a12ad40c270c6cb79b14e64806b37dc3310a3cc 100644 (file)
@@ -1,12 +1,4 @@
-/*
-//
-// Qt Example Application: drawdemo
-//
-// Demonstrates the painter and the printer.
-//
-
-//#include <qwindow.h>
-*/
+
 #include <QtGui/QPainter>
 #include <QtGui/QPrinter>
 #include <QtGui/QPushButton>
@@ -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();
 }