https://github.com/wagenadl/sbemviewer
Tip revision: 8f8d3d2bcae39e165993d9e11ffe173640b940db authored by Daniel A. Wagenaar on 01 December 2020, 02:16:22 UTC
Made sbemviewer convert http to https
Made sbemviewer convert http to https
Tip revision: 8f8d3d2
main.cpp
// main.cpp
#include "MovieMaker.h"
#include <QApplication>
#include <QDebug>
#include "SBEMDB.h"
#include "SomaLabel.h"
int usage() {
qDebug() << "Usage: sbemmoviemaker SBEMDB [LabelFile]";
return 1;
}
int main(int argc, char **argv) {
QApplication app(argc, argv);
if (argc<2 || argc>3)
return usage();
SBEMDB db;
SomaLabel sm;
db.open(argv[1]);
if (!db.isOpen()) {
qDebug() << "Cannot open db";
return 2;
}
if (argc>=3) {
if (!sm.load(argv[2])) {
qDebug() << "Cannot open label file";
return 2;
}
}
MovieMaker mm(&db, &sm);
mm.show();
int res = app.exec();
db.close();
return res;
}