main.cpp 432 Bytes
Newer Older
Philipp Erhardt's avatar
initial  
Philipp Erhardt committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <QApplication>
#include <QImage>
#include <QString>
#include <iostream>

#include "resourcemanager.h"
#include "pdfviewer.h"

int main(int argc, char *argv[]) {
	using namespace std;
	QApplication app(argc, argv);

	if (argc != 2) {
		cerr << "usage: " << argv[0] << " <path>" << endl;
		return 1;
	}

	ResourceManager res(argv[1]);
	if (res.isNull())
		return 1;
	PdfViewer pdf(&res);
	pdf.show();

	return app.exec();
}