-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMirakelMonitorUtilities.h
More file actions
117 lines (102 loc) · 2.78 KB
/
MirakelMonitorUtilities.h
File metadata and controls
117 lines (102 loc) · 2.78 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#pragma once
#include <Windows.h>
#include "Windowsx.h"
#include <CommCtrl.h>
#include "CCOLDefines.h"
#include "DataGridView.h"
typedef enum MirakelColorsEnum
{
BRUSH_RED,
BRUSH_DARKRED,
BRUSH_GREEN,
BRUSH_DARKGREEN,
BRUSH_BLUE,
BRUSH_DARKBLUE,
BRUSH_YELLOW,
BRUSH_ORANGE,
BRUSH_MAGENTA,
BRUSH_TEAL,
BRUSH_WHITE,
BRUSH_BLACK,
BRUSH_GRAY,
BRUSH_LIGHTGRAY,
BRUSH_LIGHTBLUE,
BRUSH_DARKGRAY,
BRUSH_NULL,
BRUSH_MAX
};
/* Defines voor aanmaken Debug entries */
/* Volgorde niet wijzigen ivw followTab */
#define Fase 0
#define Detector 1
#define Counter 2
#define Timer 3
#define Ingang 4
#define Uitgang 5
#define Hulpelement 6
#define Schakelaar 7
#define Parameter 8
#define Memoryelem 9
#define Typenmax 10
typedef struct tracerlayoutstruct
{
int timestep; // pixels per stape in de tijd
int timeline; // per hoeveel eenheden tijd staat een lijn
int fc_height; // hoogte per fase/element
int cg_height; // hoogte voor weergave fase status
int rs_height; // hoogte voor weergave realisatie status
int pad_left; // padding left
int pad_right; // padding right
int pad_top; // padding top
int pad_bottom; // padding bottom
int rv_line_top; // hoogte vanaf top van deze fase tot bovenkant weergave RV[]
int rv_line_bottom; // hoogte tot onderkant weergave RV[] streep: bepaalt samen de dikte
int text_top; // plaatsing van de tijd label boven de balken
} TRACERLAYOUT;
#define TRACERBUFFERSIZE 3600
#define TRACES_MAX 25
#define tracerzoom_SEC 10
#define tracerzoom_TSEC 1
#define tracerzoom_HSEC 5
struct tracerstruct {
char type;
int elem;
char log[TRACERBUFFERSIZE][2];
int place;
HWND delwin;
HWND upwin;
HWND downwin;
};
typedef struct tracerstruct TRACERSTRUCT;
extern HBRUSH hBrushMirakel[BRUSH_MAX];
extern HBRUSH hBrushCG[_CG_MAX + 1];
extern HPEN hPenMirakel[BRUSH_MAX];
extern HPEN hPenCG[_CG_MAX + 1];
extern HWND hMainTab;
extern HINSTANCE hMainInstance;
extern int iCharWidth, iCharHeight;
extern COLORREF greenprtext;
extern COLORREF greenartext;
extern COLORREF redtext;
extern COLORREF whitetext;
extern COLORREF blacktext;
#define SZBUFFERSIZE 128
extern char lpszTemp1[SZBUFFERSIZE];
void Initialize(HWND hWnd);
void CreateBrushes();
HWND CreateTabDisplayWindow(HWND hwndTab, HINSTANCE hInstance, char * pcClassName, WNDPROC wProc);
ATOM RegisterSomeClass(HINSTANCE hInstance, char * className, WNDPROC proc);
HTREEITEM AddItemToTree(HWND hwndTV, LPTSTR lpszItem, HTREEITEM hParent, int num);
#define MIRMSG_TABCHANGE WM_USER + 0x13
/* Parser plus controls */
#define PPEDIT 10090
#define PPLOG 10091
/* Tracer buttons */
#define BUTTONDELTRACE 10101
#define BUTTONTRACEUP 10102
#define BUTTONTRACEDOWN 10103
#define BUTTONLOGZOOMIN 10104
#define BUTTONLOGZOOMSW 10105
#define BUTTONLOGZOOMUIT 10106
#define DEBUGCOMBOTYPE 10107
#define DEBUGCOMBOELEM 10108