src/relpipe-out-chart.cpp
author František Kučera <franta-hg@frantovo.cz>
Mon, 24 Sep 2018 16:11:19 +0200
branchv_0
changeset 4 1622c087f3ea
parent 3 0d857519a4c9
child 9 d88df75dc2eb
permissions -rw-r--r--
add main window, compile Qt .ui file

#include <iostream>

#include <QApplication>

#include <relpipe/cli/CLI.h>
#include <relpipe/cli/RelpipeCLIException.h>
#include <relpipe/reader/Factory.h>
#include <relpipe/reader/RelationalReader.h>
#include <relpipe/reader/RelpipeReaderException.h>

#include "RelpipeChartMainWindow.h"

using namespace relpipe::cli;
using namespace relpipe::reader;

int main(int argc, char**argv) {
	CLI cli(argc, argv);
	QApplication app(argc, argv);
	
	std::cout << "TODO: relpipe-out-chart..." << std::endl;
	
	std::shared_ptr<RelationalReader> reader(Factory::create(std::cin));

	int resultCode = CLI::EXIT_CODE_UNEXPECTED_ERROR;
	
	RelpipeChartMainWindow window;
	window.resize(640, 480);
	window.show();
	
	app.exec();
	//return app.exec();

	return resultCode;
}