1CPWindow4::CPWindow4(
void) {
4 SetClass(lxT(
"CPWindow"));
5 SetName(lxT(
"window4"));
15 SetTitle(lxT(
"PICSimLab - Oscilloscope"));
16 SetOverrideRedirect(0);
17 EvOnCreate = EVONCREATE & CPWindow4::_EvOnCreate;
18 EvOnDestroy = EVONDESTROY & CPWindow4::_EvOnDestroy;
19 EvOnShow = EVONSHOW & CPWindow4::_EvOnShow;
20 EvOnHide = EVONHIDE & CPWindow4::_EvOnHide;
22 draw1.SetFOwner(
this);
23 draw1.SetClass(lxT(
"CDraw"));
24 draw1.SetName(lxT(
"draw1"));
30 draw1.SetHint(lxT(
""));
33 draw1.SetPopupMenu(NULL);
34 draw1.EvMouseButtonClick = EVMOUSEBUTTONCLICK & CPWindow4::draw1_EvMouseButtonClick;
35 draw1.SetTransparent(0);
36 draw1.SetImgFileName(lxT(
""));
39 spind1.SetFOwner(
this);
40 spind1.SetClass(lxT(
"CSpind"));
41 spind1.SetName(lxT(
"spind1"));
47 spind1.SetHint(lxT(
""));
50 spind1.SetPopupMenu(NULL);
51 spind1.SetValue(2.000000);
52 spind1.SetMin(0.100000);
53 spind1.SetMax(100.000000);
54 spind1.SetInc(0.010000);
58 spind2.SetFOwner(
this);
59 spind2.SetClass(lxT(
"CSpind"));
60 spind2.SetName(lxT(
"spind2"));
66 spind2.SetHint(lxT(
""));
69 spind2.SetPopupMenu(NULL);
70 spind2.SetValue(0.000000);
71 spind2.SetMin(-100.000000);
72 spind2.SetMax(100.000000);
73 spind2.SetInc(0.010000);
77 spind3.SetFOwner(
this);
78 spind3.SetClass(lxT(
"CSpind"));
79 spind3.SetName(lxT(
"spind3"));
85 spind3.SetHint(lxT(
""));
88 spind3.SetPopupMenu(NULL);
89 spind3.SetValue(2.000000);
90 spind3.SetMin(0.100000);
91 spind3.SetMax(100.000000);
92 spind3.SetInc(0.010000);
96 spind4.SetFOwner(
this);
97 spind4.SetClass(lxT(
"CSpind"));
98 spind4.SetName(lxT(
"spind4"));
102 spind4.SetWidth(150);
103 spind4.SetHeight(34);
104 spind4.SetHint(lxT(
""));
106 spind4.SetVisible(1);
107 spind4.SetPopupMenu(NULL);
108 spind4.SetValue(0.000000);
109 spind4.SetMin(-100.000000);
110 spind4.SetMax(100.000000);
111 spind4.SetInc(0.010000);
113 CreateChild(&spind4);
115 spind5.SetFOwner(
this);
116 spind5.SetClass(lxT(
"CSpind"));
117 spind5.SetName(lxT(
"spind5"));
121 spind5.SetWidth(150);
122 spind5.SetHeight(34);
123 spind5.SetHint(lxT(
""));
125 spind5.SetVisible(1);
126 spind5.SetPopupMenu(NULL);
127 spind5.SetValue(10.000000);
128 spind5.SetMin(0.001000);
129 spind5.SetMax(1000.000000);
130 spind5.SetInc(0.001000);
132 spind5.EvOnChangeSpinDouble = EVONCHANGESPINDOUBLE & CPWindow4::spind5_EvOnChangeSpinDouble;
133 CreateChild(&spind5);
135 spind6.SetFOwner(
this);
136 spind6.SetClass(lxT(
"CSpind"));
137 spind6.SetName(lxT(
"spind6"));
141 spind6.SetWidth(150);
142 spind6.SetHeight(34);
143 spind6.SetHint(lxT(
""));
145 spind6.SetVisible(1);
146 spind6.SetPopupMenu(NULL);
147 spind6.SetValue(0.000000);
148 spind6.SetMin(-100.000000);
149 spind6.SetMax(100.000000);
150 spind6.SetInc(0.001000);
152 spind6.EvOnChangeSpinDouble = EVONCHANGESPINDOUBLE & CPWindow4::spind6_EvOnChangeSpinDouble;
153 CreateChild(&spind6);
155 togglebutton1.SetFOwner(
this);
156 togglebutton1.SetClass(lxT(
"CToggleButton"));
157 togglebutton1.SetName(lxT(
"togglebutton1"));
158 togglebutton1.SetTag(0);
159 togglebutton1.SetX(510);
160 togglebutton1.SetY(162);
161 togglebutton1.SetWidth(150);
162 togglebutton1.SetHeight(32);
163 togglebutton1.SetHint(lxT(
""));
164 togglebutton1.SetEnable(1);
165 togglebutton1.SetVisible(1);
166 togglebutton1.SetPopupMenu(NULL);
167 togglebutton1.SetText(lxT(
"On"));
168 togglebutton1.SetCheck(1);
169 CreateChild(&togglebutton1);
171 button1.SetFOwner(
this);
172 button1.SetClass(lxT(
"CButton"));
173 button1.SetName(lxT(
"button1"));
177 button1.SetWidth(150);
178 button1.SetHeight(32);
179 button1.SetHint(lxT(
""));
180 button1.SetEnable(1);
181 button1.SetVisible(1);
182 button1.SetPopupMenu(NULL);
183 button1.EvMouseButtonClick = EVMOUSEBUTTONCLICK & CPWindow4::button1_EvMouseButtonClick;
184 button1.SetText(lxT(
"Color"));
185 CreateChild(&button1);
187 togglebutton2.SetFOwner(
this);
188 togglebutton2.SetClass(lxT(
"CToggleButton"));
189 togglebutton2.SetName(lxT(
"togglebutton2"));
190 togglebutton2.SetTag(0);
191 togglebutton2.SetX(665);
192 togglebutton2.SetY(162);
193 togglebutton2.SetWidth(150);
194 togglebutton2.SetHeight(32);
195 togglebutton2.SetHint(lxT(
""));
196 togglebutton2.SetEnable(1);
197 togglebutton2.SetVisible(1);
198 togglebutton2.SetPopupMenu(NULL);
199 togglebutton2.SetText(lxT(
"On"));
200 togglebutton2.SetCheck(1);
201 CreateChild(&togglebutton2);
203 button2.SetFOwner(
this);
204 button2.SetClass(lxT(
"CButton"));
205 button2.SetName(lxT(
"button2"));
209 button2.SetWidth(150);
210 button2.SetHeight(32);
211 button2.SetHint(lxT(
""));
212 button2.SetEnable(1);
213 button2.SetVisible(1);
214 button2.SetPopupMenu(NULL);
215 button2.EvMouseButtonClick = EVMOUSEBUTTONCLICK & CPWindow4::button2_EvMouseButtonClick;
216 button2.SetText(lxT(
"Color"));
217 CreateChild(&button2);
219 togglebutton3.SetFOwner(
this);
220 togglebutton3.SetClass(lxT(
"CToggleButton"));
221 togglebutton3.SetName(lxT(
"togglebutton3"));
222 togglebutton3.SetTag(0);
223 togglebutton3.SetX(510);
224 togglebutton3.SetY(234);
225 togglebutton3.SetWidth(150);
226 togglebutton3.SetHeight(32);
227 togglebutton3.SetHint(lxT(
""));
228 togglebutton3.SetEnable(1);
229 togglebutton3.SetVisible(1);
230 togglebutton3.SetPopupMenu(NULL);
231 togglebutton3.SetText(lxT(
"Inv"));
232 togglebutton3.SetCheck(0);
233 CreateChild(&togglebutton3);
235 togglebutton4.SetFOwner(
this);
236 togglebutton4.SetClass(lxT(
"CToggleButton"));
237 togglebutton4.SetName(lxT(
"togglebutton4"));
238 togglebutton4.SetTag(0);
239 togglebutton4.SetX(665);
240 togglebutton4.SetY(234);
241 togglebutton4.SetWidth(150);
242 togglebutton4.SetHeight(32);
243 togglebutton4.SetHint(lxT(
""));
244 togglebutton4.SetEnable(1);
245 togglebutton4.SetVisible(1);
246 togglebutton4.SetPopupMenu(NULL);
247 togglebutton4.SetText(lxT(
"Inv"));
248 togglebutton4.SetCheck(0);
249 CreateChild(&togglebutton4);
251 colordialog1.SetFOwner(
this);
252 colordialog1.SetClass(lxT(
"CColorDialog"));
253 colordialog1.SetName(lxT(
"colordialog1"));
254 colordialog1.SetTag(0);
255 colordialog1.SetColorName(lxT(
"red"));
256 colordialog1.EvOnClose = EVONCLOSE & CPWindow4::colordialog1_EvOnClose;
257 CreateChild(&colordialog1);
259 togglebutton5.SetFOwner(
this);
260 togglebutton5.SetClass(lxT(
"CToggleButton"));
261 togglebutton5.SetName(lxT(
"togglebutton5"));
262 togglebutton5.SetTag(0);
263 togglebutton5.SetX(822);
264 togglebutton5.SetY(186);
265 togglebutton5.SetWidth(150);
266 togglebutton5.SetHeight(32);
267 togglebutton5.SetHint(lxT(
""));
268 togglebutton5.SetEnable(1);
269 togglebutton5.SetVisible(1);
270 togglebutton5.SetPopupMenu(NULL);
271 togglebutton5.SetText(lxT(
"Trigger"));
272 togglebutton5.SetCheck(1);
273 togglebutton5.EvOnToggleButton = EVONTOGGLEBUTTON & CPWindow4::togglebutton5_EvOnToggleButton;
274 CreateChild(&togglebutton5);
276 spind7.SetFOwner(
this);
277 spind7.SetClass(lxT(
"CSpind"));
278 spind7.SetName(lxT(
"spind7"));
282 spind7.SetWidth(150);
283 spind7.SetHeight(34);
284 spind7.SetHint(lxT(
""));
286 spind7.SetVisible(1);
287 spind7.SetPopupMenu(NULL);
288 spind7.SetValue(2.500000);
289 spind7.SetMin(-100.000000);
290 spind7.SetMax(100.000000);
291 spind7.SetInc(0.010000);
293 spind7.EvOnChangeSpinDouble = EVONCHANGESPINDOUBLE & CPWindow4::spind7_EvOnChangeSpinDouble;
294 CreateChild(&spind7);
296 combo1.SetFOwner(
this);
297 combo1.SetClass(lxT(
"CCombo"));
298 combo1.SetName(lxT(
"combo1"));
302 combo1.SetWidth(150);
303 combo1.SetHeight(32);
304 combo1.SetHint(lxT(
""));
306 combo1.SetVisible(1);
307 combo1.SetPopupMenu(NULL);
308 combo1.SetItems(lxT(
"1,2,"));
309 combo1.SetText(lxT(
"1"));
310 combo1.SetReadOnly(0);
311 CreateChild(&combo1);
313 timer1.SetFOwner(
this);
314 timer1.SetClass(lxT(
"CTimer"));
315 timer1.SetName(lxT(
"timer1"));
317 timer1.SetTime(BASETIMER);
318 timer1.SetRunState(0);
319 timer1.EvOnTime = EVONTIME & CPWindow4::timer1_EvOnTime;
320 CreateChild(&timer1);
322 combo2.SetFOwner(
this);
323 combo2.SetClass(lxT(
"CCombo"));
324 combo2.SetName(lxT(
"combo2"));
328 combo2.SetWidth(200);
329 combo2.SetHeight(32);
330 combo2.SetHint(lxT(
""));
332 combo2.SetVisible(1);
333 combo2.SetPopupMenu(NULL);
334 combo2.SetItems(lxT(
""));
335 combo2.SetText(lxT(
"1"));
336 combo2.SetReadOnly(0);
337 combo2.EvOnComboChange = EVONCOMBOCHANGE & CPWindow4::combo2_EvOnComboChange;
338 CreateChild(&combo2);
340 combo3.SetFOwner(
this);
341 combo3.SetClass(lxT(
"CCombo"));
342 combo3.SetName(lxT(
"combo3"));
346 combo3.SetWidth(200);
347 combo3.SetHeight(32);
348 combo3.SetHint(lxT(
""));
350 combo3.SetVisible(1);
351 combo3.SetPopupMenu(NULL);
352 combo3.SetItems(lxT(
""));
353 combo3.SetText(lxT(
"2"));
354 combo3.SetReadOnly(0);
355 combo3.EvOnComboChange = EVONCOMBOCHANGE & CPWindow4::combo3_EvOnComboChange;
356 CreateChild(&combo3);
358 label1.SetFOwner(
this);
359 label1.SetClass(lxT(
"CLabel"));
360 label1.SetName(lxT(
"label1"));
365 label1.SetHeight(20);
366 label1.SetHint(lxT(
""));
368 label1.SetVisible(1);
369 label1.SetPopupMenu(NULL);
370 label1.SetText(lxT(
"Ch 1 (V/div)"));
372 CreateChild(&label1);
374 label2.SetFOwner(
this);
375 label2.SetClass(lxT(
"CLabel"));
376 label2.SetName(lxT(
"label2"));
381 label2.SetHeight(20);
382 label2.SetHint(lxT(
""));
384 label2.SetVisible(1);
385 label2.SetPopupMenu(NULL);
386 label2.SetText(lxT(
"Ch 2 (V/div)"));
388 CreateChild(&label2);
390 label3.SetFOwner(
this);
391 label3.SetClass(lxT(
"CLabel"));
392 label3.SetName(lxT(
"label3"));
396 label3.SetWidth(119);
397 label3.SetHeight(20);
398 label3.SetHint(lxT(
""));
400 label3.SetVisible(1);
401 label3.SetPopupMenu(NULL);
402 label3.SetText(lxT(
"Trigger On/Off"));
404 CreateChild(&label3);
406 label4.SetFOwner(
this);
407 label4.SetClass(lxT(
"CLabel"));
408 label4.SetName(lxT(
"label4"));
412 label4.SetWidth(104);
413 label4.SetHeight(20);
414 label4.SetHint(lxT(
""));
416 label4.SetVisible(1);
417 label4.SetPopupMenu(NULL);
418 label4.SetText(lxT(
"Time (ms/div)"));
420 CreateChild(&label4);
422 label5.SetFOwner(
this);
423 label5.SetClass(lxT(
"CLabel"));
424 label5.SetName(lxT(
"label5"));
428 label5.SetWidth(100);
429 label5.SetHeight(20);
430 label5.SetHint(lxT(
""));
432 label5.SetVisible(1);
433 label5.SetPopupMenu(NULL);
434 label5.SetText(lxT(
"Time off. (ms)"));
436 CreateChild(&label5);
438 label6.SetFOwner(
this);
439 label6.SetClass(lxT(
"CLabel"));
440 label6.SetName(lxT(
"label6"));
444 label6.SetWidth(122);
445 label6.SetHeight(20);
446 label6.SetHint(lxT(
""));
448 label6.SetVisible(1);
449 label6.SetPopupMenu(NULL);
450 label6.SetText(lxT(
"Trigger channel"));
452 CreateChild(&label6);
454 label7.SetFOwner(
this);
455 label7.SetClass(lxT(
"CLabel"));
456 label7.SetName(lxT(
"label7"));
460 label7.SetWidth(128);
461 label7.SetHeight(20);
462 label7.SetHint(lxT(
""));
464 label7.SetVisible(1);
465 label7.SetPopupMenu(NULL);
466 label7.SetText(lxT(
"Trigger level (V)"));
468 CreateChild(&label7);
470 label8.SetFOwner(
this);
471 label8.SetClass(lxT(
"CLabel"));
472 label8.SetName(lxT(
"label8"));
477 label8.SetHeight(20);
478 label8.SetHint(lxT(
""));
480 label8.SetVisible(1);
481 label8.SetPopupMenu(NULL);
482 label8.SetText(lxT(
"Ch 1 off. (V)"));
484 CreateChild(&label8);
486 label9.SetFOwner(
this);
487 label9.SetClass(lxT(
"CLabel"));
488 label9.SetName(lxT(
"label9"));
493 label9.SetHeight(20);
494 label9.SetHint(lxT(
""));
496 label9.SetVisible(1);
497 label9.SetPopupMenu(NULL);
498 label9.SetText(lxT(
"Ch 2 off. (V)"));
500 CreateChild(&label9);
502 label10.SetFOwner(
this);
503 label10.SetClass(lxT(
"CLabel"));
504 label10.SetName(lxT(
"label10"));
508 label10.SetWidth(45);
509 label10.SetHeight(20);
510 label10.SetHint(lxT(
""));
511 label10.SetEnable(1);
512 label10.SetVisible(1);
513 label10.SetPopupMenu(NULL);
514 label10.SetText(lxT(
"Ch 1"));
516 CreateChild(&label10);
518 label11.SetFOwner(
this);
519 label11.SetClass(lxT(
"CLabel"));
520 label11.SetName(lxT(
"label11"));
524 label11.SetWidth(42);
525 label11.SetHeight(20);
526 label11.SetHint(lxT(
""));
527 label11.SetEnable(1);
528 label11.SetVisible(1);
529 label11.SetPopupMenu(NULL);
530 label11.SetText(lxT(
"Ch 2"));
532 CreateChild(&label11);
534 button3.SetFOwner(
this);
535 button3.SetClass(lxT(
"CButton"));
536 button3.SetName(lxT(
"button3"));
540 button3.SetWidth(150);
541 button3.SetHeight(32);
542 button3.SetHint(lxT(
""));
543 button3.SetEnable(1);
544 button3.SetVisible(1);
545 button3.SetPopupMenu(NULL);
546 button3.EvMouseButtonClick = EVMOUSEBUTTONCLICK & CPWindow4::button3_EvMouseButtonClick;
547 button3.SetText(lxT(
"Autoset"));
548 CreateChild(&button3);
550 togglebutton6.SetFOwner(
this);
551 togglebutton6.SetClass(lxT(
"CToggleButton"));
552 togglebutton6.SetName(lxT(
"togglebutton6"));
553 togglebutton6.SetTag(0);
554 togglebutton6.SetX(665);
555 togglebutton6.SetY(7);
556 togglebutton6.SetWidth(150);
557 togglebutton6.SetHeight(32);
558 togglebutton6.SetHint(lxT(
""));
559 togglebutton6.SetEnable(1);
560 togglebutton6.SetVisible(1);
561 togglebutton6.SetPopupMenu(NULL);
562 togglebutton6.SetText(lxT(
"Stop"));
563 togglebutton6.SetCheck(0);
564 togglebutton6.EvOnToggleButton = EVONTOGGLEBUTTON & CPWindow4::togglebutton6_EvOnToggleButton;
565 CreateChild(&togglebutton6);
567 togglebutton7.SetFOwner(
this);
568 togglebutton7.SetClass(lxT(
"CToggleButton"));
569 togglebutton7.SetName(lxT(
"togglebutton7"));
570 togglebutton7.SetTag(0);
571 togglebutton7.SetX(822);
572 togglebutton7.SetY(7);
573 togglebutton7.SetWidth(150);
574 togglebutton7.SetHeight(32);
575 togglebutton7.SetHint(lxT(
""));
576 togglebutton7.SetEnable(1);
577 togglebutton7.SetVisible(1);
578 togglebutton7.SetPopupMenu(NULL);
579 togglebutton7.SetText(lxT(
"Single"));
580 togglebutton7.SetCheck(0);
581 CreateChild(&togglebutton7);
583 button4.SetFOwner(
this);
584 button4.SetClass(lxT(
"CButton"));
585 button4.SetName(lxT(
"button4"));
589 button4.SetWidth(150);
590 button4.SetHeight(32);
591 button4.SetHint(lxT(
""));
592 button4.SetEnable(1);
593 button4.SetVisible(1);
594 button4.SetPopupMenu(NULL);
595 button4.EvMouseButtonClick = EVMOUSEBUTTONCLICK & CPWindow4::button4_EvMouseButtonClick;
596 button4.SetText(lxT(
"Save Png"));
597 CreateChild(&button4);
599 filedialog1.SetFOwner(
this);
600 filedialog1.SetClass(lxT(
"CFileDialog"));
601 filedialog1.SetName(lxT(
"filedialog1"));
602 filedialog1.SetTag(0);
603 filedialog1.SetFileName(lxT(
"untitled.png"));
604 filedialog1.SetFilter(lxT(
"PNG Files (*.png)|*.png"));
605 filedialog1.SetType(129);
606 filedialog1.EvOnClose = EVONCLOSE & CPWindow4::filedialog1_EvOnClose;
607 CreateChild(&filedialog1);
609 button5.SetFOwner(
this);
610 button5.SetClass(lxT(
"CButton"));
611 button5.SetName(lxT(
"button5"));
615 button5.SetWidth(30);
616 button5.SetHeight(20);
617 button5.SetHint(lxT(
""));
618 button5.SetEnable(1);
619 button5.SetVisible(1);
620 button5.SetColor(lxT(
"#000001"));
621 button5.SetPopupMenu(NULL);
622 button5.EvMouseButtonPress = EVMOUSEBUTTONPRESS & CPWindow4::button5_EvMouseButtonPress;
623 button5.SetText(lxT(
""));
624 CreateChild(&button5);
626 button6.SetFOwner(
this);
627 button6.SetClass(lxT(
"CButton"));
628 button6.SetName(lxT(
"button6"));
632 button6.SetWidth(30);
633 button6.SetHeight(20);
634 button6.SetHint(lxT(
""));
635 button6.SetEnable(1);
636 button6.SetVisible(1);
637 button6.SetColor(lxT(
"#000001"));
638 button6.SetPopupMenu(NULL);
639 button6.EvMouseButtonPress = EVMOUSEBUTTONPRESS & CPWindow4::button6_EvMouseButtonPress;
640 button6.SetText(lxT(
""));
641 CreateChild(&button6);
643 button7.SetFOwner(
this);
644 button7.SetClass(lxT(
"CButton"));
645 button7.SetName(lxT(
"button7"));
649 button7.SetWidth(30);
650 button7.SetHeight(20);
651 button7.SetHint(lxT(
""));
652 button7.SetEnable(1);
653 button7.SetVisible(1);
654 button7.SetColor(lxT(
"#000001"));
655 button7.SetPopupMenu(NULL);
656 button7.EvMouseButtonPress = EVMOUSEBUTTONPRESS & CPWindow4::button7_EvMouseButtonPress;
657 button7.SetText(lxT(
""));
658 CreateChild(&button7);
660 button8.SetFOwner(
this);
661 button8.SetClass(lxT(
"CButton"));
662 button8.SetName(lxT(
"button8"));
666 button8.SetWidth(30);
667 button8.SetHeight(20);
668 button8.SetHint(lxT(
""));
669 button8.SetEnable(1);
670 button8.SetVisible(1);
671 button8.SetColor(lxT(
"#000001"));
672 button8.SetPopupMenu(NULL);
673 button8.EvMouseButtonPress = EVMOUSEBUTTONPRESS & CPWindow4::button8_EvMouseButtonPress;
674 button8.SetText(lxT(
""));
675 CreateChild(&button8);
677 button9.SetFOwner(
this);
678 button9.SetClass(lxT(
"CButton"));
679 button9.SetName(lxT(
"button9"));
683 button9.SetWidth(30);
684 button9.SetHeight(20);
685 button9.SetHint(lxT(
""));
686 button9.SetEnable(1);
687 button9.SetVisible(1);
688 button9.SetColor(lxT(
"#000001"));
689 button9.SetPopupMenu(NULL);
690 button9.EvMouseButtonPress = EVMOUSEBUTTONPRESS & CPWindow4::button9_EvMouseButtonPress;
691 button9.SetText(lxT(
""));
692 CreateChild(&button9);
695 button1.SetColor(255, 0, 0);
696 button2.SetColor(0, 255, 0);