-
Notifications
You must be signed in to change notification settings - Fork 0
/
AxumCRMFrm_2.h
213 lines (211 loc) · 6.35 KB
/
AxumCRMFrm_2.h
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
//---------------------------------------------------------------------------
#ifndef AxumCRMFrm2H
#define AxumCRMFrm2H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "AnalogClock.h"
#include "MeterPanel.h"
#include <Graphics.hpp>
#include "GradientFill.h"
#include <Menus.hpp>
#include "ExtendedPanel.h"
#include "VUMeter.h"
#include "BitmapButton.h"
#include <ScktComp.hpp>
#include "EQPanel.h"
#include "PhaseMeter.h"
#include <jpeg.hpp>
#include "libpq-fe.h"
#include "FaderPanel.h"
#include "MambaNetFrm.h"
#include "Knob.h"
#include "ATImage.hpp"
#define MBN_VARARG
#include "mbn.h"
#include "axum_form.h"
#include "MambaNetFrm.h"
//---------------------------------------------------------------------------
class TAxumCRMForm_2 : public TMambaNetForm
{
__published: // IDE-managed Components
TATImage *SmallOffImage;
TATImage *SmallRedImage;
TATImage *SmallGreenImage;
TATImage *SmallYellowImage;
TATImage *Switch1Image;
TATImage *Switch3Image;
TATImage *Switch2Image;
TATImage *Switch4Image;
TLabel *Encoder_Up;
TLabel *Encoder_Down;
TLabel *Encoder_Reset;
TATImage *LedOffImage;
TATImage *LedGreenImage;
TATImage *LedRedImage;
TATImage *Led1Image;
TATImage *Led2Image;
TATImage *Led3Image;
TATImage *Led4Image;
TATImage *Led5Image;
TATImage *Led6Image;
TATImage *Led7Image;
TATImage *Switch5Image;
TATImage *Switch6Image;
TATImage *Switch7Image;
TATImage *Switch8Image;
TATImage *Switch12Image;
TATImage *Switch11Image;
TATImage *Switch10Image;
TATImage *Switch9Image;
TATImage *Switch13Image;
TATImage *Switch14Image;
TATImage *Switch15Image;
TATImage *Switch16Image;
TATImage *Switch17Image;
TATImage *Switch18Image;
TATImage *Switch19Image;
TATImage *Switch20Image;
TATImage *Switch21Image;
TATImage *Switch22Image;
TATImage *Switch23Image;
TATImage *Switch24Image;
TATImage *Switch37Image;
TATImage *Switch38Image;
TATImage *Switch40Image;
TATImage *Switch39Image;
TATImage *Switch26Image;
TATImage *Switch25Image;
TATImage *Switch42Image;
TATImage *Switch41Image;
TATImage *Switch28Image;
TATImage *Switch27Image;
TATImage *Switch44Image;
TATImage *Switch43Image;
TATImage *Switch30Image;
TATImage *Switch29Image;
TATImage *Switch46Image;
TATImage *Switch45Image;
TATImage *Switch32Image;
TATImage *Switch31Image;
TATImage *Switch48Image;
TATImage *Switch47Image;
TATImage *Switch34Image;
TATImage *Switch33Image;
TATImage *Switch35Image;
TATImage *Switch36Image;
TATImage *Switch49Image;
TATImage *Switch50Image;
TATImage *Switch51Image;
TATImage *Switch52Image;
TATImage *Switch53Image;
TATImage *Switch54Image;
TKnob *PotentioMeter1Knob;
TKnob *PotentioMeter2Knob;
TKnob *PotentioMeter3Knob;
TKnob *PotentioMeter4Knob;
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TLabel *Label4;
TLabel *Label5;
TLabel *Label6;
TLabel *Label7;
TLabel *Label8;
TLabel *Label9;
TLabel *Label10;
TLabel *Label11;
TLabel *Label12;
TLabel *Label13;
TLabel *Label14;
TLabel *Label15;
TLabel *Label16;
TLabel *Label17;
TLabel *Label18;
TLabel *Label19;
TLabel *Label20;
TLabel *Label21;
TLabel *Label22;
TLabel *Label23;
TLabel *Label24;
TLabel *Label37;
TLabel *Label38;
TLabel *Label25;
TLabel *Label26;
TLabel *Label39;
TLabel *Label40;
TLabel *Label27;
TLabel *Label28;
TLabel *Label41;
TLabel *Label42;
TLabel *Label29;
TLabel *Label30;
TLabel *Label43;
TLabel *Label44;
TLabel *Label31;
TLabel *Label32;
TLabel *Label45;
TLabel *Label46;
TLabel *Label33;
TLabel *Label34;
TLabel *Label47;
TLabel *Label48;
TLabel *Label35;
TLabel *Label36;
TLabel *Label49;
TLabel *Label50;
TLabel *Label51;
TLabel *Label53;
TLabel *Label54;
TLabel *Label52;
TATImage *AxumCRMBackgroundATImage;
TPaintBox *ChipcardPaintBox;
void __fastcall SwitchMouseDown(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall SwitchMouseUp(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall Encoder_DownMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall Encoder_UpMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall Encoder_ResetMouseDown(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall Encoder_ResetMouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y);
void __fastcall PotentioMeter1KnobMouseMove(TObject *Sender,
TShiftState Shift, int X, int Y);
void __fastcall FormResize(TObject *Sender);
void __fastcall LabelMouseDown(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall LabelMouseUp(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y);
void __fastcall ChipcardPaintBoxClick(TObject *Sender);
void __fastcall Encoder_UpDblClick(TObject *Sender);
void __fastcall Encoder_DownDblClick(TObject *Sender);
private: // User declarations
TPicture *GetSmallSwitchPicture(unsigned char Color);
void UpdateSwitch(unsigned char SwitchNr);
int SmallSwitchFontSize;
bool LoginBySoftware;
public: // User declarations
unsigned char SwitchState[54];
unsigned char OnColor[54];
unsigned char OffColor[54];
__fastcall TAxumCRMForm_2(TComponent* Owner, char *url, char *port, char TCP, form_node_info *node_info);
__fastcall ~TAxumCRMForm_2();
void MambaNetError(int code, char *msg);
void MambaNetOnlineStatus(unsigned long addr, char valid);
int MambaNetSetActuatorData(unsigned short object, union mbn_data data);
void ConfigurationInformation(unsigned short object, char func_type, int func_seq, int func_nr, char *Label, char *Description);
void StartCommunication();
void CalculateFontSizes();
void PrintLabels(TCanvas *Canvas, float *xMm, float *yMm, float xPixelPerMm, float yPixelPerMm, float PageWidthMm, float PageHeightMm);
bool PrintLabelsAvailable();
};
//---------------------------------------------------------------------------
extern PACKAGE TAxumCRMForm_2 *AxumCRMForm_2;
//---------------------------------------------------------------------------
#endif