git-svn-id: svn://192.168.0.12/source@179 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
38
Analyzer/main.cpp
Normal file
38
Analyzer/main.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include <QApplication>
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "scolumn.h"
|
||||
|
||||
MainWindow *g_pMain;
|
||||
|
||||
MainWindow *GetMainWindow()
|
||||
{
|
||||
return g_pMain;
|
||||
}
|
||||
|
||||
SColumn g_column;
|
||||
SColumn GetColumn()
|
||||
{
|
||||
return g_column;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
if (g_column.reload())
|
||||
{
|
||||
MainWindow w;
|
||||
g_pMain = &w;
|
||||
w.show();
|
||||
return a.exec();
|
||||
}
|
||||
else
|
||||
{
|
||||
QMessageBox msg;
|
||||
msg.setText("Can not read column data...");
|
||||
msg.exec();
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user