46 #ifndef __CTK_ARCH_DEF_H__
47 #define __CTK_ARCH_DEF_H__
50 #if defined(ARCH_PC6001) || defined(ARCH_PC6001MK2)
51 #define CH_VERTLINE 0x16
52 #define CH_HOLILINE 0x17
53 #define CH_ULCORNER 0x18
54 #define CH_URCORNER 0x19
55 #define CH_LLCORNER 0x1a
56 #define CH_LRCORNER 0x1b
57 #elif defined(ARCH_PC6001A)
58 #define CH_VERTLINE '|'
59 #define CH_HOLILINE '-'
60 #define CH_ULCORNER '/'
61 #define CH_URCORNER '\\'
62 #define CH_LLCORNER '\\'
63 #define CH_LRCORNER '/'
70 #if defined(ARCH_PC6001MK2)
71 #define VRAM_ATTR 0x4000
72 #define VRAM_CHAR 0x4400
73 #define SCREEN_WIDTH 40
74 #define SCREEN_HEIGHT 20
75 #define COLOR_NORMAL 0x0f
76 #define COLOR_REVERSED 0x70
77 #elif (defined(ARCH_PC6001) || defined(ARCH_PC6001A)) && defined(MEMORY_16K)
78 #define VRAM_ATTR 0xc000
79 #define VRAM_CHAR 0xc200
80 #define SCREEN_WIDTH 32
81 #define SCREEN_HEIGHT 16
82 #define COLOR_NORMAL 0x20
83 #define COLOR_REVERSED 0x21
84 #elif (defined(ARCH_PC6001) || defined(ARCH_PC6001A)) && (defined(MEMORY_32K) || defined(MEMORY_ROM))
85 #define VRAM_ATTR 0x8000
86 #define VRAM_CHAR 0x8200
87 #define SCREEN_WIDTH 32
88 #define SCREEN_HEIGHT 16
89 #define COLOR_NORMAL 0x20
90 #define COLOR_REVERSED 0x21
92 #error Specify appropriate ARCH & MEMORY combination
96 #define CH_F1 -16//0xf0
97 #define CH_F2 -15//0xf1
98 #define CH_F3 -14//0xf2
99 #define CH_F4 -13//0xf3
100 #define CH_F5 -12//0xf4
103 #define CH_CURS_UP 0x1e
104 #define CH_CURS_DOWN 0x1f
105 #define CH_CURS_LEFT 0x1d
106 #define CH_CURS_RIGHT 0x1c
107 #define CH_ENTER 0x0d
114 #if defined(CTK_CLIENT) || defined(CTK_SERVER)
116 #define CTK_CONF_ICONS 0
117 #define CTK_CONF_ICON_TEXTMAPS 0
118 #define CTK_CONF_WINDOWS 1
119 #define CTK_CONF_WINDOWCLOSE 0
120 #define CTK_CONF_WINDOWMOVE 0
121 #define CTK_CONF_MENUS 0
122 #define CTK_CONF_HYPERLINK 0
123 #elif defined(CTK_NOICON)
125 #define CTK_CONF_ICONS 0
126 #define CTK_CONF_ICON_TEXTMAPS 0
127 #define CTK_CONF_WINDOWS 1
128 #define CTK_CONF_WINDOWCLOSE 1
129 #define CTK_CONF_WINDOWMOVE 1
130 #define CTK_CONF_MENUS 1
131 #define CTK_CONF_HYPERLINK 1
134 #define CTK_CONF_ICONS 1
136 #define CTK_CONF_ICON_TEXTMAPS 1
138 #define CTK_CONF_WINDOWS 1
140 #define CTK_CONF_WINDOWCLOSE 1
142 #define CTK_CONF_WINDOWMOVE 1
144 #define CTK_CONF_MENUS 1
146 #define CTK_CONF_HYPERLINK 1
150 #define CTK_CONF_ICON_BITMAPS 0
152 #define CTK_CONF_MENUWIDTH 16
154 #define CTK_CONF_SCREENSAVER 0
156 #define CTK_CONF_MOUSE_SUPPORT 0
159 #define CTK_CONF_MAXMENUITEMS 4
162 #define CTK_CONF_WINDOWSWITCH_KEY CH_F3
164 #define CTK_CONF_WIDGETDOWN_KEY CH_TAB
166 #define CTK_CONF_WIDGETUP_KEY CH_F5
168 #define CTK_CONF_MENU_KEY CH_F1
170 #ifdef LIBCONIO_CONF_EXPORT
171 #define LIBCONIO_EXPORT LIBCONIO_CONF_EXPORT
173 #define LIBCONIO_EXPORT 0
178 #define _CTK_FOCUS_NONE 0
179 #define _CTK_FOCUS_WIDGET 1
180 #define _CTK_FOCUS_WINDOW 2
181 #define _CTK_FOCUS_DIALOG 4
183 #define _CTK_WIDGET_SEPARATOR 1
184 #define _CTK_WIDGET_LABEL 2
185 #define _CTK_WIDGET_BUTTON 3
186 #define _CTK_WIDGET_HYPERLINK 4
187 #define _CTK_WIDGET_TEXTENTRY 5
188 #define _CTK_WIDGET_BITMAP 6
189 #define _CTK_WIDGET_ICON 7
191 #define _CTK_TEXTENTRY_NORMAL 0
192 #define _CTK_TEXTENTRY_EDIT 1