mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-23 23:55:38 +03:00
27 lines
474 B
C++
27 lines
474 B
C++
#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;
|
|
}
|
|
}
|