mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 02:35:38 +03:00
14.06.2023
This commit is contained in:
26
s1000d/Converter14_Source/main.cpp
Normal file
26
s1000d/Converter14_Source/main.cpp
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "editormainwindow.h"
|
||||
#include "console.h"
|
||||
#include <QApplication>
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
setlocale(LC_ALL,"Russian");
|
||||
if(argc == 1)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
ShowWindow(GetConsoleWindow(), 0);
|
||||
#endif
|
||||
EditorMainWindow w;
|
||||
w.show();
|
||||
return a.exec();
|
||||
}
|
||||
else
|
||||
{
|
||||
console c;
|
||||
c.exec(argc, argv);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user