Emoticor.h 600 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _Emoticor_h_
  2. #define _Emoticor_h_
  3. #include <String.h>
  4. #include <librunview/RunView.h>
  5. #include <librunview/Emoconfig.h>
  6. class Emoticor
  7. {
  8. public:
  9. static Emoticor* Get(); //singleton
  10. void AddText(RunView* fTextView, const char* text, rgb_color cols,
  11. rgb_color font, rgb_color cols2, rgb_color font2);
  12. void LoadConfig(const char*);
  13. Emoconfig* Config();
  14. ~Emoticor();
  15. private:
  16. Emoticor();
  17. Emoconfig* fConfig;
  18. void _findTokens(RunView* fTextView, BString text, int tokenstart,
  19. rgb_color cols, rgb_color font, rgb_color cols2,
  20. rgb_color font2);
  21. };
  22. #endif