-/*
-** 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 (
/*
-** tuiDelwin()
-** Function to delete the curses window, checking for null
-*/
+ ** tuiDelwin()
+ ** Function to delete the curses window, checking for null
+ */
void
#ifdef __STDC__
tuiDelwin (
/*
-** boxWin().
-*/
+ ** boxWin().
+ */
void
#ifdef __STDC__
boxWin (
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); */
}
}
/*
-** unhighlightWin().
-*/
+ ** unhighlightWin().
+ */
void
#ifdef __STDC__
unhighlightWin (
/*
-** highlightWin().
-*/
+ ** highlightWin().
+ */
void
#ifdef __STDC__
highlightWin (
/*
-** checkAndDisplayHighlightIfNecessay
-*/
+ ** checkAndDisplayHighlightIfNecessay
+ */
void
#ifdef __STDC__
checkAndDisplayHighlightIfNeeded (
/*
-** makeWindow().
-*/
+ ** makeWindow().
+ */
void
#ifdef __STDC__
makeWindow (
mvwaddstr (handle, 1, 1, winName (winInfo));
tuiRefreshWin (winInfo);
}
-#endif /*FOR_TEST*/
+#endif /*FOR_TEST */
}
return;
/*
-** tuiClearWin().
-** Clear the window of all contents without calling wclear.
-*/
+ ** tuiClearWin().
+ ** Clear the window of all contents without calling wclear.
+ */
void
#ifdef __STDC__
tuiClearWin (
/*
-** 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 (
/*
-** 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 (
/*
-** scrollWinForward
-*/
+ ** scrollWinForward
+ */
void
#ifdef __STDC__
scrollWinForward (
/*
-** scrollWinBackward
-*/
+ ** scrollWinBackward
+ */
void
#ifdef __STDC__
scrollWinBackward (
/*
-** refreshAll().
-** Function to refresh all the windows currently displayed
-*/
+ ** refreshAll().
+ ** Function to refresh all the windows currently displayed
+ */
void
#ifdef __STDC__
refreshAll (