src/relpipe-out-chart.cpp
author František Kučera <franta-hg@frantovo.cz>
Fri, 28 Sep 2018 12:51:55 +0200
branchv_0
changeset 11 0f42346c8fc7
parent 9 d88df75dc2eb
child 13 c84042d014c9
permissions -rw-r--r--
define windows size in the .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);
	// TODO: argument name collisions? Filter arguments? Use prefix for Qt? Qt: -title, -style, -geometry
	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.show();
	
	app.exec();
	//return app.exec();

	return resultCode;
}