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.

TactileMenu.h 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ///-------------------------------------------------------------------------------------------------
  2. ///
  3. /// \file TactileMenu.h
  4. /// \brief Class for the Menues of the Tactile P300 System
  5. /// \author Tobias Baumann (TH Nuernberg).
  6. /// \version 1.0.
  7. /// \date Mon Feb 10 17:10:32 2022.
  8. /// \copyright <a href="https://choosealicense.com/licenses/agpl-3.0/">GNU Affero General Public License v3.0</a>.
  9. ///
  10. ///-------------------------------------------------------------------------------------------------
  11. //includes
  12. #pragma once
  13. #include "../ovp_defines.h"
  14. #include <gtk/gtk.h>
  15. #include <openvibe/ov_all.h>
  16. #include <toolkit/ovtk_all.h>
  17. #include <vector>
  18. #include <string>
  19. namespace OpenViBE {
  20. namespace Plugins {
  21. namespace Tactilebci {
  22. //Class TactileMenu
  23. class TactileMenu
  24. {
  25. private:
  26. std::vector<std::string> m_LabelText;
  27. std::vector<TactileMenu*> m_SubMenu;
  28. public:
  29. TactileMenu(int n_Tactilos);
  30. std::string get_LabelText(int i);
  31. TactileMenu* get_SubMenu(int i);
  32. void set_LabelText(int i, std::string Text);
  33. void set_SubMenu(int i, TactileMenu* Menu);
  34. };
  35. } // namespace Tactilebci
  36. } // namespace Plugins
  37. } // namespace OpenViBE