2010-05-07 04:47:10 -05:00
|
|
|
#ifndef _CayaRenderView_H
|
|
|
|
#define _CayaRenderView_H_
|
|
|
|
|
2021-05-19 16:12:19 -05:00
|
|
|
#include <librunview/RunView.h>
|
|
|
|
|
|
|
|
#include <librunview/SmileTextRender.h>
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
class RunView;
|
|
|
|
class Theme;
|
|
|
|
|
2021-05-19 16:12:19 -05:00
|
|
|
|
2010-05-07 04:47:10 -05:00
|
|
|
enum CayaRenderViewColors {
|
|
|
|
COL_URL = 0,
|
|
|
|
COL_TIMESTAMP,
|
|
|
|
COL_TEXT,
|
|
|
|
COL_OWNNICK,
|
|
|
|
COL_OTHERNICK,
|
|
|
|
COL_ACTION,
|
|
|
|
COL_SELECTION,
|
|
|
|
COL_TIMESTAMP_DUMMY,
|
|
|
|
COL_MAX_COLORS
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
R_URL = 0,
|
|
|
|
R_TEXT,
|
|
|
|
R_TIMESTAMP,
|
|
|
|
R_ACTION,
|
|
|
|
R_EMOTICON,
|
|
|
|
R_TIMESTAMP_DUMMY,
|
|
|
|
MAX_RENDERS
|
|
|
|
};
|
|
|
|
|
2021-05-19 16:12:19 -05:00
|
|
|
|
2010-05-07 04:47:10 -05:00
|
|
|
class CayaRenderView : public RunView
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CayaRenderView(const char* name, const char* smileyConfig = NULL);
|
|
|
|
|
2021-06-07 20:01:14 -05:00
|
|
|
void AppendMessage(const char* nick, const char* message, rgb_color nameColor);
|
2021-05-24 19:12:42 -05:00
|
|
|
void AppendGenericMessage(const char* message);
|
2021-06-07 20:01:14 -05:00
|
|
|
void AddEmoticText(const char * txt, rgb_color fore, rgb_color bg);
|
2010-05-07 04:47:10 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void PrepareTheme(Theme* theme);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Theme* fTheme;
|
|
|
|
SmileTextRender str;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|