strings.hpp 396 B

1234567891011121314151617181920212223242526
  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. };
  11. const char* get(unsigned int);
  12. private:
  13. static const char* all_texts[];
  14. };
  15. #ifndef __
  16. #define __(X) (strings().get(strings::selector::X))
  17. #endif
  18. }
  19. #endif