2020-11-17 17:00:34 +00:00
|
|
|
#include <qmessagebox.h>
|
2020-11-17 16:07:02 +00:00
|
|
|
#include <qapplication.h>
|
|
|
|
#include "MainWindow.hpp"
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
2020-11-17 17:00:34 +00:00
|
|
|
|
|
|
|
if (argc < 2)
|
|
|
|
{
|
|
|
|
QMessageBox no_args_error_box;
|
|
|
|
no_args_error_box.setWindowTitle("Error");
|
|
|
|
no_args_error_box.setText("Too few arguments. Need at least one CSV file.");
|
|
|
|
no_args_error_box.setIcon(QMessageBox::Icon::Critical);
|
|
|
|
no_args_error_box.exec();
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2020-11-17 16:07:02 +00:00
|
|
|
MainWindow window;
|
|
|
|
window.show();
|
|
|
|
|
|
|
|
return app.exec();
|
|
|
|
}
|