-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathELIIDE.cpp
71 lines (66 loc) · 2.51 KB
/
ELIIDE.cpp
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
/*!
Copyright 2019-2020 Maxim Noltmeer ([email protected])
This file is part of ELI IDE.
ELI IDE is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ELI IDE is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ELI IDE. If not, see <http://www.gnu.org/licenses/>.
*/
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include <tchar.h>
//---------------------------------------------------------------------------
#include <Vcl.Styles.hpp>
#include <Vcl.Themes.hpp>
USEFORM("sethost.cpp", SetHostAppForm);
USEFORM("paramstack.cpp", ShowParamStackForm);
USEFORM("objstack.cpp", ShowObjStackForm);
USEFORM("settings.cpp", IDESettings);
USEFORM("varstack.cpp", ShowVarStackForm);
USEFORM("main.cpp", ELIExtIDEForm);
USEFORM("debug.cpp", DebugOutputForm);
USEFORM("classstack.cpp", ShowClassStackForm);
USEFORM("functionstack.cpp", ShowFuncStackForm);
//---------------------------------------------------------------------------
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
{
try
{
Application->Initialize();
Application->MainFormOnTaskBar = true;
Application->CreateForm(__classid(TELIExtIDEForm), &ELIExtIDEForm);
Application->CreateForm(__classid(TIDESettings), &IDESettings);
Application->CreateForm(__classid(TDebugOutputForm), &DebugOutputForm);
Application->CreateForm(__classid(TShowVarStackForm), &ShowVarStackForm);
Application->CreateForm(__classid(TShowObjStackForm), &ShowObjStackForm);
Application->CreateForm(__classid(TShowClassStackForm), &ShowClassStackForm);
Application->CreateForm(__classid(TShowParamStackForm), &ShowParamStackForm);
Application->CreateForm(__classid(TShowFuncStackForm), &ShowFuncStackForm);
Application->CreateForm(__classid(TSetHostAppForm), &SetHostAppForm);
Application->Run();
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
catch (...)
{
try
{
throw Exception("");
}
catch (Exception &exception)
{
Application->ShowException(&exception);
}
}
return 0;
}
//---------------------------------------------------------------------------