Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MenuFolder.h 956B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*!
  2. * \file include/MenuFolder.h
  3. * \brief File-Explorer like Menu
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _MENU_FOLDER_H_
  8. #define _MENU_FOLDER_H_
  9. #include "Menu.h"
  10. #include "utils/Folder.h"
  11. /*!
  12. * \brief Menu 'overlay'
  13. */
  14. class MenuFolder : public Menu {
  15. public:
  16. /*!
  17. * \brief Constructs an object of MenuFolder
  18. */
  19. MenuFolder();
  20. /*!
  21. * \brief Deconstructs an object of MenuFolder
  22. */
  23. virtual ~MenuFolder();
  24. virtual int initialize();
  25. virtual void display();
  26. virtual void handleKeyboard(KeyboardButton key, bool pressed);
  27. virtual void handleMouseClick(unsigned int x, unsigned int y,
  28. KeyboardButton button, bool released);
  29. virtual void handleMouseScroll(int xrel, int yrel);
  30. private:
  31. int init(std::string s);
  32. int init(Folder *folder, bool filter = true);
  33. virtual void loadOrOpen();
  34. long mCursor;
  35. long mMin;
  36. Folder *mapFolder;
  37. bool hiddenState;
  38. };
  39. #endif