ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/VMM/win32/main.h
Revision: 253
Committed: Tue Jul 13 19:40:46 2010 UTC (15 years, 1 month ago) by francois
Content type: text/plain
File size: 11703 byte(s)
Log Message:
changement de hiearchie et utilisation de ccmake + mise a jour

File Contents

# User Rev Content
1 5 //------------------------------------------------------------
2     //------------------------------------------------------------
3     // MAGiC
4     // Jean Christophe Cuillière et Vincent FRANCOIS
5     // Département de Génie Mécanique - UQTR
6     //------------------------------------------------------------
7     // Le projet MAGIC est un projet de recherche du département
8     // de génie mécanique de l'Université du Québec à
9     // Trois Rivières
10     // Les librairies ne peuvent être utilisées sans l'accord
11     // des auteurs (contact : francois@uqtr.ca)
12     //------------------------------------------------------------
13     //------------------------------------------------------------
14     //
15     // main.h
16     //
17     //------------------------------------------------------------
18     //------------------------------------------------------------
19     // COPYRIGHT 2000
20     // Version du 02/03/2006 à 11H25
21     //------------------------------------------------------------
22     //------------------------------------------------------------
23     #ifndef MainH
24     #define MainH
25     //----------------------------------------------------------------------------
26     #include "editwin.h"
27     #include "visuwin.h"
28     #include "visuctt.h"
29     #include "tgauge.h"
30     #include "log.h"
31     /*#include <vcl\ComCtrls.hpp>
32     #include <vcl\ExtCtrls.hpp>
33     #include <vcl\Messages.hpp>
34     #include <vcl\Buttons.hpp>
35     #include <vcl\Dialogs.hpp>
36     #include <vcl\StdCtrls.hpp>
37     #include <vcl\Menus.hpp>
38     #include <vcl\Controls.hpp>
39     #include <vcl\Forms.hpp>
40     #include <vcl\Graphics.hpp>
41     #include <vcl\Classes.hpp>
42     #include <vcl\SysUtils.hpp>
43     #include <vcl\Windows.hpp>
44     #include <vcl\System.hpp>*/
45     #include <ActnList.hpp>
46     #include <ImgList.hpp>
47     #include <StdActns.hpp>
48     #include <ToolWin.hpp>
49     #include <jpeg.hpp>
50     #include <Mask.hpp>
51     #include "CGAUGES.h"
52     #include <ScktComp.hpp>
53     #include <Classes.hpp>
54     #include <ComCtrls.hpp>
55     #include <Controls.hpp>
56     #include <Dialogs.hpp>
57     #include <ExtCtrls.hpp>
58     #include <Menus.hpp>
59     //----------------------------------------------------------------------------
60     class TMainForm : public TForm
61     {
62     __published:
63     TMainMenu *MainMenu1;
64     TMenuItem *File1;
65     TMenuItem *FileOpenItem;
66     TMenuItem *Window1;
67     TMenuItem *Help1;
68     TMenuItem *N1;
69     TMenuItem *FileExitItem;
70     TMenuItem *WindowCascadeItem;
71     TMenuItem *WindowTileItem;
72     TMenuItem *WindowArrangeItem;
73     TMenuItem *HelpAboutItem;
74     TOpenDialog *OpenDialog;
75     TStatusBar *StatusBar;
76     TActionList *fileopenediteur;
77     TEditCut *EditCut1;
78     TEditCopy *EditCopy1;
79     TEditPaste *EditPaste1;
80     TAction *FileSave1;
81     TAction *FileExit1;
82     TAction *FileOpen1;
83     TAction *FileSaveAs1;
84     TWindowCascade *WindowCascade1;
85     TWindowTileHorizontal *WindowTileHorizontal1;
86     TWindowArrange *WindowArrangeAll1;
87     TWindowMinimizeAll *WindowMinimizeAll1;
88     TAction *HelpAbout1;
89     TWindowClose *FileClose1;
90     TWindowTileVertical *WindowTileVertical1;
91     TMenuItem *WindowTileItem2;
92     TToolBar *ToolBar2;
93     TToolButton *ToolButton1;
94     TToolButton *ToolButton3;
95     TToolButton *ToolButton7;
96     TToolButton *ToolButton8;
97     TToolButton *ToolButton9;
98     TToolButton *ToolButton10;
99     TToolButton *ToolButton11;
100     TImageList *ImageList1;
101     TMenuItem *Visualisation1;
102     TMenuItem *Editeur1;
103     TAction *openediteur;
104     TAction *openvisu;
105     TMenuItem *Format1;
106     TMenuItem *SATMAGiC1;
107     TMenuItem *STEPMAGiC1;
108     TToolBar *ToolBar1;
109     TToolButton *ToolButton2;
110     TToolBar *ToolBar3;
111     TToolButton *ToolButton4;
112     TToolButton *ToolButton5;
113     TToolButton *ToolButton6;
114     TTimer *Timer1;
115     TToolButton *ToolButton12;
116     TToolButton *ToolButton13;
117     TToolButton *ToolButton14;
118     TToolButton *ToolButton15;
119     TToolButton *ToolButton16;
120     TToolButton *ToolButton17;
121     TToolButton *ToolButton18;
122     TToolButton *ToolButton19;
123     TToolButton *ToolButton20;
124     TToolButton *ToolButton21;
125     TToolButton *ToolButton24;
126     TToolButton *ToolButton25;
127     TToolButton *ToolButton26;
128     TToolButton *ToolButton27;
129     TToolButton *ToolButton28;
130     TToolButton *ToolButton29;
131     TToolButton *ToolButton30;
132     TToolButton *ToolButton31;
133     TToolButton *ToolButton32;
134     TToolButton *ToolButton33;
135     TToolButton *ToolButton34;
136     TToolButton *ToolButton35;
137     TToolButton *ToolButton36;
138     TToolButton *ToolButton37;
139     TToolButton *ToolButton38;
140     TToolButton *ToolButton39;
141     TAction *openctt;
142     TMenuItem *Cartedetaille1;
143     TToolBar *ToolBar4;
144     TToolButton *ToolButton40;
145     TToolButton *ToolButton41;
146     TToolButton *ToolButton42;
147     TToolButton *ToolButton43;
148     TToolButton *ToolButton44;
149     TToolButton *ToolButton45;
150     TToolButton *ToolButton46;
151     TToolButton *ToolButton47;
152     TToolButton *ToolButton48;
153     TToolButton *ToolButton49;
154     TToolButton *ToolButton50;
155     TToolButton *ToolButton51;
156     TToolButton *ToolButton52;
157     TToolButton *ToolButton53;
158     TToolButton *ToolButton54;
159     TToolButton *ToolButton55;
160     TToolButton *ToolButton56;
161     TToolButton *ToolButton57;
162     TToolButton *ToolButton58;
163     TToolButton *ToolButton59;
164     TMenuItem *N2;
165     TMenuItem *AidedeVisualM1;
166     TMenuItem *N3;
167     TMenuItem *ExplorateurMAGIC1;
168     TAction *openima;
169     TMenuItem *Visualisateurdefront1;
170     TAction *openfront;
171     TMenuItem *Licence1;
172     TCGauge *CGauge1;
173     TTimer *Timer2;
174     TClientSocket *ClientSocket1;
175     TTimer *Timer3;
176     TMenuItem *SL1;
177     TMenuItem *STLMAGiC1;
178     TMenuItem *N4;
179     TMenuItem *Fenetrelog1;
180 francois 56 TMenuItem *Simplificationdegometrie1;
181 francois 98 TToolButton *ToolButton22;
182     TToolButton *ToolButton23;
183     TMenuItem *Oprationsgomtriques1;
184     TMenuItem *N6;
185     TMenuItem *OprationsurlagomtrieMAGiC1;
186 francois 137 TMenuItem *OpenCascadeMagic1;
187 5 void __fastcall FileNew1Execute(TObject *Sender);
188     void __fastcall HelpAbout1Execute(TObject *Sender);
189     void __fastcall FileExit1Execute(TObject *Sender);
190     void __fastcall openediteurExecute(TObject *Sender);
191     void __fastcall openvisuExecute(TObject *Sender);
192     void __fastcall SATMAGiC1Click(TObject *Sender);
193     void __fastcall STEPMAGiC1Click(TObject *Sender);
194     void __fastcall Timer1Timer(TObject *Sender);
195     void __fastcall WindowCascade1Execute(TObject *Sender);
196     void __fastcall WindowTileHorizontal1Execute(TObject *Sender);
197     void __fastcall WindowTileVertical1Execute(TObject *Sender);
198     void __fastcall WindowArrangeAll1Execute(TObject *Sender);
199     void __fastcall FormCreate(TObject *Sender);
200     void __fastcall ToolButton4Click(TObject *Sender);
201     void __fastcall ToolButton2Click(TObject *Sender);
202     void __fastcall ToolButton5Click(TObject *Sender);
203     void __fastcall ToolButton6Click(TObject *Sender);
204     void __fastcall ToolButton12Click(TObject *Sender);
205     void __fastcall ToolButton13Click(TObject *Sender);
206     void __fastcall ToolButton14Click(TObject *Sender);
207     void __fastcall ToolButton15Click(TObject *Sender);
208     void __fastcall ToolButton20Click(TObject *Sender);
209     void __fastcall ToolButton16Click(TObject *Sender);
210     void __fastcall ToolButton18Click(TObject *Sender);
211     void __fastcall ToolButton17Click(TObject *Sender);
212     void __fastcall ToolButton19Click(TObject *Sender);
213     void __fastcall ToolButton22Click(TObject *Sender);
214     void __fastcall ToolButton23Click(TObject *Sender);
215     void __fastcall ToolButton32Click(TObject *Sender);
216     void __fastcall ToolButton36Click(TObject *Sender);
217     void __fastcall ToolButton33Click(TObject *Sender);
218     void __fastcall ToolButton37Click(TObject *Sender);
219     void __fastcall ToolButton34Click(TObject *Sender);
220     void __fastcall ToolButton38Click(TObject *Sender);
221     void __fastcall ToolButton35Click(TObject *Sender);
222     void __fastcall ToolButton39Click(TObject *Sender);
223     void __fastcall opencttExecute(TObject *Sender);
224     void __fastcall ToolButton40Click(TObject *Sender);
225     void __fastcall ToolButton41Click(TObject *Sender);
226     void __fastcall ToolButton42Click(TObject *Sender);
227     void __fastcall ToolButton43Click(TObject *Sender);
228     void __fastcall ToolButton44Click(TObject *Sender);
229     void __fastcall ToolButton45Click(TObject *Sender);
230     void __fastcall ToolButton46Click(TObject *Sender);
231     void __fastcall ToolButton47Click(TObject *Sender);
232     void __fastcall ToolButton48Click(TObject *Sender);
233     void __fastcall ToolButton49Click(TObject *Sender);
234     void __fastcall ToolButton50Click(TObject *Sender);
235     void __fastcall ToolButton51Click(TObject *Sender);
236     void __fastcall ToolButton52Click(TObject *Sender);
237     void __fastcall ToolButton53Click(TObject *Sender);
238     void __fastcall ToolButton54Click(TObject *Sender);
239     void __fastcall ToolButton56Click(TObject *Sender);
240     void __fastcall ToolButton58Click(TObject *Sender);
241     void __fastcall ToolButton57Click(TObject *Sender);
242     void __fastcall ToolButton59Click(TObject *Sender);
243     void __fastcall AidedeVisualM1Click(TObject *Sender);
244     void __fastcall openimaExecute(TObject *Sender);
245     void __fastcall ToolButton60Click(TObject *Sender);
246     void __fastcall ToolButton61Click(TObject *Sender);
247     void __fastcall openfrontExecute(TObject *Sender);
248     void __fastcall Licence1Click(TObject *Sender);
249     void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
250     void __fastcall ToolButton24Click(TObject *Sender);
251     void __fastcall Timer2Timer(TObject *Sender);
252     void __fastcall ClientSocket1Read(TObject *Sender,
253     TCustomWinSocket *Socket);
254     void __fastcall Timer3Timer(TObject *Sender);
255     void __fastcall ClientSocket1Error(TObject *Sender,
256     TCustomWinSocket *Socket, TErrorEvent ErrorEvent,
257     int &ErrorCode);
258     void __fastcall SL1Click(TObject *Sender);
259     void __fastcall STLMAGiC1Click(TObject *Sender);
260     void __fastcall ToolButton27Click(TObject *Sender);
261     void __fastcall Fenetrelog1Click(TObject *Sender);
262 francois 56 void __fastcall Simplificationdegometrie1Click(TObject *Sender);
263     void __fastcall ToolButton30Click(TObject *Sender);
264 francois 98 void __fastcall OprationsurlagomtrieMAGiC1Click(TObject *Sender);
265 francois 137 void __fastcall OpenCascadeMagic1Click(TObject *Sender);
266 5 private:
267     gauge *gaugeprocess;
268     char heure[500];
269     public:
270     void __fastcall CreateMDIChild(const String Name);
271     void __fastcall CreateMDIChildVisu(TObject *Sender,const String Name);
272     virtual __fastcall TMainForm(TComponent *Owner);
273     TVisuWinform *activewinform;
274     Tvisucttform *activecttform;
275     Twinlog *fenlog;
276 francois 62 double valeurconfig[200];
277 5
278     };
279     //----------------------------------------------------------------------------
280     extern TMainForm *MainForm;
281     extern TEditeurWinform *__fastcall MDIChildCreate(void);
282     //----------------------------------------------------------------------------
283     #endif