OVBROWIF.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Seven Kingdoms: Ancient Adversaries
  3. *
  4. * Copyright 1997,1998 Enlight Software Ltd.
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. //Filename : OVBROWIF.H
  21. //Description : Object List Box
  22. #ifndef __OVBROWIF_H
  23. #define __OVBROWIF_H
  24. #ifndef __OVBROWSE_H
  25. #include <OVBROWSE.h>
  26. #endif
  27. //----------- Define variable type -----------//
  28. typedef void (*BrowDispFP)(int recNo,int x,int y,int refreshFlag); // user defined function to be called
  29. //---------- Define class ListBox ------------//
  30. class VBrowseIF : public VBrowse
  31. {
  32. public:
  33. char vga_front_only;
  34. public:
  35. VBrowseIF();
  36. void set_vga_front_only() { vga_front_only=1; }
  37. void init_var(int totalRec, int recNo);
  38. void refresh(int= -1,int= -1);
  39. void paint();
  40. protected:
  41. void disp_all();
  42. void disp_one(int recNo, int dispType);
  43. void disp_rec(int,int,int,int);
  44. };
  45. //--------------------------------------------------//
  46. #endif