blob: 2af5e5b20a99d99f5c1a6f660652aa1671768950 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
//PORTABLE
#ifndef _GURU_H
#define _GURU_H
#include <api/wnd/basewnd.h>
#ifdef WASABI_COMPILE_WND
#define GURU_PARENT BaseWnd
#else
class _Guru {};
#define GURU_PARENT _Guru
#endif
class SystemObject;
#define GURU_TIMERID 2482
class Guru : public GURU_PARENT {
public:
#ifdef WASABI_COMPILE_WND
Guru();
virtual ~Guru();
#endif
static void spawn(SystemObject *_script, int code, const wchar_t *pub = NULL, int intinfo = 0);
#ifdef WASABI_COMPILE_WND
virtual int onPaint(Canvas *canvas);
virtual int onLeftButtonUp(int x, int y);
virtual int onInit();
void setCode(int c);
void setPublicTxt(const wchar_t *t);
void setIntInfo(int info);
#endif
#ifdef WASABI_COMPILE_WND
protected:
virtual void timerCallback(int id);
private:
int code;
const wchar_t *txt;
int fcount;
int intinfo;
static int mustquit;
static int last_iterator;
static SystemObject * script;
#endif
};
#endif
|