ctk_arch-def.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #ifndef __CTK_ARCH_DEF_H__
00047 #define __CTK_ARCH_DEF_H__
00048
00049
00050 #if defined(ARCH_PC6001) || defined(ARCH_PC6001MK2)
00051 #define CH_VERTLINE 0x16
00052 #define CH_HOLILINE 0x17
00053 #define CH_ULCORNER 0x18
00054 #define CH_URCORNER 0x19
00055 #define CH_LLCORNER 0x1a
00056 #define CH_LRCORNER 0x1b
00057 #elif defined(ARCH_PC6001A)
00058 #define CH_VERTLINE '|'
00059 #define CH_HOLILINE '-'
00060 #define CH_ULCORNER '/'
00061 #define CH_URCORNER '\\'
00062 #define CH_LLCORNER '\\'
00063 #define CH_LRCORNER '/'
00064 #else
00065 #error invalid ARCH
00066 #endif
00067 #define CH_SPACE 0x20
00068
00069
00070 #if defined(ARCH_PC6001MK2)
00071 #define VRAM_ATTR 0x4000
00072 #define VRAM_CHAR 0x4400
00073 #define SCREEN_WIDTH 40
00074 #define SCREEN_HEIGHT 20
00075 #define COLOR_NORMAL 0x0f
00076 #define COLOR_REVERSED 0x70
00077 #elif (defined(ARCH_PC6001) || defined(ARCH_PC6001A)) && defined(MEMORY_16K)
00078 #define VRAM_ATTR 0xc000
00079 #define VRAM_CHAR 0xc200
00080 #define SCREEN_WIDTH 32
00081 #define SCREEN_HEIGHT 16
00082 #define COLOR_NORMAL 0x20
00083 #define COLOR_REVERSED 0x21
00084 #elif (defined(ARCH_PC6001) || defined(ARCH_PC6001A)) && (defined(MEMORY_32K) || defined(MEMORY_ROM))
00085 #define VRAM_ATTR 0x8000
00086 #define VRAM_CHAR 0x8200
00087 #define SCREEN_WIDTH 32
00088 #define SCREEN_HEIGHT 16
00089 #define COLOR_NORMAL 0x20
00090 #define COLOR_REVERSED 0x21
00091 #else
00092 #error Specify appropriate ARCH & MEMORY combination
00093 #endif
00094
00095
00096 #define CH_F1 -16//0xf0
00097 #define CH_F2 -15//0xf1
00098 #define CH_F3 -14//0xf2
00099 #define CH_F4 -13//0xf3
00100 #define CH_F5 -12//0xf4
00101 #define CH_TAB 0x09
00102
00103 #define CH_CURS_UP 0x1e
00104 #define CH_CURS_DOWN 0x1f
00105 #define CH_CURS_LEFT 0x1d
00106 #define CH_CURS_RIGHT 0x1c
00107 #define CH_ENTER 0x0d
00108 #define CH_ESC 0x1b
00109 #define CH_STOP 0x03
00110 #define CH_DEL 0x08
00111
00112
00113
00114 #if defined(CTK_CLIENT) || defined(CTK_SERVER)
00115
00116 #define CTK_CONF_ICONS 0
00117 #define CTK_CONF_ICON_TEXTMAPS 0
00118 #define CTK_CONF_WINDOWS 1
00119 #define CTK_CONF_WINDOWCLOSE 0
00120 #define CTK_CONF_WINDOWMOVE 0
00121 #define CTK_CONF_MENUS 0
00122 #define CTK_CONF_HYPERLINK 0
00123 #elif defined(CTK_NOICON)
00124
00125 #define CTK_CONF_ICONS 0
00126 #define CTK_CONF_ICON_TEXTMAPS 0
00127 #define CTK_CONF_WINDOWS 1
00128 #define CTK_CONF_WINDOWCLOSE 1
00129 #define CTK_CONF_WINDOWMOVE 1
00130 #define CTK_CONF_MENUS 1
00131 #define CTK_CONF_HYPERLINK 1
00132 #else
00133
00134 #define CTK_CONF_ICONS 1
00135
00136 #define CTK_CONF_ICON_TEXTMAPS 1
00137
00138 #define CTK_CONF_WINDOWS 1
00139
00140 #define CTK_CONF_WINDOWCLOSE 1
00141
00142 #define CTK_CONF_WINDOWMOVE 1
00143
00144 #define CTK_CONF_MENUS 1
00145
00146 #define CTK_CONF_HYPERLINK 1
00147 #endif
00148
00149
00150 #define CTK_CONF_ICON_BITMAPS 0
00151
00152 #define CTK_CONF_MENUWIDTH 16
00153
00154 #define CTK_CONF_SCREENSAVER 0
00155
00156 #define CTK_CONF_MOUSE_SUPPORT 0
00157
00158
00159 #define CTK_CONF_MAXMENUITEMS 4
00160
00161
00162 #define CTK_CONF_WINDOWSWITCH_KEY CH_F3
00163
00164 #define CTK_CONF_WIDGETDOWN_KEY CH_TAB
00165
00166 #define CTK_CONF_WIDGETUP_KEY CH_F5
00167
00168 #define CTK_CONF_MENU_KEY CH_F1
00169
00170 #ifdef LIBCONIO_CONF_EXPORT
00171 #define LIBCONIO_EXPORT LIBCONIO_CONF_EXPORT
00172 #else
00173 #define LIBCONIO_EXPORT 0
00174 #endif
00175
00176
00177
00178 #define _CTK_FOCUS_NONE 0
00179 #define _CTK_FOCUS_WIDGET 1
00180 #define _CTK_FOCUS_WINDOW 2
00181 #define _CTK_FOCUS_DIALOG 4
00182
00183 #define _CTK_WIDGET_SEPARATOR 1
00184 #define _CTK_WIDGET_LABEL 2
00185 #define _CTK_WIDGET_BUTTON 3
00186 #define _CTK_WIDGET_HYPERLINK 4
00187 #define _CTK_WIDGET_TEXTENTRY 5
00188 #define _CTK_WIDGET_BITMAP 6
00189 #define _CTK_WIDGET_ICON 7
00190
00191 #define _CTK_TEXTENTRY_NORMAL 0
00192 #define _CTK_TEXTENTRY_EDIT 1
00193
00194 #endif