Apply re-formatting to C++ in src/ tree.
[alexxy/gromacs.git] / src / programs / view / view.cpp
index 15395ab0903629eb4ce50398b60866db74ad6180..c307a4e2396b6333f9865a3253591f12c063ecdb 100644 (file)
@@ -129,8 +129,13 @@ static bool HandleClient(t_x11* x11, int ID, t_gmx* gmx)
         case IDIMPORT:
         case IDEXPORT: ShowDlg(gmx->dlgs[edExport]); break;
         case IDDOEXPORT:
-            write_sto_conf(gmx->confout, *gmx->man->top.name, &(gmx->man->top.atoms), gmx->man->x,
-                           nullptr, gmx->man->molw->pbcType, gmx->man->box);
+            write_sto_conf(gmx->confout,
+                           *gmx->man->top.name,
+                           &(gmx->man->top.atoms),
+                           gmx->man->x,
+                           nullptr,
+                           gmx->man->molw->pbcType,
+                           gmx->man->box);
             break;
         case IDQUIT: show_mb(gmx, emQuit); break;
         case IDTERM: done_gmx(x11, gmx); return true;
@@ -259,17 +264,18 @@ static void init_gmx(t_x11* x11, char* program, int nfile, t_filenm fnm[], gmx_o
     w0 = DisplayWidth(x11->disp, x11->screen) - 132;
     h0 = DisplayHeight(x11->disp, x11->screen) - 140;
     InitWin(gmx->wd, 0, 0, w0, h0, 3, gmx::bromacs().c_str());
-    gmx->wd->self = XCreateSimpleWindow(x11->disp, x11->root, gmx->wd->x, gmx->wd->y, gmx->wd->width,
-                                        gmx->wd->height, gmx->wd->bwidth, WHITE, BLACK);
-    pm = XCreatePixmapFromBitmapData(x11->disp, x11->root, (char*)gromacs_bits, gromacs_width,
-                                     gromacs_height, WHITE, BLACK, 1);
+    gmx->wd->self = XCreateSimpleWindow(
+            x11->disp, x11->root, gmx->wd->x, gmx->wd->y, gmx->wd->width, gmx->wd->height, gmx->wd->bwidth, WHITE, BLACK);
+    pm = XCreatePixmapFromBitmapData(
+            x11->disp, x11->root, (char*)gromacs_bits, gromacs_width, gromacs_height, WHITE, BLACK, 1);
     hints.flags      = PMinSize;
     hints.min_width  = 2 * EWIDTH + 40;
     hints.min_height = EHEIGHT + LDHEIGHT + LEGHEIGHT + 40;
     XSetStandardProperties(x11->disp, gmx->wd->self, gmx->wd->text, program, pm, nullptr, 0, &hints);
 
     x11->RegisterCallback(x11, gmx->wd->self, x11->root, MainCallBack, gmx);
-    x11->SetInputMask(x11, gmx->wd->self,
+    x11->SetInputMask(x11,
+                      gmx->wd->self,
                       ButtonPressMask | ButtonReleaseMask | OwnerGrabButtonMask | ExposureMask
                               | StructureNotifyMask);
 
@@ -285,8 +291,8 @@ static void init_gmx(t_x11* x11, char* program, int nfile, t_filenm fnm[], gmx_o
     map_man(x11, gmx->man);
 
     /* Pull Down menu */
-    gmx->pd = init_pd(x11, gmx->wd->self, gmx->wd->width, x11->fg, x11->bg, MSIZE, gmx_pd_size,
-                      gmx_pd, MenuTitle);
+    gmx->pd = init_pd(
+            x11, gmx->wd->self, gmx->wd->width, x11->fg, x11->bg, MSIZE, gmx_pd_size, gmx_pd, MenuTitle);
 
     /* Dialogs & Filters */
 
@@ -328,8 +334,8 @@ int gmx_view(int argc, char* argv[])
                        { efNDX, nullptr, nullptr, ffOPTRD } };
 #define NFILE asize(fnm)
 
-    if (parse_common_args(&argc, argv, PCA_CAN_TIME, NFILE, fnm, 0, nullptr, asize(desc), desc,
-                          asize(bugs), bugs, &oenv))
+    if (parse_common_args(
+                &argc, argv, PCA_CAN_TIME, NFILE, fnm, 0, nullptr, asize(desc), desc, asize(bugs), bugs, &oenv))
     {
 #if !GMX_X11
         std::fprintf(stderr, "Compiled without X-Windows - can not run viewer.\n");