PICSimLab - Programmable IC Simulator Laboratory 0.9.2
PICSimLab - API
Loading...
Searching...
No Matches
picsimlab4.h
1/* ########################################################################
2
3 PICSimLab - Programmable IC Simulator Laboratory
4
5 ########################################################################
6
7 Copyright (c) : 2010-2024 Luis Claudio GambĂ´a Lopes <lcgamboa@yahoo.com>
8
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
12 any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
23 For e-mail suggestions : lcgamboa@yahoo.com
24 ######################################################################## */
25
26#ifndef CPWINDOW4
27#define CPWINDOW4
28
29#include <lxrad.h>
30#include <picsim/picsim.h>
31#include "lib/types.h"
32
38class CPWindow4 : public CPWindow {
39public:
40 // lxrad automatic generated block start, don't edit below!
41 /*#Controls*/
42 CDraw draw1;
43 CSpind spind1;
44 CSpind spind2;
45 CSpind spind3;
46 CSpind spind4;
47 CSpind spind5;
48 CSpind spind6;
49 CToggleButton togglebutton1;
50 CButton button1;
51 CToggleButton togglebutton2;
52 CButton button2;
53 CToggleButton togglebutton3;
54 CToggleButton togglebutton4;
55 CColorDialog colordialog1;
56 CToggleButton togglebutton5;
57 CSpind spind7;
58 CCombo combo1;
59 CTimer timer1;
60 CCombo combo2;
61 CCombo combo3;
62 CLabel label1;
63 CLabel label2;
64 CLabel label3;
65 CLabel label4;
66 CLabel label5;
67 CLabel label6;
68 CLabel label7;
69 CLabel label8;
70 CLabel label9;
71 CLabel label10;
72 CLabel label11;
73 CButton button3;
74 CToggleButton togglebutton6;
75 CToggleButton togglebutton7;
76 CButton button4;
77 CFileDialog filedialog1;
78 CButton button5;
79 CButton button6;
80 CButton button7;
81 CButton button8;
82 CButton button9;
83 /*#Events*/
84 void _EvOnCreate(CControl* control);
85 void _EvOnDestroy(CControl* control);
86 void _EvOnShow(CControl* control);
87 void _EvOnHide(CControl* control);
88 void draw1_EvMouseButtonClick(CControl* control, const unsigned int button, const unsigned int x,
89 const unsigned int y, const unsigned int state);
90 void spind5_EvOnChangeSpinDouble(CControl* control);
91 void spind6_EvOnChangeSpinDouble(CControl* control);
92 void button1_EvMouseButtonClick(CControl* control, const unsigned int button, const unsigned int x,
93 const unsigned int y, const unsigned int state);
94 void button2_EvMouseButtonClick(CControl* control, const unsigned int button, const unsigned int x,
95 const unsigned int y, const unsigned int state);
96 void togglebutton5_EvOnToggleButton(CControl* control);
97 void spind7_EvOnChangeSpinDouble(CControl* control);
98 void timer1_EvOnTime(CControl* control);
99 void combo2_EvOnComboChange(CControl* control);
100 void combo3_EvOnComboChange(CControl* control);
101 void button3_EvMouseButtonClick(CControl* control, const unsigned int button, const unsigned int x,
102 const unsigned int y, const unsigned int state);
103 void togglebutton6_EvOnToggleButton(CControl* control);
104 void button4_EvMouseButtonClick(CControl* control, const unsigned int button, const unsigned int x,
105 const unsigned int y, const unsigned int state);
106 void filedialog1_EvOnClose(const int retId);
107 void colordialog1_EvOnClose(const int retId);
108 void button5_EvMouseButtonPress(CControl* control, const unsigned int button, const unsigned int x,
109 const unsigned int y, const unsigned int state);
110 void button6_EvMouseButtonPress(CControl* control, const unsigned int button, const unsigned int x,
111 const unsigned int y, const unsigned int state);
112 void button7_EvMouseButtonPress(CControl* control, const unsigned int button, const unsigned int x,
113 const unsigned int y, const unsigned int state);
114 void button8_EvMouseButtonPress(CControl* control, const unsigned int button, const unsigned int x,
115 const unsigned int y, const unsigned int state);
116 void button9_EvMouseButtonPress(CControl* control, const unsigned int button, const unsigned int x,
117 const unsigned int y, const unsigned int state);
118
119 /*#Others*/
120 // lxrad automatic generated block end, don't edit above!
121 CPWindow4(void);
122 void DrawScreen(void);
123 static int OnWindowCmd(const int id, const char* ControlName, const PICSimLabWindowAction action, const char* Value,
124 void* ReturnBuff);
125
126private:
127 CButton* ctrl;
128 int update_pos;
129};
130
131extern CPWindow4 Window4;
132
133#endif /*#CPWINDOW4*/
CPWindow4 class.
Definition picsimlab4.h:38