From 8952924c64f66340d49c13bf3f35f5891a457060 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 21 Mar 2007 03:06:21 +0000 Subject: (svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N. --- src/newgrf_gui.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'src/newgrf_gui.cpp') diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index cf9a52508..b1d604954 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1,5 +1,7 @@ /* $Id$ */ +/** @file newgrf_gui.cpp */ + #include "stdafx.h" #include "openttd.h" #include "functions.h" @@ -157,7 +159,7 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) case WE_CLICK: switch (e->we.click.widget) { case 3: { - // Get row... + /* Get row... */ const GRFConfig *c; uint i = (e->we.click.pt.y - w->widget[3].top) / 10 + w->vscroll.pos; @@ -167,7 +169,7 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) break; } - case 6: /* Add selection to list */ + case 6: // Add selection to list if (WP(w, newgrf_add_d).sel != NULL) { const GRFConfig *src = WP(w, newgrf_add_d).sel; GRFConfig **list; @@ -196,7 +198,7 @@ static void NewGRFAddDlgWndProc(Window *w, WindowEvent *e) } break; - case 7: /* Rescan list */ + case 7: // Rescan list WP(w, newgrf_add_d).sel = NULL; ScanNewGRFFiles(); SetWindowDirty(w); @@ -376,7 +378,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) case WE_CLICK: switch (e->we.click.widget) { - case SNGRFS_ADD: { /* Add GRF */ + case SNGRFS_ADD: { // Add GRF GRFConfig **list = WP(w, newgrf_d).list; Window *w; @@ -388,7 +390,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) break; } - case SNGRFS_REMOVE: { /* Remove GRF */ + case SNGRFS_REMOVE: { // Remove GRF GRFConfig **pc, *c, *newsel; /* Choose the next GRF file to be the selected file */ @@ -412,7 +414,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) break; } - case SNGRFS_MOVE_UP: { /* Move GRF up */ + case SNGRFS_MOVE_UP: { // Move GRF up GRFConfig **pc, *c; if (WP(w, newgrf_d).sel == NULL) break; @@ -428,7 +430,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) break; } - case SNGRFS_MOVE_DOWN: { /* Move GRF down */ + case SNGRFS_MOVE_DOWN: { // Move GRF down GRFConfig **pc, *c; if (WP(w, newgrf_d).sel == NULL) break; @@ -444,7 +446,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) break; } - case SNGRFS_FILE_LIST: { /* Select a GRF */ + case SNGRFS_FILE_LIST: { // Select a GRF GRFConfig *c; uint i = (e->we.click.pt.y - w->widget[SNGRFS_FILE_LIST].top) / 14 + w->vscroll.pos; @@ -455,7 +457,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) break; } - case SNGRFS_APPLY_CHANGES: /* Apply changes made to GRF list */ + case SNGRFS_APPLY_CHANGES: // Apply changes made to GRF list if (WP(w, newgrf_d).execute) { ShowQuery( STR_POPUP_CAUTION_CAPTION, @@ -468,7 +470,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e) } break; - case SNGRFS_SET_PARAMETERS: { /* Edit parameters */ + case SNGRFS_SET_PARAMETERS: { // Edit parameters char buff[512]; if (WP(w, newgrf_d).sel == NULL) break; -- cgit v1.2.3-70-g09d2