diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-02 08:29:11 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-02 08:29:11 +0000 |
commit | 18ba81972b1b9c96625045d87c368d92150b6671 (patch) | |
tree | dcf7e89cf0041c6fed86832dffe905ad04bd14f0 /plugins/Alarms | |
parent | f7faee90378f78e4ecec4ce24fc71c3c51c14cfa (diff) |
Removed not needed files from Alarms, project fixes for RC4 restored
git-svn-id: http://svn.miranda-ng.org/main/trunk@257 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms')
-rw-r--r-- | plugins/Alarms/glyph.c | 537 | ||||
-rw-r--r-- | plugins/Alarms/glyph.h | 21 | ||||
-rw-r--r-- | plugins/Alarms/init.c | 185 | ||||
-rw-r--r-- | plugins/Alarms/timewindow.cpp | 420 | ||||
-rw-r--r-- | plugins/Alarms/timewindow.h | 14 |
5 files changed, 0 insertions, 1177 deletions
diff --git a/plugins/Alarms/glyph.c b/plugins/Alarms/glyph.c deleted file mode 100644 index b7e4a3e5ff..0000000000 --- a/plugins/Alarms/glyph.c +++ /dev/null @@ -1,537 +0,0 @@ -#ifdef _WIN32 -#include <windows.h> -#endif - -#include <GL/gl.h> -#include <assert.h> - -static const unsigned char g20[] = { - 0xff, 0xff -}; -static const unsigned char g21[] = { - 0x60, 0x80, 0x62, 0x82, 0xff, 0x64, 0x84, 0x6e, - 0x8e, 0xff, 0xff -}; -static const unsigned char g22[] = { - 0x6a, 0x6e, 0x4c, 0x4e, 0xff, 0x8a, 0xac, 0x8e, - 0xae, 0xff, 0xff -}; -static const unsigned char g23[] = { - 0x42, 0x62, 0x44, 0x64, 0x46, 0x66, 0x48, 0x68, - 0x4a, 0x6a, 0x4c, 0x6c, 0xff, 0x82, 0xa2, 0x84, - 0xa4, 0x86, 0xa6, 0x88, 0xa8, 0x8a, 0xaa, 0x8c, - 0xac, 0xff, 0x24, 0x44, 0x26, 0x46, 0xff, 0x64, - 0x84, 0x66, 0x86, 0xff, 0xa4, 0xc4, 0xa6, 0xc6, - 0xff, 0x28, 0x48, 0x2a, 0x4a, 0xff, 0x68, 0x88, - 0x6a, 0x8a, 0xff, 0xa8, 0xc8, 0xaa, 0xca, 0xff, - 0xff -}; -static const unsigned char g24[] = { - 0x46, 0x48, 0x26, 0x38, 0x08, 0x29, 0x0a, 0x3a, - 0x2c, 0x4a, 0x4c, 0xff, 0xa8, 0xa6, 0xc8, 0xb6, - 0xe6, 0xc5, 0xe4, 0xb4, 0xc2, 0xa4, 0xa2, 0xff, - 0x25, 0x04, 0x34, 0x22, 0x44, 0x42, 0xff, 0xc9, - 0xea, 0xba, 0xcc, 0xaa, 0xac, 0xff, 0x40, 0x60, - 0x42, 0x62, 0x44, 0x64, 0x46, 0x66, 0x48, 0x68, - 0x4a, 0x6a, 0x4c, 0x6c, 0x4e, 0x6e, 0xff, 0x80, - 0xa0, 0x82, 0xa2, 0x84, 0xa4, 0x86, 0xa6, 0x88, - 0xa8, 0x8a, 0xaa, 0x8c, 0xac, 0x8e, 0xae, 0xff, - 0x62, 0x82, 0x64, 0x84, 0xff, 0x66, 0x86, 0x68, - 0x88, 0xff, 0x6a, 0x8a, 0x6c, 0x8c, 0xff, 0xff -}; -static const unsigned char g25[] = { - 0x00, 0x20, 0x02, 0xec, 0xce, 0xee, 0xff, 0xa0, - 0xb2, 0x82, 0xa3, 0x84, 0xb4, 0xa6, 0xc6, 0xff, - 0xc6, 0xb4, 0xe4, 0xc3, 0xe2, 0xb2, 0xc0, 0xa0, - 0xff, 0x28, 0x3a, 0x0a, 0x2b, 0x0c, 0x3c, 0x2e, - 0x4e, 0xff, 0x4e, 0x3c, 0x6c, 0x4b, 0x6a, 0x3a, - 0x48, 0x28, 0xff, 0xff -}; -static const unsigned char g26[] = { - 0xa0, 0xe0, 0x91, 0xb3, 0x73, 0x95, 0x55, 0x77, - 0x37, 0x59, 0x28, 0x4a, 0x2c, 0x4b, 0x4e, 0x5c, - 0x6e, 0x6b, 0x8c, 0x6a, 0x88, 0x59, 0x77, 0xff, - 0x91, 0x73, 0x80, 0x62, 0x20, 0x42, 0x02, 0x33, - 0x04, 0x55, 0x37, 0xff, 0x95, 0xb3, 0xa6, 0xc4, - 0xff, 0xff -}; -static const unsigned char g27[] = { - 0x6a, 0x8c, 0x6e, 0x8e, 0xff, 0xff -}; -static const unsigned char g28[] = { - 0x80, 0xa0, 0x62, 0x82, 0x6c, 0x8c, 0x8e, 0xae, - 0xff, 0xff -}; -static const unsigned char g29[] = { - 0x40, 0x60, 0x62, 0x82, 0x6c, 0x8c, 0x4e, 0x6e, - 0xff, 0xff -}; -static const unsigned char g2A[] = { - 0x77, 0xa8, 0x8a, 0xb9, 0x9b, 0xff, 0x77, 0x8a, - 0x6a, 0x8c, 0x6c, 0xff, 0x77, 0x6a, 0x48, 0x5b, - 0x39, 0xff, 0x77, 0x48, 0x46, 0x28, 0x26, 0xff, - 0x77, 0x46, 0x64, 0x35, 0x53, 0xff, 0x77, 0x64, - 0x84, 0x62, 0x82, 0xff, 0x77, 0x84, 0xa6, 0x93, - 0xb5, 0xff, 0x77, 0xa6, 0xa8, 0xc6, 0xc8, 0xff, - 0xff -}; -static const unsigned char g2B[] = { - 0x62, 0x82, 0x66, 0x86, 0x88, 0xc6, 0xc8, 0xff, - 0x8c, 0x6c, 0x88, 0x68, 0x66, 0x28, 0x26, 0xff, - 0xff -}; -static const unsigned char g2C[] = { - 0x84, 0x64, 0x82, 0x60, 0xff, 0xff -}; -static const unsigned char g2D[] = { - 0x28, 0x26, 0xc8, 0xc6, 0xff, 0xff -}; -static const unsigned char g2E[] = { - 0x60, 0x80, 0x62, 0x82, 0xff, 0xff -}; -static const unsigned char g2F[] = { - 0x00, 0x20, 0x02, 0xec, 0xce, 0xee, 0xff, 0xff -}; -static const unsigned char g30[] = { - 0x24, 0x42, 0xac, 0xca, 0xff, 0xb2, 0xc0, 0xc3, - 0xe2, 0xca, 0xec, 0xac, 0xce, 0x3c, 0x2e, 0x2b, - 0x0c, 0x24, 0x02, 0x42, 0x20, 0xb2, 0xc0, 0xff, - 0xff -}; -static const unsigned char g31[] = { - 0x80, 0xff, 0x4c, 0x4a, 0x6e, 0x6a, 0x8e, 0x60, - 0x80, 0xff, 0xff -}; -static const unsigned char g32[] = { - 0x0c, 0x2b, 0x2e, 0x3c, 0xce, 0xbc, 0xec, 0xcb, - 0xe8, 0xc9, 0xc6, 0xb8, 0x36, 0x28, 0x25, 0x06, - 0x22, 0x00, 0xe2, 0xe0, 0xff, 0xff -}; -static const unsigned char g33[] = { - 0x0c, 0x2b, 0x2e, 0x3c, 0xce, 0xbc, 0xec, 0xcb, - 0xe8, 0xc9, 0xd7, 0xb8, 0xb6, 0x68, 0x66, 0xff, - 0xd7, 0xb6, 0xe6, 0xc5, 0xe2, 0xc3, 0xc0, 0xb2, - 0x20, 0x32, 0x02, 0x23, 0xff, 0xff -}; -static const unsigned char g34[] = { - 0xc6, 0xc8, 0x06, 0x28, 0x0c, 0x2c, 0xff, 0xc0, - 0xe0, 0xc6, 0xe7, 0xc8, 0xee, 0xce, 0xff, 0xff -}; -static const unsigned char g35[] = { - 0xec, 0xee, 0x2c, 0x0e, 0x29, 0x08, 0x38, 0x26, - 0xc8, 0xb6, 0xe6, 0xc5, 0xe2, 0xc3, 0xc0, 0xb2, - 0x20, 0x32, 0x02, 0x23, 0xff, 0xff -}; -static const unsigned char g36[] = { - 0xcb, 0xec, 0xbc, 0xce, 0x3c, 0x2e, 0x2b, 0x0c, - 0x28, 0x07, 0x26, 0x02, 0x23, 0x20, 0x32, 0xc0, - 0xb2, 0xe2, 0xc3, 0xe6, 0xc5, 0xc8, 0xb6, 0x28, - 0x26, 0xff, 0xff -}; -static const unsigned char g37[] = { - 0x0e, 0x0c, 0xee, 0xbc, 0xec, 0x67, 0x86, 0x60, - 0x80, 0xff, 0xff -}; -static const unsigned char g38[] = { - 0x36, 0x17, 0x25, 0x06, 0x23, 0x02, 0x32, 0x20, - 0xb2, 0xc0, 0xc3, 0xe2, 0xc5, 0xe6, 0xb6, 0xd7, - 0xb8, 0xe8, 0xc9, 0xec, 0xcb, 0xce, 0xbc, 0x2e, - 0x3c, 0x0c, 0x2b, 0x08, 0x29, 0x17, 0x38, 0x36, - 0xb8, 0xb6, 0xff, 0xff -}; -static const unsigned char g39[] = { - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xc6, 0xe7, 0xc8, 0xec, 0xcb, 0xce, 0xbc, 0x2e, - 0x3c, 0x0c, 0x2b, 0x08, 0x29, 0x26, 0x38, 0xc6, - 0xc8, 0xff, 0xff -}; -static const unsigned char g3A[] = { - 0x60, 0x80, 0x62, 0x82, 0xff, 0x66, 0x86, 0x68, - 0x88, 0xff, 0xff -}; -static const unsigned char g3B[] = { - 0x84, 0x64, 0x82, 0x60, 0xff, 0x66, 0x86, 0x68, - 0x88, 0xff, 0xff -}; -static const unsigned char g3C[] = { - 0xbc, 0x8c, 0x67, 0x37, 0xb2, 0x82, 0xff, 0xff -}; -static const unsigned char g3D[] = { - 0x24, 0x26, 0xc4, 0xc6, 0xff, 0x28, 0x2a, 0xc8, - 0xca, 0xff, 0xff -}; -static const unsigned char g3E[] = { - 0x32, 0x62, 0x87, 0xb7, 0x3c, 0x6c, 0xff, 0xff -}; -static const unsigned char g3F[] = { - 0x60, 0x80, 0x62, 0x82, 0xff, 0x64, 0x84, 0x65, - 0xea, 0xcb, 0xec, 0xbc, 0xce, 0x3c, 0x2e, 0x2b, - 0x0c, 0xff, 0xff -}; -static const unsigned char g40[] = { - 0xe2, 0xc3, 0xc0, 0xb2, 0x20, 0x32, 0x02, 0x23, - 0x0c, 0x2b, 0x2e, 0x3c, 0xce, 0xbc, 0xec, 0xcb, - 0xe6, 0xc7, 0xc4, 0xb6, 0xa4, 0xa6, 0x84, 0x86, - 0x64, 0x76, 0x46, 0x67, 0x48, 0x78, 0x6a, 0x88, - 0xaa, 0x86, 0xa6, 0xff, 0xff -}; -static const unsigned char g41[] = { - 0x00, 0x20, 0x08, 0x26, 0x38, 0xc6, 0xb8, 0xff, - 0xc0, 0xe0, 0xc6, 0xe8, 0xb8, 0x8e, 0x7c, 0x6e, - 0x38, 0x08, 0xff, 0xff -}; -static const unsigned char g42[] = { - 0xb8, 0xd7, 0xc9, 0xe8, 0xcb, 0xec, 0xbc, 0xce, - 0x2c, 0x0e, 0x28, 0x07, 0x26, 0x00, 0x22, 0xc0, - 0xb2, 0xe2, 0xc3, 0xe6, 0xc5, 0xd7, 0xb6, 0xb8, - 0x26, 0x28, 0xff, 0xff -}; -static const unsigned char g43[] = { - 0xcb, 0xec, 0xbc, 0xce, 0x3c, 0x2e, 0x2b, 0x0c, - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xff, 0xff -}; -static const unsigned char g44[] = { - 0x22, 0x00, 0xb2, 0xc0, 0xc3, 0xe2, 0xcb, 0xec, - 0xbc, 0xce, 0x2c, 0x0e, 0x22, 0x00, 0xff, 0xff -}; -static const unsigned char g45[] = { - 0xe0, 0xe2, 0x00, 0x22, 0x06, 0x26, 0x08, 0x28, - 0x0e, 0x2c, 0xee, 0xec, 0xff, 0x28, 0x26, 0x88, - 0x86, 0xff, 0xff -}; -static const unsigned char g46[] = { - 0x00, 0x20, 0x06, 0x26, 0x08, 0x28, 0x0e, 0x2c, - 0xee, 0xec, 0xff, 0x28, 0x26, 0x88, 0x86, 0xff, - 0xff -}; -static const unsigned char g47[] = { - 0xcb, 0xec, 0xbc, 0xce, 0x3c, 0x2e, 0x2b, 0x0c, - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xc6, 0xe8, 0x86, 0x88, 0xff, 0xff -}; -static const unsigned char g48[] = { - 0x2e, 0x0e, 0x28, 0x07, 0x26, 0x00, 0x20, 0xff, - 0xc0, 0xe0, 0xc6, 0xe7, 0xc8, 0xee, 0xce, 0xff, - 0x28, 0x26, 0xc8, 0xc6, 0xff, 0xff -}; -static const unsigned char g49[] = { - 0x42, 0x40, 0x62, 0x60, 0x82, 0x80, 0xa2, 0xa0, - 0xff, 0x4e, 0x4c, 0x6e, 0x6c, 0x8e, 0x8c, 0xae, - 0xac, 0xff, 0x62, 0x82, 0x6c, 0x8c, 0xff, 0xff -}; -static const unsigned char g4A[] = { - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xce, 0xee, 0xff, 0xff -}; -static const unsigned char g4B[] = { - 0x2e, 0x0e, 0x28, 0x07, 0x26, 0x00, 0x20, 0xff, - 0x28, 0x26, 0x68, 0x66, 0x97, 0xc0, 0xe2, 0xe0, - 0xff, 0x68, 0x97, 0xce, 0xec, 0xee, 0xff, 0xff -}; -static const unsigned char g4C[] = { - 0xe0, 0xe2, 0x00, 0x22, 0x0e, 0x2e, 0xff, 0xff -}; -static const unsigned char g4D[] = { - 0x00, 0x20, 0x0e, 0x2b, 0x2e, 0x67, 0x79, 0x87, - 0xce, 0xcb, 0xee, 0xc0, 0xe0, 0xff, 0xff -}; -static const unsigned char g4E[] = { - 0x00, 0x20, 0x0e, 0x2b, 0x2e, 0xc0, 0xc3, 0xe0, - 0xce, 0xee, 0xff, 0xff -}; -static const unsigned char g4F[] = { - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xcb, 0xec, 0xbc, 0xce, 0x3c, 0x2e, 0x2b, 0x0c, - 0x23, 0x02, 0xff, 0xff -}; -static const unsigned char g50[] = { - 0x00, 0x20, 0x06, 0x26, 0x08, 0x28, 0x0c, 0x2c, - 0x0e, 0xbc, 0xce, 0xcb, 0xec, 0xc9, 0xe8, 0xb8, - 0xc6, 0x28, 0x26, 0xff, 0xff -}; -static const unsigned char g51[] = { - 0xc0, 0xe2, 0xc4, 0xec, 0xcb, 0xce, 0xbc, 0x2e, - 0x3c, 0x0c, 0x2b, 0x02, 0x23, 0x20, 0x32, 0xc0, - 0xa2, 0xc4, 0x84, 0xa6, 0xff, 0xff -}; -static const unsigned char g52[] = { - 0xc0, 0xe0, 0xc5, 0xe6, 0xb6, 0xd7, 0xb8, 0xe8, - 0xc9, 0xec, 0xcb, 0xce, 0xbc, 0x0e, 0x2c, 0x08, - 0x28, 0x06, 0x26, 0x00, 0x20, 0xff, 0x28, 0x26, - 0xb8, 0xb6, 0xff, 0xff -}; -static const unsigned char g53[] = { - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xc5, 0xe6, 0xb6, 0xc8, 0x26, 0x38, 0x08, 0x29, - 0x0c, 0x2b, 0x2e, 0x3c, 0xce, 0xbc, 0xec, 0xcb, - 0xff, 0xff -}; -static const unsigned char g54[] = { - 0x0e, 0x0c, 0x6e, 0x6c, 0x8e, 0x8c, 0xee, 0xec, - 0xff, 0x60, 0x80, 0x6c, 0x8c, 0xff, 0xff -}; -static const unsigned char g55[] = { - 0x2e, 0x0e, 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, - 0xc3, 0xe2, 0xce, 0xee, 0xff, 0xff -}; -static const unsigned char g56[] = { - 0x2e, 0x0e, 0x27, 0x06, 0x72, 0x60, 0xff, 0x60, - 0x80, 0x72, 0xe6, 0xc7, 0xee, 0xce, 0xff, 0xff -}; -static const unsigned char g57[] = { - 0xee, 0xce, 0xe0, 0xc3, 0xc0, 0x87, 0x75, 0x67, - 0x20, 0x23, 0x00, 0x2e, 0x0e, 0xff, 0xff -}; -static const unsigned char g58[] = { - 0x00, 0x20, 0x02, 0x75, 0x57, 0x97, 0x79, 0xec, - 0xce, 0xee, 0xff, 0xe0, 0xe2, 0xc0, 0x97, 0x75, - 0xff, 0x0e, 0x0c, 0x2e, 0x57, 0x79, 0xff, 0xff -}; -static const unsigned char g59[] = { - 0x0e, 0x0c, 0x2e, 0x66, 0x79, 0x86, 0xce, 0xec, - 0xee, 0xff, 0x60, 0x80, 0x66, 0x86, 0xff, 0xff -}; -static const unsigned char g5A[] = { - 0x0e, 0x0c, 0xee, 0xbc, 0xec, 0x02, 0x32, 0x00, - 0xe2, 0xe0, 0xff, 0xff -}; -static const unsigned char g5B[] = { - 0xa0, 0xa2, 0x60, 0x82, 0x6e, 0x8c, 0xae, 0xac, - 0xff, 0xff -}; -static const unsigned char g5C[] = { - 0xe0, 0xe2, 0xc0, 0x2e, 0x0c, 0x0e, 0xff, 0xff -}; -static const unsigned char g5D[] = { - 0x4e, 0x4c, 0x8e, 0x6c, 0x80, 0x62, 0x40, 0x42, - 0xff, 0xff -}; -static const unsigned char g5E[] = { - 0x3a, 0x6a, 0x7e, 0x7b, 0xba, 0x8a, 0xff, 0xff -}; -static const unsigned char g5F[] = { - 0x02, 0x00, 0xe2, 0xe0, 0xff, 0xff -}; -static const unsigned char g60[] = { - 0x8a, 0x8e, 0x6c, 0x6e, 0xff, 0xff -}; -static const unsigned char g61[] = { - 0x08, 0x27, 0x2a, 0x38, 0xca, 0xb8, 0xe8, 0xc7, - 0xe6, 0xc6, 0xe4, 0xc4, 0xe0, 0xc2, 0x20, 0x32, - 0x02, 0x23, 0x04, 0x34, 0x26, 0xc4, 0xc6, 0xff, - 0xff -}; -static const unsigned char g62[] = { - 0x2e, 0x0e, 0x2a, 0x09, 0x28, 0x00, 0x22, 0xc0, - 0xb2, 0xe2, 0xc3, 0xe8, 0xc7, 0xca, 0xb8, 0x2a, - 0x28, 0xff, 0xff -}; -static const unsigned char g63[] = { - 0xc7, 0xe8, 0xb8, 0xca, 0x38, 0x2a, 0x27, 0x08, - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xff, 0xff -}; -static const unsigned char g64[] = { - 0xc8, 0xca, 0x38, 0x2a, 0x27, 0x08, 0x23, 0x02, - 0x32, 0x20, 0xc2, 0xe0, 0xc8, 0xe9, 0xca, 0xee, - 0xce, 0xff, 0xff -}; -static const unsigned char g65[] = { - 0xe2, 0xc3, 0xc0, 0xb2, 0x20, 0x32, 0x02, 0x23, - 0x04, 0x24, 0x06, 0x26, 0x08, 0x27, 0x2a, 0x38, - 0xca, 0xb8, 0xe8, 0xc7, 0xe4, 0xc6, 0x24, 0x26, - 0xff, 0xff -}; -static const unsigned char g66[] = { - 0x4a, 0x48, 0x6a, 0x68, 0x8a, 0x88, 0xaa, 0xa8, - 0xff, 0x60, 0x80, 0x68, 0x88, 0xff, 0x6a, 0x8a, - 0x6c, 0x8b, 0x8e, 0x9c, 0xae, 0xac, 0xff, 0xff -}; -static const unsigned char g67[] = { - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xc4, 0xe6, 0xc6, 0xea, 0xc8, 0x2a, 0x38, 0x08, - 0x27, 0x06, 0x36, 0x24, 0xc6, 0xc4, 0xff, 0xff -}; -static const unsigned char g68[] = { - 0x00, 0x20, 0x08, 0x28, 0x0a, 0x2a, 0x0e, 0x2e, - 0xff, 0x2a, 0x28, 0xca, 0xb8, 0xe8, 0xc7, 0xe0, - 0xc0, 0xff, 0xff -}; -static const unsigned char g69[] = { - 0x60, 0x80, 0x6a, 0x8a, 0xff, 0x6c, 0x8c, 0x6e, - 0x8e, 0xff, 0xff -}; -static const unsigned char g6A[] = { - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xca, 0xea, 0xff, 0xcc, 0xec, 0xce, 0xee, 0xff, - 0xff -}; -static const unsigned char g6B[] = { - 0x00, 0x20, 0x04, 0x24, 0x06, 0x26, 0x0e, 0x2e, - 0xff, 0x26, 0x24, 0x86, 0x84, 0xb5, 0xc0, 0xe2, - 0xe0, 0xff, 0x86, 0xb5, 0xca, 0xe8, 0xea, 0xff, - 0xff -}; -static const unsigned char g6C[] = { - 0x60, 0x80, 0x6e, 0x8e, 0xff, 0xff -}; -static const unsigned char g6D[] = { - 0x00, 0x20, 0x0a, 0x28, 0x6a, 0x68, 0xff, 0x60, - 0x80, 0x68, 0x88, 0x6a, 0xb8, 0xca, 0xc7, 0xe8, - 0xc0, 0xe0, 0xff, 0xff -}; -static const unsigned char g6E[] = { - 0x00, 0x20, 0x0a, 0x28, 0xca, 0xb8, 0xe8, 0xc7, - 0xe0, 0xc0, 0xff, 0xff -}; -static const unsigned char g6F[] = { - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xc7, 0xe8, 0xb8, 0xca, 0x38, 0x2a, 0x27, 0x08, - 0x23, 0x02, 0xff, 0xff -}; -static const unsigned char g70[] = { - 0x00, 0x20, 0x04, 0x24, 0x06, 0x26, 0x0a, 0x28, - 0xca, 0xb8, 0xe8, 0xc7, 0xe6, 0xb6, 0xc4, 0x26, - 0x24, 0xff, 0xff -}; -static const unsigned char g71[] = { - 0xc0, 0xe0, 0xc4, 0xe5, 0xc6, 0xea, 0xc8, 0x2a, - 0x38, 0x08, 0x27, 0x06, 0x36, 0x24, 0xc6, 0xc4, - 0xff, 0xff -}; -static const unsigned char g72[] = { - 0x00, 0x20, 0x0a, 0x28, 0xca, 0xb8, 0xe8, 0xc7, - 0xff, 0xff -}; -static const unsigned char g73[] = { - 0xc3, 0xe4, 0xb4, 0xc6, 0x24, 0x36, 0x06, 0x27, - 0x08, 0x38, 0x2a, 0xb8, 0xca, 0xc7, 0xe8, 0xff, - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xe4, 0xff, 0xff -}; -static const unsigned char g74[] = { - 0x4a, 0x48, 0x6a, 0x68, 0xff, 0x8a, 0x88, 0xaa, - 0xa8, 0xff, 0xa0, 0xa2, 0x80, 0x92, 0x62, 0x83, - 0x68, 0x88, 0x6a, 0x8a, 0x6c, 0x8c, 0xff, 0xff -}; -static const unsigned char g75[] = { - 0x2a, 0x0a, 0x23, 0x02, 0x32, 0x20, 0xc2, 0xe0, - 0xca, 0xea, 0xff, 0xff -}; -static const unsigned char g76[] = { - 0xea, 0xca, 0xe6, 0xc7, 0x80, 0x72, 0x60, 0x27, - 0x06, 0x2a, 0x0a, 0xff, 0xff -}; -static const unsigned char g77[] = { - 0x2a, 0x0a, 0x22, 0x00, 0x52, 0x60, 0x63, 0x71, - 0x83, 0x80, 0x92, 0xc0, 0xb2, 0xe2, 0xc3, 0xea, - 0xca, 0xff, 0x8a, 0x6a, 0x83, 0x63, 0xff, 0xff -}; -static const unsigned char g78[] = { - 0x00, 0x20, 0x02, 0x74, 0x45, 0x76, 0x08, 0x2a, - 0x0a, 0xff, 0xea, 0xca, 0xe8, 0x76, 0xa5, 0x74, - 0xe2, 0xc0, 0xe0, 0xff, 0xff -}; -static const unsigned char g79[] = { - 0x23, 0x02, 0x32, 0x20, 0xb2, 0xc0, 0xc3, 0xe2, - 0xc4, 0xe5, 0xc6, 0xea, 0xca, 0xff, 0x2a, 0x0a, - 0x27, 0x06, 0x36, 0x24, 0xc6, 0xc4, 0xff, 0xff -}; -static const unsigned char g7A[] = { - 0x0a, 0x08, 0xea, 0xa8, 0xe8, 0x02, 0x42, 0x00, - 0xe2, 0xe0, 0xff, 0xff -}; -static const unsigned char g7B[] = { - 0x80, 0xa0, 0x62, 0x82, 0x66, 0x86, 0x57, 0x77, - 0x68, 0x88, 0x6c, 0x8c, 0x8e, 0xae, 0xff, 0xff -}; -static const unsigned char g7C[] = { - 0x60, 0x80, 0x6f, 0x8f, 0xff, 0xff -}; -static const unsigned char g7D[] = { - 0x6e, 0x4e, 0x8c, 0x6c, 0x88, 0x68, 0x97, 0x77, - 0x86, 0x66, 0x82, 0x62, 0x60, 0x40, 0xff, 0xff -}; -static const unsigned char g7E[] = { - 0xbc, 0xbe, 0x9a, 0x9c, 0x5c, 0x5e, 0x3a, 0x3c, - 0xff, 0xff -}; -static const unsigned char g7F[] = { - 0x44, 0x22, 0xa4, 0xc2, 0xaa, 0xcc, 0x4a, 0x2c, - 0x44, 0x22, 0xff, 0xff -}; - -static const unsigned char *glyph[] = { - g7F, g7F, g7F, g7F, g7F, g7F, g7F, g7F, - g7F, g7F, g7F, g7F, g7F, g7F, g7F, g7F, - g7F, g7F, g7F, g7F, g7F, g7F, g7F, g7F, - g7F, g7F, g7F, g7F, g7F, g7F, g7F, g7F, - g20, g21, g22, g23, g24, g25, g26, g27, - g28, g29, g2A, g2B, g2C, g2D, g2E, g2F, - g30, g31, g32, g33, g34, g35, g36, g37, - g38, g39, g3A, g3B, g3C, g3D, g3E, g3F, - g40, g41, g42, g43, g44, g45, g46, g47, - g48, g49, g4A, g4B, g4C, g4D, g4E, g4F, - g50, g51, g52, g53, g54, g55, g56, g57, - g58, g59, g5A, g5B, g5C, g5D, g5E, g5F, - g60, g61, g62, g63, g64, g65, g66, g67, - g68, g69, g6A, g6B, g6C, g6D, g6E, g6F, - g70, g71, g72, g73, g74, g75, g76, g77, - g78, g79, g7A, g7B, g7C, g7D, g7E, g7F, -}; - -void draw_glyph(int c) -{ - int i = 0; - - assert(0 <= c && c < 128); - - while (glyph[c][i] != 0xff) - { - glBegin(GL_TRIANGLE_STRIP); - { - while (glyph[c][i] != 0xff) - { - glVertex2f((glyph[c][i] / 16) / 16.0f, - (glyph[c][i] % 16) / 16.0f); - i++; - } - } - glEnd(); - - i++; - } - - glTranslatef(1.0f, 0.0f, 0.0f); -} - -double text_width = 8; -double text_height = 12; - -void draw_string(const char *s) { - int index = 0; - - glPushMatrix(); - glScaled(text_width, text_height, 0); - glRotated(180, 1, 0, 0); // flip - ortho screen coords have y inverted - - while(s[index] != '\0') { - draw_glyph((int)s[index]); - index++; - } - - glPopMatrix(); -} - -void draw_string_centered(const char *s) { - glPushMatrix(); - glTranslated(strlen(s) / 2.0 * -text_width, text_height / 2, 0); - draw_string(s); - glPopMatrix(); -} - -void set_text_size(const double ttext_width, const double ttext_height) { - text_width = ttext_width; - text_height = ttext_height; -} diff --git a/plugins/Alarms/glyph.h b/plugins/Alarms/glyph.h deleted file mode 100644 index 86e2247608..0000000000 --- a/plugins/Alarms/glyph.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef GLYPH_H -#define GLYPH_H - -#ifdef __cplusplus -extern "C" { -#endif - -extern double text_width; -extern double text_height; - -void draw_glyph(int); -void draw_string(const char *s); -void draw_string_centered(const char *s); - -void set_text_size(const double ttext_width, const double ttext_height); - -#ifdef __cplusplus -}; -#endif - -#endif diff --git a/plugins/Alarms/init.c b/plugins/Alarms/init.c deleted file mode 100644 index ffac6c06bb..0000000000 --- a/plugins/Alarms/init.c +++ /dev/null @@ -1,185 +0,0 @@ -/*
-
-Miranda IM: the free IM client for Microsoft* Windows*
-
-Copyright 2000-2003 Miranda ICQ/IM project,
-all portions of this codebase are copyrighted to the people
-listed in contributors.txt.
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-#include "commonheaders.h"
-#include "database.h"
-#include <m_plugins.h>
-
-struct MM_INTERFACE memoryManagerInterface;
-extern char szDbPath[MAX_PATH];
-
-HINSTANCE g_hInst=NULL;
-PLUGINLINK *pluginLink;
-
-static int getCapability( int flag )
-{
- return 0;
-}
-
-// returns 0 if the profile is created, EMKPRF*
-static int makeDatabase(char * profile, int * error)
-{
- HANDLE hFile=CreateFile(profile, GENERIC_READ|GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL);
- if ( hFile != INVALID_HANDLE_VALUE ) {
- CreateDbHeaders(hFile);
- CloseHandle(hFile);
- return 0;
- }
- if ( error != NULL ) *error=EMKPRF_CREATEFAILED;
- return 1;
-}
-
-// returns 0 if the given profile has a valid header
-static int grokHeader( char * profile, int * error )
-{
- int rc=1;
- int chk=0;
- struct DBHeader hdr;
- HANDLE hFile = INVALID_HANDLE_VALUE;
- DWORD dummy=0;
-
- hFile = CreateFile(profile, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL);
- if ( hFile == INVALID_HANDLE_VALUE ) {
- if ( error != NULL ) *error=EGROKPRF_CANTREAD;
- return 1;
- }
- // read the header, which can fail (for various reasons)
- if ( !ReadFile(hFile, &hdr, sizeof(struct DBHeader), &dummy, NULL) ) {
- if ( error != NULL) *error=EGROKPRF_CANTREAD;
- CloseHandle(hFile);
- return 1;
- }
- chk=CheckDbHeaders(&hdr);
- if ( chk == 0 ) {
- // all the internal tests passed, hurrah
- rc=0;
- if ( error != NULL ) *error=0;
- } else {
- // didn't pass at all, or some did.
- switch ( chk ) {
- case 1:
- {
- // "Miranda ICQ DB" wasn't present
- if ( error != NULL ) *error = EGROKPRF_UNKHEADER;
- break;
- }
- case 2:
- {
- // header was present, but version information newer
- if ( error != NULL ) *error= EGROKPRF_VERNEWER;
- break;
- }
- case 3:
- {
- // header/version OK, internal data missing
- if ( error != NULL ) *error=EGROKPRF_DAMAGED;
- break;
- }
- } // switch
- } //if
- CloseHandle(hFile);
- return rc;
-}
-
-// returns 0 if all the APIs are injected otherwise, 1
-static int LoadDatabase( char * profile, void * plink )
-{
- PLUGINLINK *link = plink;
-#ifdef _DEBUG
- _CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
-#endif
- // don't need thread notifications
- strncpy(szDbPath, profile, sizeof(szDbPath));
- // this is like Load()'s pluginLink
- pluginLink=link;
- // set the memory manager
- memoryManagerInterface.cbSize=sizeof(struct MM_INTERFACE);
- CallService(MS_SYSTEM_GET_MMI,0,(LPARAM)&memoryManagerInterface);
-
- // inject all APIs and hooks into the core
- return LoadDatabaseModule();
-}
-
-static int UnloadDatabase(int wasLoaded)
-{
- if ( !wasLoaded) return 0;
- UnloadDatabaseModule();
- return 0;
-}
-
-static int getFriendlyName( char * buf, size_t cch, int shortName )
-{
- strncpy(buf,shortName ? "Miranda database" : "Miranda database support",cch);
- return 0;
-}
-
-
-static DATABASELINK dblink = {
- sizeof(DATABASELINK),
- getCapability,
- getFriendlyName,
- makeDatabase,
- grokHeader,
- LoadDatabase,
- UnloadDatabase,
-};
-
-BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
-{
- g_hInst=hInstDLL;
- return TRUE;
-}
-
-__declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved)
-{
- return &dblink;
-}
-
-static PLUGININFO pluginInfo = {
- sizeof(PLUGININFO),
- "Miranda database - with AutoBackups",
- PLUGIN_MAKE_VERSION(0,5,2,1),
- "Provides Miranda database support: global settings, contacts, history, settings per contact.",
- "Miranda-IM project",
- "mail@scottellis.com.au",
- "Copyright 2000-2005 Miranda-IM project",
- "http://www.scottellis.com.au",
- 0,
- DEFMOD_DB
-};
-
-__declspec(dllexport) PLUGININFO * MirandaPluginInfo(DWORD mirandaVersion)
-{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,4,0,0) ) return NULL;
- return &pluginInfo;
-}
-
-int __declspec(dllexport) Load(PLUGINLINK * link)
-{
- return 1;
-}
-
-int __declspec(dllexport) Unload(void)
-{
- return 0;
-}
diff --git a/plugins/Alarms/timewindow.cpp b/plugins/Alarms/timewindow.cpp deleted file mode 100644 index fe98dd2ae3..0000000000 --- a/plugins/Alarms/timewindow.cpp +++ /dev/null @@ -1,420 +0,0 @@ -#include "timewindow.h"
-
-HDC hdc;
-HGLRC hglrc;
-
-HWND pluginwind = 0;
-int FrameId = 0;
-
-// Select the pixel format for a given device context
-BOOL SetDCPixelFormat(HDC hDC) {
- int nPixelFormat;
-
- static PIXELFORMATDESCRIPTOR pfd = {
- sizeof(PIXELFORMATDESCRIPTOR), // Size of this structure
- 1, // Version of this structure
-
- PFD_DRAW_TO_WINDOW | // Draw to window (not bitmap)
-
- PFD_SUPPORT_OPENGL | // Support OpenGL calls
- PFD_DOUBLEBUFFER, // Double-buffered mode
- PFD_TYPE_RGBA, // RGBA Color mode
- 24, // Want 24bit color
- 0,0,0,0,0,0, // Not used to select mode
- 0,0, // Not used to select mode
- 0,0,0,0,0, // Not used to select mode
- 32, // Size of depth buffer
- 0, // Not used to select mode
- 0, // Not used to select mode
- PFD_MAIN_PLANE, // Draw in main plane
- 0, // Not used to select mode
- 0,0,0
- }; // Not used to select mode
-
- // Choose a pixel format that best matches that described in pfd
- if((nPixelFormat = ChoosePixelFormat(hDC, &pfd)) == 0) {
- MessageBox(0, "ChoosePixelFormat failed", "Error", MB_OK);
- return FALSE;
- }
-
- // Set the pixel format for the device context
- if(SetPixelFormat(hDC, nPixelFormat, &pfd) == FALSE) {
- MessageBox(0, "SetPixelFormat failed", "Error", MB_OK);
- return FALSE;
- }
-
- return TRUE;
-}
-
-int InitGL() {
- // enable depth testing
- glEnable(GL_DEPTH_TEST);
-
- glClearColor(0, 0, 0, 0);
-
- glEnable(GL_SCISSOR_TEST);
-
- // back face culling
- //glEnable(GL_CULL_FACE);
-
- //glEnable(GL_LIGHTING);
-
- glShadeModel(GL_SMOOTH);
- //glShadeModel(GL_FLAT);
-
- glEnable(GL_SCISSOR_TEST);
- glClearColor(0.4151, 0.4151, 0.4151, 1);
-
- return 0;
-}
-
-int SizeGL(int width, int height) {
- if(width == 0 || height == 0) return 0;
-
- GLfloat n_range = 0.5, x_range, y_range;
-
- glViewport(0, 0, width, height);
- glScissor(0, 0, width, height);
-
- // prevent divide by zero
- if(width == 0) width = 1;
- if(height == 0) height = 1;
-
- // Establish clipping volume (left, right, bottom, top, near, far)
- if (width <= height) {
- x_range = n_range;
- y_range = n_range*height/width;
- } else {
- x_range = n_range*width/height;
- y_range = n_range;
- }
-
- // Reset projection matrix stack
- glMatrixMode(GL_PROJECTION);
- glLoadIdentity();
-
- glFrustum(-x_range, x_range, y_range, -y_range, n_range, 50 /*n_range * 100*/);
-
- glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
-
- return 0;
-}
-
-void drawSmallMinute() {
-
- GLfloat size = 0.08f;
-
- glBegin(GL_POLYGON);
- glColor3f(1, 1, 1);
- glVertex3f(-size, -0.5*size, 0);
- glVertex3f(-size, 0.5*size, 0);
- glVertex3f(size, 0.5*size, 0);
- glVertex3f(size, -0.5*size, 0);
- glEnd();
-}
-
-void drawLargeMinute() {
-
- GLfloat size = 0.08f;
-
- glBegin(GL_POLYGON);
- glColor3f(1, 1, 1);
- glVertex3f(-size, -1.25*size, 0);
- glVertex3f(-size, 1.25*size, 0);
- glVertex3f(size, 1.25*size, 0);
- glVertex3f(size, -1.25*size, 0);
- glEnd();
-}
-
-void drawHourHand() {
-
- glBegin(GL_POLYGON);
- glColor3f(0.7f, 0.7f, 0.85f);
- glVertex3f(0, 0, 0);
- glVertex3f(-0.1f, 0.8f*1.5f, 0);
- glVertex3f(0, 1.5f, 0);
- glVertex3f(0.1f, 0.8f*1.5f, 0);
- glEnd();
-}
-
-void drawMinuteHand() {
-
- glBegin(GL_POLYGON);
- glColor3f(0.7f, 0.85f, 0.7f);
- glVertex3f(0, 0, 0);
- glVertex3f(-0.15f, 0.8f*2.1f, 0);
- glVertex3f(0, 2.1f, 0);
- glVertex3f(0.15f, 0.8f*2.1f, 0);
- glEnd();
-}
-
-void drawSecondsHand() {
-
- glBegin(GL_POLYGON);
- glColor3f(0.85f, 0.7f, 0.7f);
- glVertex3f(-0.02f, 0, 0);
- glVertex3f(-0.02f, 2.1f, 0);
- glVertex3f(0.02f, 2.1f, 0);
- glVertex3f(0.02f, 0, 0);
- glEnd();
-}
-
-int RenderGL(HWND hwnd, HDC hdc) {
-
- SYSTEMTIME ctime;
- //GLfloat rot;
- //int i;
- char buf[512];
-
- GetLocalTime(&ctime);
-
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-
-
-
- glLoadIdentity();
- glTranslated(0, 0, -30);
-
- //gluLookAt(0, 0, 10, 0, 0, 0, 0, 1, 0);
- glPushMatrix();
-
-/*
- for (i=0;i<60;i++) {
- glPushMatrix();
- rot = (GLfloat)i/60*360;
- glRotatef(-rot, 0, 0, 1.0);
- glTranslatef(0, 2.2f, 0);
- if (i%5!=0) drawSmallMinute();
- else drawLargeMinute();
- glPopMatrix();
- }
-
- glPopMatrix();
-
- glPushMatrix();
- rot = (GLfloat)(ctime.wSecond)/60*360;
- glRotatef(-rot, 0, 0, 1.0);
- drawSecondsHand();
- glPopMatrix();
-
- glPushMatrix();
- rot = (GLfloat)(ctime.wMinute)/60*360 + (GLfloat)(ctime.wSecond)/300*360/12;
- glRotatef(-rot, 0, 0, 1.0);
- drawMinuteHand();
- glPopMatrix();
-
- glPushMatrix();
- rot = (GLfloat)(ctime.wHour%12)/12*360 + (GLfloat)(ctime.wMinute)/60*360/12;
- glRotatef(-rot, 0, 0, 1.0);
- drawHourHand();
-
- */
- GetLocalTime(&ctime);
- GetTimeFormat(LOCALE_USER_DEFAULT, 0, &ctime, 0, buf, 512);
- draw_string_centered(buf);
-
- glPopMatrix();
-
- SwapBuffers(hdc);
-
- return 0;
-}
-
-LRESULT CALLBACK FrameContainerWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
- switch(msg) {
- case WM_SIZE:
- {
- HWND child = (HWND)GetWindowLong(hwnd, GWL_USERDATA);
- RECT r;
- GetClientRect(hwnd, &r);
-
- //SetWindowPos(Frames[framepos].hWnd,HWND_TOP,0,DEFAULT_TITLEBAR_HEIGHT,width,height-DEFAULT_TITLEBAR_HEIGHT,SWP_SHOWWINDOW);
- SetWindowPos(child, HWND_TOP, r.left, r.top, r.right - r.left, r.bottom - r.top, SWP_SHOWWINDOW);
- }
- break;
- case WM_CLOSE:
- return 0;
- }
-
- return DefWindowProc(hwnd, msg, wParam, lParam);
-}
-
-LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {
- PAINTSTRUCT ps;
- RECT r;
- //HDC hdc;
-
- switch(msg) {
-
- case WM_CREATE:
- hdc = GetDC(hwnd);
-
- if(SetDCPixelFormat(hdc) == FALSE) {
- return FALSE;
- }
-
- hglrc = wglCreateContext(hdc);
-
- wglMakeCurrent(hdc, hglrc);
-
- GetClientRect(hwnd, &r);
-
- InitGL();
- SizeGL(r.right - r.left, r.bottom - r.top);
- wglMakeCurrent(hdc, NULL);
-
- SetTimer(hwnd, 1011, 20, 0);
-
- return 0;
-
- case WM_ERASEBKGND:
- //RenderGL(hwnd, hdc);
- return TRUE;
-
- case WM_PAINT:
- //ps.fErase = FALSE;
- if(BeginPaint(hwnd, &ps)) {
- glScissor(ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right - ps.rcPaint.left, ps.rcPaint.bottom - ps.rcPaint.left);
-
- wglMakeCurrent(hdc, hglrc);
-
- RenderGL(hwnd, hdc);
-
- wglMakeCurrent(hdc, NULL);
-
- EndPaint(hwnd, &ps);
- }
- //wglMakeCurrent(NULL, NULL);
- return 0;
-
- case WM_MOVE:
- case WM_SIZE:
- if(hdc) {
- wglMakeCurrent(hdc, hglrc);
-
- //SizeGL(LOWORD(lParam), HIWORD(lParam));
-
- GetClientRect(hwnd, &r);
- SizeGL(r.right - r.left, r.bottom - r.top);
-
- wglMakeCurrent(hdc, NULL);
- //RenderGL(hwnd, hdc);
-
- InvalidateRect(hwnd, 0, FALSE);
- }
-
- //return DefWindowProc(hwnd, msg, wParam, lParam);
- return TRUE;
-
- case WM_DESTROY:
- KillTimer(hwnd, 1011);
- hdc = GetDC(hwnd);
- wglMakeCurrent(hdc,NULL);
- wglDeleteContext(hglrc);
- ReleaseDC(hwnd, hdc);
-
- //DestroyWindow(hwnd);
- //return TRUE;
- break;
-
- case WM_TIMER:
- //RenderGL(hwnd, hdc);
- InvalidateRect(hwnd, 0, FALSE);
- return 0;
-
- };
-
- return DefWindowProc(hwnd, msg, wParam, lParam);
-}
-
-int CreateFrame(HWND parent)
-{
- WNDCLASS wndclass;
- wndclass.style = 0; //CS_PARENTDC | CS_HREDRAW | CS_VREDRAW;
- wndclass.lpfnWndProc = FrameWindowProc;
- wndclass.cbClsExtra = 0;
- wndclass.cbWndExtra = 0;
- wndclass.hInstance = hInst;
- wndclass.hIcon = NULL;
- wndclass.hCursor = LoadCursor (NULL, IDC_ARROW);
- wndclass.hbrBackground = 0; //(HBRUSH)(COLOR_3DFACE+1);
- wndclass.lpszMenuName = NULL;
- wndclass.lpszClassName = "TestFrame";
- RegisterClass(&wndclass);
-
- //HWND pluginwind = CreateWindow("TestFrame",Translate("Test"),
- // WS_BORDER | WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN,
- // 0,0,0,0, parent, NULL,hInst,NULL);
-
- if(ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) {
-
- pluginwind = CreateWindow("TestFrame",Translate("Test"),
- (WS_CHILD | WS_CLIPCHILDREN) & ~CS_VREDRAW & ~CS_HREDRAW,
- 0,0,100,100, parent, NULL,hInst,NULL);
-
- CLISTFrame Frame;
-
- memset(&Frame,0,sizeof(Frame));
- Frame.name=(char *)malloc(255);
- memset(Frame.name,0,255);
-
- strcpy(Frame.name,"TestFrame");
-
- Frame.cbSize=sizeof(CLISTFrame);
- Frame.hWnd=pluginwind;
- Frame.align=alBottom;
- Frame.Flags=F_VISIBLE|F_SHOWTB|F_SHOWTBTIP;
- Frame.height=30;
-
- FrameId=CallService(MS_CLIST_FRAMES_ADDFRAME,(WPARAM)&Frame,0);
-
- } else {
- wndclass.style = 0;//CS_HREDRAW | CS_VREDRAW;
- wndclass.lpfnWndProc = FrameContainerWindowProc;
- wndclass.cbClsExtra = 0;
- wndclass.cbWndExtra = 0;
- wndclass.hInstance = hInst;
- wndclass.hIcon = NULL;
- wndclass.hCursor = LoadCursor (NULL, IDC_ARROW);
- wndclass.hbrBackground = 0; //(HBRUSH)(COLOR_3DFACE+1);
- wndclass.lpszMenuName = NULL;
- wndclass.lpszClassName = "TestFrameContainer";
- RegisterClass(&wndclass);
-
- //pluginwind = CreateWindow(WS_EX_TOOLWINDOW, "TestFrame",Translate("Test"),
- // WS_POPUPWINDOW | WS_THICKFRAME | WS_VISIBLE | WS_CAPTION | WS_SYSMENU,
- // 0,0,100,100, parent, NULL,hInst,NULL);
-
- //ShowWindow(pluginwind, SW_SHOW);
- //UpdateWindow(pluginwind);
-
- HWND framewind = CreateWindowEx(WS_EX_TOOLWINDOW, "TestFrameContainer",Translate("Test"),
- WS_POPUPWINDOW | WS_THICKFRAME | WS_VISIBLE | WS_CAPTION,
- 0,0,100,100, parent, NULL,hInst,NULL);
-
- pluginwind = CreateWindow("TestFrame",Translate("Test"),
- WS_CHILD | WS_CLIPCHILDREN | WS_VISIBLE,
- 0,0,100,100, framewind, NULL,hInst,NULL);
-
- SetWindowLong(framewind, GWL_USERDATA, (LONG)pluginwind);
-
- ShowWindow(framewind, SW_SHOW);
- UpdateWindow(framewind);
- }
-
- return 0;
-}
-
-void InitFrame()
-{
- CreateFrame((HWND)CallService(MS_CLUI_GETHWND, 0, 0));
-}
-
-void DeinitFrame()
-{
- if(ServiceExists(MS_CLIST_FRAMES_REMOVEFRAME)) {
- CallService(MS_CLIST_FRAMES_REMOVEFRAME, (WPARAM)FrameId, 0);
- }
- DestroyWindow(pluginwind);
-}
diff --git a/plugins/Alarms/timewindow.h b/plugins/Alarms/timewindow.h deleted file mode 100644 index 12f7672b6e..0000000000 --- a/plugins/Alarms/timewindow.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef _TIMEWINDOW_INC
-#define _TIMEWINDOW_INC
-
-#include "common.h"
-
-#include <gl/gl.h>
-#include <gl/glu.h>
-#include "glyph.h"
-
-
-void InitFrame();
-void DeinitFrame();
-
-#endif
|