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 974B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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, KeyboardButton button, bool released);
  28. virtual void handleMouseScroll(int xrel, int yrel);
  29. private:
  30. virtual int initialize(std::string s);
  31. virtual int initialize(Folder *folder, bool filter = true);
  32. virtual void loadOrOpen();
  33. long mCursor;
  34. long mMin;
  35. Folder *mapFolder;
  36. bool hiddenState;
  37. };
  38. #endif