2010-05-07 04:47:10 -05:00
|
|
|
#ifndef _Emoticor_h_
|
|
|
|
#define _Emoticor_h_
|
|
|
|
|
|
|
|
|
|
|
|
#include <String.h>
|
|
|
|
#include "RunView.h"
|
|
|
|
#include "Emoconfig.h"
|
|
|
|
|
|
|
|
class Emoticor
|
|
|
|
{
|
2010-07-10 08:58:15 -05:00
|
|
|
public:
|
|
|
|
|
|
|
|
static Emoticor* Get(); //singleton
|
|
|
|
|
|
|
|
|
2021-06-07 20:01:14 -05:00
|
|
|
void AddText(RunView* fTextView, const char* text, rgb_color cols,
|
|
|
|
rgb_color font, rgb_color cols2, rgb_color font2);
|
2010-07-10 08:58:15 -05:00
|
|
|
void LoadConfig(const char*);
|
|
|
|
|
|
|
|
Emoconfig* Config();
|
|
|
|
|
|
|
|
~Emoticor();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Emoticor();
|
|
|
|
Emoconfig* fConfig;
|
2021-06-07 20:01:14 -05:00
|
|
|
void _findTokens(RunView* fTextView, BString text, int tokenstart,
|
|
|
|
rgb_color cols, rgb_color font, rgb_color cols2,
|
|
|
|
rgb_color font2);
|
2010-07-10 08:58:15 -05:00
|
|
|
|
2010-05-07 04:47:10 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|