#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "BuildInfo.h" #include "MainWin.h" #include "ui_Main.h" using namespace std; using namespace eth; Main::Main(QWidget *parent) : QObject(parent) { /* qRegisterMetaType("eth::u256"); qRegisterMetaType("eth::KeyPair"); qRegisterMetaType("eth::Secret"); qRegisterMetaType("eth::Address"); qRegisterMetaType("QmlAccount*"); qRegisterMetaType("QmlEthereum*"); qmlRegisterType("org.ethereum", 1, 0, "Ethereum"); qmlRegisterType("org.ethereum", 1, 0, "Account"); qmlRegisterSingletonType("org.ethereum", 1, 0, "Balance", QmlEthereum::constructU256Helper); qmlRegisterSingletonType("org.ethereum", 1, 0, "Key", QmlEthereum::constructKeyHelper); */ /* ui->librariesView->setModel(m_libraryMan); ui->graphsView->setModel(m_graphMan); */ // QQmlContext* context = m_view->rootContext(); // context->setContextProperty("u256", new U256Helper(this)); } Main::~Main() { } // extra bits needed to link on VS #ifdef _MSC_VER // include moc file, ofuscated to hide from automoc #include\ "moc_MainWin.cpp" #endif