* tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
[deliverable/binutils-gdb.git] / gdb / tui / tuiGeneralWin.c
index 5af0cd7a92e8277887e1b08a34b27a7d46b8ff35..ca9c14d779a2ff6a8e8f488530e765be59040035 100644 (file)
@@ -1,9 +1,24 @@
-/*
-** TuiGeneralWin.c
-** This module supports general window behavior
-*/
+/* General window behavior.
+   Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Contributed by Hewlett-Packard Company.
+
+   This file is part of GDB.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
 
-#include <curses.h>
 #include "defs.h"
 #include "tui.h"
 #include "tuiData.h"
 
 
 /*
-** local support functions
-*/
-static void _winResize PARAMS ((void));
+   ** local support functions
+ */
+static void _winResize (void);
 
 
 /***********************
 ** PUBLIC FUNCTIONS
 ***********************/
 /*
-** tuiRefreshWin()
-**        Refresh the window
-*/
+   ** tuiRefreshWin()
+   **        Refresh the window
+ */
 void
 #ifdef __STDC__
 tuiRefreshWin (
@@ -62,9 +77,9 @@ tuiRefreshWin (winInfo)
 
 
 /*
-** tuiDelwin()
-**        Function to delete the curses window, checking for null
-*/
+   ** tuiDelwin()
+   **        Function to delete the curses window, checking for null
+ */
 void
 #ifdef __STDC__
 tuiDelwin (
@@ -82,8 +97,8 @@ tuiDelwin (window)
 
 
 /*
-** boxWin().
-*/
+   ** boxWin().
+ */
 void
 #ifdef __STDC__
 boxWin (
@@ -101,9 +116,9 @@ boxWin (winInfo, highlightFlag)
        box (winInfo->handle, '|', '-');
       else
        {
-/*            wattron(winInfo->handle, A_DIM);*/
+/*            wattron(winInfo->handle, A_DIM); */
          box (winInfo->handle, ':', '.');
-/*            wattroff(winInfo->handle, A_DIM);*/
+/*            wattroff(winInfo->handle, A_DIM); */
        }
     }
 
@@ -112,8 +127,8 @@ boxWin (winInfo, highlightFlag)
 
 
 /*
-** unhighlightWin().
-*/
+   ** unhighlightWin().
+ */
 void
 #ifdef __STDC__
 unhighlightWin (
@@ -133,8 +148,8 @@ unhighlightWin (winInfo)
 
 
 /*
-** highlightWin().
-*/
+   ** highlightWin().
+ */
 void
 #ifdef __STDC__
 highlightWin (
@@ -155,8 +170,8 @@ highlightWin (winInfo)
 
 
 /*
-** checkAndDisplayHighlightIfNecessay
-*/
+   ** checkAndDisplayHighlightIfNecessay
+ */
 void
 #ifdef __STDC__
 checkAndDisplayHighlightIfNeeded (
@@ -179,8 +194,8 @@ checkAndDisplayHighlightIfNeeded (winInfo)
 
 
 /*
-** makeWindow().
-*/
+   ** makeWindow().
+ */
 void
 #ifdef __STDC__
 makeWindow (
@@ -215,7 +230,7 @@ makeWindow (winInfo, boxIt)
          mvwaddstr (handle, 1, 1, winName (winInfo));
          tuiRefreshWin (winInfo);
        }
-#endif /*FOR_TEST*/
+#endif /*FOR_TEST */
     }
 
   return;
@@ -223,9 +238,9 @@ makeWindow (winInfo, boxIt)
 
 
 /*
-** tuiClearWin().
-**        Clear the window of all contents without calling wclear.
-*/
+   ** tuiClearWin().
+   **        Clear the window of all contents without calling wclear.
+ */
 void
 #ifdef __STDC__
 tuiClearWin (
@@ -251,11 +266,11 @@ tuiClearWin (winInfo)
 
 
 /*
-** makeVisible().
-**        We can't really make windows visible, or invisible.  So we
-**        have to delete the entire window when making it visible,
-**        and create it again when making it visible.
-*/
+   ** makeVisible().
+   **        We can't really make windows visible, or invisible.  So we
+   **        have to delete the entire window when making it visible,
+   **        and create it again when making it visible.
+ */
 void
 #ifdef __STDC__
 makeVisible (
@@ -296,9 +311,9 @@ makeVisible (winInfo, visible)
 
 
 /*
-** makeAllVisible().
-**        Makes all windows invisible (except the command and locator windows)
-*/
+   ** makeAllVisible().
+   **        Makes all windows invisible (except the command and locator windows)
+ */
 void
 #ifdef __STDC__
 makeAllVisible (
@@ -327,8 +342,8 @@ makeAllVisible (visible)
 
 
 /*
-** scrollWinForward
-*/
+   ** scrollWinForward
+ */
 void
 #ifdef __STDC__
 scrollWinForward (
@@ -377,8 +392,8 @@ scrollWinForward (winInfo, numLines)
 
 
 /*
-** scrollWinBackward
-*/
+   ** scrollWinBackward
+ */
 void
 #ifdef __STDC__
 scrollWinBackward (
@@ -426,9 +441,9 @@ scrollWinBackward (winInfo, numLines)
 
 
 /*
-** refreshAll().
-**        Function to refresh all the windows currently displayed
-*/
+   ** refreshAll().
+   **        Function to refresh all the windows currently displayed
+ */
 void
 #ifdef __STDC__
 refreshAll (
This page took 0.026969 seconds and 4 git commands to generate.