display.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * BIBISH Is [a] Bible Interactive SHell, a front-end for the SWORD Project
  3. * inspired by Debian's bible package
  4. * Copyright (C) 2015 David "Judah's Shadow" Blue <yudahsshadow@gmx.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation version 2.
  9. *
  10. * This program is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License along
  16. * with this program; if not, write to the Free Software Foundation, Inc.,
  17. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. *
  19. */
  20. #ifndef DISPLAY_H
  21. #define DISPLAY_H
  22. #include <list>
  23. #include "../back/types.h"
  24. #include "../front/pager.h"
  25. class Display {
  26. public:
  27. void displayHeader();
  28. void displayPrompt();
  29. void displaySpacer(int spacing = 0);
  30. void displayHelp();
  31. void clearScreen();
  32. void setSize(uint size);
  33. uint getSize();
  34. void displayPages(std::list<page> text);
  35. void displayPercentage(uint percent);
  36. private:
  37. uint screenSize;
  38. };
  39. #endif // DISPLAY_H