basecond.inc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. Free Pascal port of the OpenPTC C++ library.
  3. Copyright (C) 2001-2003 Nikolay Nikolov ([email protected])
  4. Original C++ version by Glenn Fiedler ([email protected])
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. }
  17. Type
  18. TPTCBaseConsole=Class(TPTCBaseSurface)
  19. Protected
  20. FReleaseEnabled : Boolean;
  21. Procedure internal_ReadKey(k : TPTCKey); Virtual; Abstract;
  22. Function internal_PeekKey(k : TPTCKey) : Boolean; Virtual; Abstract;
  23. Public
  24. Constructor Create;
  25. Procedure configure(Const _file : String); Virtual; Abstract;
  26. Function modes : PPTCMode; Virtual; Abstract;
  27. Procedure open(Const _title : String; _pages : Integer); Overload; Virtual; Abstract;
  28. Procedure open(Const _title : String; Const _format : TPTCFormat;
  29. _pages : Integer); Overload; Virtual; Abstract;
  30. Procedure open(Const _title : String; _width, _height : Integer;
  31. Const _format : TPTCFormat; _pages : Integer); Overload; Virtual; Abstract;
  32. Procedure open(Const _title : String; Const _mode : TPTCMode;
  33. _pages : Integer); Overload; Virtual; Abstract;
  34. {pages=0}
  35. Procedure open(Const _title : String); Overload; Virtual;
  36. Procedure open(Const _title : String; Const _format : TPTCFormat); Overload; Virtual;
  37. Procedure open(Const _title : String; _width, _height : Integer;
  38. Const _format : TPTCFormat); Overload; Virtual;
  39. Procedure open(Const _title : String; Const _mode : TPTCMode); Overload; Virtual;
  40. {/pages=0}
  41. Procedure close; Virtual; Abstract;
  42. Procedure flush; Virtual; Abstract;
  43. Procedure finish; Virtual; Abstract;
  44. Procedure update; Virtual; Abstract;
  45. Procedure update(Const _area : TPTCArea); Virtual; Abstract;
  46. Function KeyPressed : Boolean;
  47. Function PeekKey(k : TPTCKey) : Boolean;
  48. Procedure ReadKey(k : TPTCKey);
  49. Procedure ReadKey;
  50. Function pages : Integer; Virtual; Abstract;
  51. Function name : String; Virtual; Abstract;
  52. Function title : String; Virtual; Abstract;
  53. Function information : String; Virtual; Abstract;
  54. Property KeyReleaseEnabled : Boolean Read FReleaseEnabled Write FReleaseEnabled;
  55. End;