OSDN Git Service

最初のコミット
[winaudioj/stedx.git] / sted_screen.cpp
1 /*
2   sted_screen.cpp
3   base class of screen driver
4
5   Made by Studio Breeze. 2002
6
7   Permission is hereby granted, free of charge, to any person obtaining a copy
8   of this software and associated documentation files (the "Software"), to deal
9   in the Software without restriction, including without limitation the rights
10   to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11   copies of the Software, and to permit persons to whom the Software is
12   furnished to do so, subject to the following conditions:
13
14   The above copyright notice and this permission notice shall be included in
15   all copies or substantial portions of the Software.
16
17   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
20   AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22   OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23   THE SOFTWARE.
24  */
25 #include "stdafx.h"
26
27 #include <stdio.h>
28 #include "sted_screen.h"
29
30 CSTedScreenBase::CSTedScreenBase()
31 {
32   fConstructed = false;
33 }
34
35 void
36 CSTedScreenBase::Construct(void)
37 {
38   fConstructed = true;
39 }
40
41 //CSTedScreenBase*
42 //CSTedScreenBase::New(void)
43 //{
44 //  CSTedScreenBase* self;
45 //  self = new CSTedScreenBase;
46 //  if (!self) return NULL;
47 //
48 //  self->Construct();
49 //  if (!self->fConstructed) {
50 //    delete self;
51 //    return NULL;
52 //  }
53 //  return self;
54 //}
55
56 CSTedScreenBase::~CSTedScreenBase()
57 {
58 }
59
60 void
61 CSTedScreenBase::Tidy(void)
62 {
63   fConstructed = false;
64 }
65
66 // window
67 void
68 CSTedScreenBase::InitWindow(void)
69 {
70 }
71
72 void
73 CSTedScreenBase::CloseWindow(void)
74 {
75 }
76
77 void
78 CSTedScreenBase::RepaintWindow(void)
79 {
80 }
81
82 // color
83 int
84 CSTedScreenBase::SetGraphicsPalette(int in_pal, int in_color)
85 {
86   return 0;
87 }
88
89 int
90 CSTedScreenBase::SetTextPalette(int in_pal, int in_color)
91 {
92   return 0;
93 }
94
95 int
96 CSTedScreenBase::SetGraphicsColor(int in_color)
97 {
98   return 0;
99 }
100
101 int
102 CSTedScreenBase::SetTextColor(int in_color)
103 {
104   return 0;
105 }
106   
107
108 // cursor
109 void 
110 CSTedScreenBase::SetCursor(int in_onoff)
111 {
112 }
113
114 // text
115 void
116 CSTedScreenBase::SetTextWindow(int in_y, int in_h)
117 {
118 }
119
120 void
121 CSTedScreenBase::Locate(int in_x, int in_y)
122 {
123 }
124
125 void
126 CSTedScreenBase::Puts(const char* in_str)
127 {
128 }
129
130 void
131 CSTedScreenBase::ClsEol(void)
132 {
133 }
134
135 void
136 CSTedScreenBase::ClsEd(void)
137 {
138 }
139
140 void
141 CSTedScreenBase::GraphicsPuts(int in_x, int in_y, const char* in_str)
142 {
143 }
144
145 // graphics
146
147 void
148 CSTedScreenBase::TextXBox(int in_x0, int in_y0, int in_x1, int in_y1, int in_page)
149 {
150 }
151
152 void 
153 CSTedScreenBase::TextXXLine(int in_page, int in_x0, int in_y, int in_x1, int in_linestyle)
154 {
155 }
156
157 void
158 CSTedScreenBase::TextXYLine(int in_page, int in_x, int in_y0, int in_y1, int in_linestyle)
159 {
160 }
161
162 void
163 CSTedScreenBase::TextReverse(int in_x, int in_y, int in_width, int in_page)
164 {
165 }
166
167 void
168 CSTedScreenBase::TextFill(int in_page, int in_x, int in_y, int in_w, int in_h, int in_linestyle)
169 {
170 }
171
172 void
173 CSTedScreenBase::TextRasterCopy(int in_dst, int in_src, int in_line, int in_mode)
174 {
175 }
176
177 void
178 CSTedScreenBase::TextScroll(int in_x0, int in_y0, int in_xs, int in_ys, int in_x1, int in_y1)
179 {
180 }
181
182 void 
183 CSTedScreenBase::GraphicsBox(int in_x0, int in_y0, int in_x1, int in_y1, unsigned int in_color, unsigned int in_linestyle)
184 {
185 }
186
187 int
188 CSTedScreenBase::GraphicsPoint(int in_x, int in_y)
189 {
190   return 0;
191 }
192
193 void 
194 CSTedScreenBase::GraphicsLine(int in_x0, int in_y0, int in_x1, int in_y1, int in_color, int in_linestyle)
195 {
196 }
197
198 void
199 CSTedScreenBase::GraphicsFill(int in_x0, int in_y0, int in_x1, int in_y1, int in_color)
200 {
201 }
202
203 void
204 CSTedScreenBase::TextReverseArea(int in_top, int in_lines, int in_area)
205 {
206 }
207
208 void
209 CSTedScreenBase::CopyTextToGraphics(int in_editscreen)
210 {
211 }
212
213 void
214 CSTedScreenBase::CopyTextToGraphics2(int in_editscreen)
215 {
216 }
217
218 void
219 CSTedScreenBase::GraphicsHome(int in_currenthome)
220 {
221 }
222
223 void
224 CSTedScreenBase::ClsAll(void)
225 {
226 }
227
228 void
229 CSTedScreenBase::GraphicsClear(void)
230 {
231 }
232
233 // key
234 int 
235 CSTedScreenBase::KeyInit(void)
236 {
237   return 0;
238 }
239
240 int 
241 CSTedScreenBase::KeyIn(int in_code)
242 {
243   return 0;
244 }
245
246 int
247 CSTedScreenBase::KeyInp(void)
248 {
249   return 0;
250 }
251
252 int
253 CSTedScreenBase::SftSense(void)
254 {
255   return 0;
256 }
257
258 int 
259 CSTedScreenBase::BitSense(int in_group)
260 {
261   return 0;
262 }
263
264 int
265 CSTedScreenBase::KeySense(void)
266 {
267   return 0;
268 }
269
270 void
271 CSTedScreenBase::KeyWait(void)
272 {
273 }
274
275 void
276 CSTedScreenBase::LedMode(int in_code, int in_onoff)
277 {
278 }
279
280 void
281 CSTedScreenBase::ClearKeyBuffer(void)
282 {
283   
284 }
285
286 void
287 CSTedScreenBase::SetFncKey(const char in_fnckey[12][6])
288 {
289         int i,j;
290         for (i=0; i<12; i++) {
291                 for (j=0; j<6; j++) {
292                         fFncKey[i][j] = in_fnckey[i][j];
293                 }
294         }
295 }
296
297 void
298 CSTedScreenBase::SetX68ScanCode(const int* in_codes)
299 {
300         fX68ScanCode = in_codes;
301 }
302
303 // pointer
304 void 
305 CSTedScreenBase::MouseInit(void)
306 {
307 }
308
309 void
310 CSTedScreenBase::SetMouseCursorVisible(int in_onoff)
311 {
312 }
313
314 int 
315 CSTedScreenBase::GetMouseButtonState(void)
316 {
317   return 0;
318 }
319
320 int
321 CSTedScreenBase::SetMouseMoveLimit(int in_x0, int in_y0, int in_x1, int in_y1)
322 {
323   return 0;
324 }
325
326 int
327 CSTedScreenBase::GetMousePos(int *out_x, int *out_y)
328 {
329   return 0;
330 }
331
332 void
333 CSTedScreenBase::MouseWait(void)
334 {
335 }
336
337 // midi devices
338 int
339 CSTedScreenBase::OpenMidiDevice(void)
340 {
341     return -1;
342 }
343
344 void
345 CSTedScreenBase::CloseMidiDevice(void)
346 {
347 }
348
349 int
350 CSTedScreenBase::GetMidiData(void)
351 {
352     return -1;
353 }
354
355 int
356 CSTedScreenBase::CanMidiRead(void)
357 {
358     return 0;
359 }
360
361 void
362 CSTedScreenBase::PutMidiData(int in_data)
363 {
364 }
365
366 void
367 CSTedScreenBase::MidiWait(void)
368 {
369 }
370
371 int
372 CSTedScreenBase::StartMidiPlayer(unsigned char* in_data, int in_len)
373 {
374         return -1;
375 }
376
377 int
378 CSTedScreenBase::StopMidiPlayer(void)
379 {
380         return -1;
381 }
382
383 int
384 CSTedScreenBase::CloseMidiPlayer(int in_sig)
385 {
386         return -1;
387 }
388
389 void
390 CSTedScreenBase::MidiPlayerWait(void)
391 {
392 }
393
394 // file related
395 dosmode_t
396 CSTedScreenBase::FileChmod(const char* in_name, dosmode_t in_atr)
397 {
398     return 0;
399 }
400
401 int
402 CSTedScreenBase::FileChdir(const char* in_name)
403 {
404     return 0;
405 }
406
407 int
408 CSTedScreenBase::FileCurdir(int in_drive, char* out_buff)
409 {
410     return 0;
411 }
412
413 int
414 CSTedScreenBase::FileCurdrv(void)
415 {
416     return 0;
417 }
418
419 int
420 CSTedScreenBase::FileDelete(const char* in_name)
421 {
422     return 0;
423 }
424
425 int
426 CSTedScreenBase::FileRename(const char* in_name, const char* in_newname)
427 {
428     return 0;
429 }
430
431 int
432 CSTedScreenBase::FileFiles(struct _x68_filbuf *in_buff, const char *in_name, int in_atr)
433 {
434     return 0;
435 }
436
437 int
438 CSTedScreenBase::FileNfiles(struct _x68_filbuf *in_buff)
439 {
440     return 0;
441 }
442
443 FILE*
444 CSTedScreenBase::FileFopen(const char* in_name, const char* in_mode)
445 {
446     return NULL;
447 }
448
449 // misc functions
450 int
451 CSTedScreenBase::OnTime(void)
452 {
453         return 0;
454 }
455
456 int
457 CSTedScreenBase::USleep(long in_usec)
458 {
459         return 0;
460 }
461
462 void
463 CSTedScreenBase::DisableUpdateWindow(void)
464 {
465 }
466
467 void
468 CSTedScreenBase::UpdateWindow(void)
469 {
470         return;
471 }