Blame c++/perspective/src/main.cpp

Ivan Mahonin 531f67
#include <iostream>
Ivan Mahonin 531f67
Ivan Mahonin 538bb7
#include <gtkmm/application.h>
Ivan Mahonin 531f67
Ivan Mahonin 538bb7
#include "mainwindow.h"
Ivan Mahonin 0662a2
#include "perspectivesandboxview.h"
Ivan Mahonin 2a4477
#include "generatorsandboxview.h"
Ivan Mahonin 531f67
Ivan Mahonin 531f67
Ivan Mahonin 531f67
int main(int argc, char **argv) {
Ivan Mahonin 531f67
	std::cout << "Lab: prototype of perspective transformation" << std::endl;
Ivan Mahonin 538bb7
Ivan Mahonin 531f67
	Glib::RefPtr<Gtk::Application> application = Gtk::Application::create(
Ivan Mahonin 0662a2
		argc, argv, "org.coolbug.lab.perspective");
Ivan Mahonin 531f67
	
Ivan Mahonin 531f67
	std::cout << "create window" << std::endl;
Ivan Mahonin 5f2fc2
	MainWindow window;
Ivan Mahonin 5f2fc2
	//Gtk::Window window;
Ivan Mahonin 3a6f9b
	//window.add(*Gtk::manage(new PerspectiveSandBoxView()));
Ivan Mahonin 5f2fc2
	//window.add(*Gtk::manage(new GeneratorSandBoxView()));
Ivan Mahonin 5f2fc2
	//window.show_all();
Ivan Mahonin 531f67
	
Ivan Mahonin 531f67
	std::cout << "run" << std::endl;
Ivan Mahonin 531f67
	int result = application->run(window);
Ivan Mahonin 531f67
	
Ivan Mahonin 531f67
	std::cout << "finished with code " << result << std::endl;
Ivan Mahonin 538bb7
	return result;
Ivan Mahonin 531f67
}