strings.hpp 422 B

123456789101112131415161718192021222324252627
  1. #ifndef STRINGS_H_INCLUDED
  2. #define STRINGS_H_INCLUDED
  3. namespace cx_light {
  4. class strings {
  5. public:
  6. enum selector {
  7. WINDOW_TITLE,
  8. LIGHTS_LIST,
  9. ADD_LIGHT,
  10. WELCOME_TEXT
  11. };
  12. const char* get(unsigned int);
  13. private:
  14. static const char* all_texts[];
  15. };
  16. #ifndef __
  17. #define __(X) (strings().get(strings::selector::X))
  18. #endif
  19. }
  20. #endif