| 1 | // |
|---|
| 2 | // TxWin, Textmode Windowing Library |
|---|
| 3 | // |
|---|
| 4 | // Original code Copyright (c) 1995-2005 Fsys Software and Jan van Wijk |
|---|
| 5 | // |
|---|
| 6 | // ========================================================================== |
|---|
| 7 | // |
|---|
| 8 | // This file contains Original Code and/or Modifications of Original Code as |
|---|
| 9 | // defined in and that are subject to the GNU Lesser General Public License. |
|---|
| 10 | // You may not use this file except in compliance with the License. |
|---|
| 11 | // BY USING THIS FILE YOU AGREE TO ALL TERMS AND CONDITIONS OF THE LICENSE. |
|---|
| 12 | // A copy of the License is provided with the Original Code and Modifications, |
|---|
| 13 | // and is also available at http://www.dfsee.com/txwin/lgpl.htm |
|---|
| 14 | // |
|---|
| 15 | // This library is free software; you can redistribute it and/or modify |
|---|
| 16 | // it under the terms of the GNU Lesser General Public License as published |
|---|
| 17 | // by the Free Software Foundation; either version 2.1 of the License, |
|---|
| 18 | // or (at your option) any later version. |
|---|
| 19 | // |
|---|
| 20 | // This library is distributed in the hope that it will be useful, |
|---|
| 21 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 22 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
|---|
| 23 | // See the GNU Lesser General Public License for more details. |
|---|
| 24 | // |
|---|
| 25 | // You should have received a copy of the GNU Lesser General Public License |
|---|
| 26 | // along with this library; (lgpl.htm) if not, write to the Free Software |
|---|
| 27 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 28 | // |
|---|
| 29 | // Questions on TxWin licensing can be directed to: txwin@fsys.nl |
|---|
| 30 | // |
|---|
| 31 | // ========================================================================== |
|---|
| 32 | // |
|---|
| 33 | // TXTest windowed user interface |
|---|
| 34 | // |
|---|
| 35 | // Author: J. van Wijk |
|---|
| 36 | // |
|---|
| 37 | // 1.00 08-07-2003 Initial version |
|---|
| 38 | // |
|---|
| 39 | #ifndef TXTWIN |
|---|
| 40 | #define TXTWIN |
|---|
| 41 | |
|---|
| 42 | #define TXTH_GENERIC 0 |
|---|
| 43 | #define TXTH_CONFIRM 5000 |
|---|
| 44 | |
|---|
| 45 | //- enable or mark menu-items by ID |
|---|
| 46 | #define txtMiEnable(i,c) txwMiEnable(&mainmenu,(i),(c)) |
|---|
| 47 | #define txtMiMarked(i,c) txwMiMarked(&mainmenu,(i),(c)) |
|---|
| 48 | |
|---|
| 49 | //- menu (equal to help) and accelerator codes |
|---|
| 50 | #define TXTH_MENUS 3000 // menu help base |
|---|
| 51 | #define TXTM_BAR 3010 |
|---|
| 52 | #define TXTM_DEFAULT 3030 |
|---|
| 53 | #define TXTM_AUTOMENU 3040 |
|---|
| 54 | |
|---|
| 55 | #define TXTM_FILE 3100 |
|---|
| 56 | #define TXTC_OPEN 3110 |
|---|
| 57 | #define TXTC_SAVE 3120 |
|---|
| 58 | #define TXTC_RUNS 3130 |
|---|
| 59 | #define TXTC_EXIT 3140 |
|---|
| 60 | |
|---|
| 61 | #define TXTM_TEST 3200 |
|---|
| 62 | #define TXTC_DIALOG 3210 |
|---|
| 63 | #define TXTC_MSGBOX 3220 |
|---|
| 64 | #define TXTC_PROMPT 3230 |
|---|
| 65 | #define TXTC_LIST 3240 |
|---|
| 66 | #define TXTC_DISABL 3250 |
|---|
| 67 | #define TXTC_WIDGET 3260 |
|---|
| 68 | #define TXTC_PRWIDG 3261 |
|---|
| 69 | #define TXTC_SUBMEN 3280 |
|---|
| 70 | |
|---|
| 71 | #define TXTM_SHOW 3300 |
|---|
| 72 | #define TXTC_VOLUMES 3310 |
|---|
| 73 | #define TXTC_DISPLAY 3320 |
|---|
| 74 | #define TXTC_DIRALL 3330 |
|---|
| 75 | #define TXTC_DIRFILE 3340 |
|---|
| 76 | #define TXTC_DIRSUBS 3350 |
|---|
| 77 | #define TXTC_DIRTREE 3360 |
|---|
| 78 | #define TXTC_CHRSET 3390 |
|---|
| 79 | #define TXTC_BOXES 3392 |
|---|
| 80 | #define TXTC_COLORR 3394 |
|---|
| 81 | #define TXTC_COLORS 3396 |
|---|
| 82 | |
|---|
| 83 | #define TXTM_SETT 3400 |
|---|
| 84 | #define TXTC_SCHEME 3405 |
|---|
| 85 | #define TXTC_INVSCR 3410 |
|---|
| 86 | #define TXTC_BRTSCR 3420 |
|---|
| 87 | #define TXTC_B2BSCR 3430 |
|---|
| 88 | #define TXTC_ASCII7 3440 |
|---|
| 89 | #define TXTC_COLTXT 3450 |
|---|
| 90 | #define TXTC_AUTOMB 3460 |
|---|
| 91 | #define TXTC_AUTODR 3470 |
|---|
| 92 | |
|---|
| 93 | #define TXTM_HELP 3900 |
|---|
| 94 | #define TXTC_CMDHELP 3910 |
|---|
| 95 | #define TXTC_SW_HELP 3920 |
|---|
| 96 | #define TXTC_UIHELP 3930 |
|---|
| 97 | #define TXTC_ABOUT 3940 |
|---|
| 98 | |
|---|
| 99 | //- allow enough space here for all color schemes! |
|---|
| 100 | #define TXTB_SCHEME 4480 |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | |
|---|
| 104 | // Start and maintain TXTest interactive text-based windowed user-interface |
|---|
| 105 | ULONG txtWindowed |
|---|
| 106 | ( |
|---|
| 107 | char *initial // IN initial TXTest cmd |
|---|
| 108 | ); |
|---|
| 109 | |
|---|
| 110 | // Check if dialog is wanted and possible, message otherwise |
|---|
| 111 | BOOL txtDialogAppropriate |
|---|
| 112 | ( |
|---|
| 113 | void |
|---|
| 114 | ); |
|---|
| 115 | |
|---|
| 116 | |
|---|
| 117 | // Setup test dialog |
|---|
| 118 | ULONG txtTestDialog // RET result |
|---|
| 119 | ( |
|---|
| 120 | void |
|---|
| 121 | ); |
|---|
| 122 | |
|---|
| 123 | // Simple test dialog with a selection-list (LISTBOX) client control |
|---|
| 124 | ULONG txtListBoxDialog // RET result |
|---|
| 125 | ( |
|---|
| 126 | void |
|---|
| 127 | ); |
|---|
| 128 | |
|---|
| 129 | |
|---|
| 130 | #endif |
|---|