1
1

curseSplitOutput.hh 932 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #include <deque>
  3. #include "curseOutput.hh"
  4. class CurseSplitOutput: public CurseOutput
  5. {
  6. public:
  7. CurseSplitOutput(const Params &);
  8. virtual ~CurseSplitOutput();
  9. /**
  10. * Display data, and shutdown ncurses at the end
  11. **/
  12. void run(const std::deque<std::string> &, const std::deque<JSonElement *> &);
  13. bool redraw();
  14. /**
  15. * get the screen size
  16. **/
  17. const std::pair<unsigned int, unsigned int> getScreenSize() const;
  18. /**
  19. * Initialize ncurses
  20. **/
  21. void init();
  22. /**
  23. * Release ncurses
  24. **/
  25. void shutdown();
  26. void destroyAllSubWin();
  27. protected:
  28. std::deque<JSonElement *> roots;
  29. std::deque<JSonElement *> selections;
  30. std::deque<std::string> fileNames;
  31. std::deque<WINDOW *> subwindows;
  32. size_t nbInputs, currentWin;
  33. };