42 #include "mainwindow.h"
50 #include <mne_x/Management/pluginoutputdata.h>
64 #include <QApplication>
65 #include <QSharedPointer>
75 using namespace Eigen;
84 QSharedPointer<MainWindow> mainWin;
94 void customMessageHandler(QtMsgType type,
const QMessageLogContext &context,
const QString &msg)
98 QString dt = QDateTime::currentDateTime().toString(
"dd/MM/yyyy hh:mm:ss");
99 QString txt = QString(
"[%1] ").arg(dt);
106 txt += QString(
"{Debug} \t\t %1").arg(msg);
107 mainWin->writeToLog(txt,_LogKndMessage, _LogLvMax);
110 txt += QString(
"{Warning} \t %1").arg(msg);
111 mainWin->writeToLog(txt,_LogKndWarning, _LogLvNormal);
114 txt += QString(
"{Critical} \t %1").arg(msg);
115 mainWin->writeToLog(txt,_LogKndError, _LogLvMin);
118 txt += QString(
"{Fatal} \t\t %1").arg(msg);
119 mainWin->writeToLog(txt,_LogKndError, _LogLvMin);
161 int main(
int argc,
char *argv[])
163 QApplication app(argc, argv);
166 QCoreApplication::setOrganizationName(
"MNE-CPP");
167 QCoreApplication::setOrganizationDomain(
"www.tu-ilmenau.de/mne-cpp");
168 QCoreApplication::setApplicationName(CInfo::AppNameShort());
172 QPixmap pixmap(
":/images/splashscreen.png");
174 splashscreen->show();
178 for(
int i=0; i < time;++i)
180 int p = (i*100)/time;
181 splashscreen->showMessage(
"Loading modules.."+ QString::number(p)+
"%");
184 mainWin = QSharedPointer<MainWindow>(
new MainWindow);
187 splashscreen->finish(mainWin.data());
Contains declaration of IPlugin interface class.
QSharedPointer< MainSplashScreen > SPtr
static void registerTypes()
Contains the declaration of the PluginConnectorConnection class.
The MainSplashScreen class provides the main application splash screen.
Contains the declaration of the Numeric class.
Contains the declaration of the NewRealTimeMultiSampleArray class.
Contains the declaration of the MainSplashScreen class.
The MainWindow class provides the main application user interface.
Contains the declaration of the MeasurementTypes class.