Files
mars-nwe/include/nwnss/include/nwInProc.h
2026-06-16 15:31:38 +02:00

230 lines
6.3 KiB
C

/****************************************************************************
|
| (C) Copyright 1995 - 2000 Novell, Inc.
| All Rights Reserved.
|
| This program is free software; you can redistribute it and/or
| modify it under the terms of version 2 of the GNU General Public
| License as published by the Free Software Foundation.
|
| 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, contact Novell, Inc.
|
| To contact Novell about this file by physical or electronic mail,
| you may find current contact information at www.novell.com
|
|***************************************************************************
|
| ASCII Window Library file
|
|---------------------------------------------------------------------------
|
| $Author: vandana $
| $Date: 2005-08-10 01:03:51 +0530 (Wed, 10 Aug 2005) $
|
| $RCSfile$
| $Revision: 1177 $
|
|---------------------------------------------------------------------------
| This module is used to:
|
|
+-------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------
| WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
|
| This header file should ONLY be used for NSS internal development.
| This includes Semantic Agents (SA) and Loadable Storage Services (LSS).
| Any other use may cause conflicts which NSS will NOT fix.
+-------------------------------------------------------------------------*/
#ifndef _NWINPROC_H_
#define _NWINPROC_H_
#ifdef __cplusplus
extern "C" {
#endif
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
#define LONG unsigned int
#define WORD unsigned short
#define BYTE unsigned char
#undef NULL
#define NULL 0
#define BLACK 0
#define BLUE 1
#define GREEN 2
#define CYAN 3
#define RED 4
#define MAGENTA 5
#define BROWN 6
#define LIGHTGRAY 7
#define DARKGRAY 8
#define LIGHTBLUE 9
#define LIGHTGREEN 10
#define LIGHTCYAN 11
#define LIGHTRED 12
#define LIGHTMAGENTA 13
#define YELLOW 14
#define WHITE 15
#define BORDER 0
#define TITLE 1
#define ACCENT 2
#define BACK 3
#define ALL 4
#define BRIGHT 8
#define DIM 0
struct winmenu
{
BYTE *menuName;
BYTE **menuSelect;
void (**func)();
};
/*- standard NWWindow library prototyping -*/
extern LONG ActivateWinScreen(LONG handle);
extern LONG AddScrollElement(LONG wnd, BYTE *ElementString);
extern LONG AddScrollFunction(LONG wnd, WORD ElementID,
LONG IDParm, LONG (*Routine)());
extern LONG AssignHelpFile(LONG handle, BYTE *filename);
extern LONG CharToUpperCase(BYTE *chr);
extern LONG ClearErrorMessage(LONG handle);
extern LONG ClearFieldData(LONG window);
extern LONG ClearScrollDisplayArea(LONG wnd);
extern LONG ClearScrollList(LONG wnd);
extern LONG ClearWindow(LONG window);
extern LONG CloseAllWindows(LONG handle);
extern LONG CreateScrollList(LONG wnd, WORD StartLine, WORD EndLine);
extern LONG DeleteScrollList(LONG wnd);
extern LONG DeleteWindow(LONG window);
extern LONG DisplayAllFieldData(LONG window);
extern LONG DisplayColHeader(LONG window, BYTE *string);
extern LONG DisplayErrorMessage(LONG handle, BYTE *errorMessage);
extern void DisplayPrompt(LONG window, BYTE row, BYTE column, BYTE *string);
extern LONG DisplayScrollArea(LONG wnd);
extern LONG DisplayWindow(LONG window);
extern LONG GetChar(LONG handle, LONG *value);
extern LONG GetCharSem(LONG handle, LONG *value, LONG *semphore);
extern LONG GetFieldData(LONG handle, LONG window);
extern LONG GetNWWinScreen(LONG *Handle, BYTE *screenName);
extern LONG GetScrollIDParm(LONG wnd, WORD ElementID);
extern BYTE GetTextHeight(char **stringTable);
extern BYTE GetTextWidth(char **stringTable);
extern LONG HideWindow(LONG window);
extern void InitFieldList(LONG window);
extern LONG LoadHelpFile(LONG FileHandle, LONG (*ReadRoutine)(),
LONG HelpDataOffset, LONG HelpDataSize,
BYTE *FileName, BYTE NoOfHelpPages,
WORD StartHelpKey, WORD ExitHelpKey);
extern LONG MakeField(LONG window, LONG *field, BYTE row, BYTE column,
BYTE *mask, BYTE *fieldBuffer, BYTE type);
extern LONG MoveWindowRelative(LONG handle, LONG window,
BYTE rowdirection, BYTE columndirection);
extern LONG NWMakeMenuAndSelect(LONG handle, LONG menu, BYTE *name,
BYTE row, BYTE column, BYTE width);
extern LONG NWMakeWindow(LONG handle, LONG *window, BYTE row,
BYTE column, BYTE height, BYTE width);
extern LONG PutCursor(LONG handle, WORD Row, WORD column);
extern LONG PutNWWinScreen(LONG handle);
extern LONG PutWinCursor(LONG window, BYTE row, BYTE column);
extern LONG PutWindowInFront(LONG handle, LONG window);
extern LONG PutWindowInRear(LONG handle, LONG window);
extern LONG ReturnScrollElement(LONG wnd, BYTE *ReturnedString,
WORD ElementID, WORD *select);
extern LONG SelectWinMenuElement(LONG window, LONG *attrchr, LONG select,
WORD *keys, WORD retUpDown);
extern LONG SetBorder(LONG window, BYTE bordertype);
extern LONG SetCharDisplayToAccent(LONG window);
extern LONG SetCharDisplayToNormal(LONG window);
extern LONG SetColors(LONG window, BYTE area, BYTE backgroundColor,
BYTE foregroundColor, BYTE intensity);
extern LONG SetFieldHelpWindow(LONG field, BYTE *helppage, BYTE row, BYTE column);
extern LONG SetHelpPage(LONG window, BYTE *helpindex, BYTE row, BYTE column);
extern LONG SetIntensity(LONG window, BYTE area, BYTE intensity);
extern LONG SetSeparatorLine(LONG window, BYTE drawline);
extern LONG SetTitle(LONG window, BYTE *title);
extern LONG ScrollElement(LONG wnd, BYTE dir);
extern LONG UnAssignHelpFile(LONG handle);
extern LONG UnLoadHelp(BYTE *filename);
extern LONG WinChrDisplay(LONG window, BYTE row, BYTE column, BYTE chr, BYTE attr);
extern LONG WinPrintf(LONG window, BYTE *string);
#ifdef __cplusplus
}
#endif
#endif
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/