--- /dev/null
+# Build Common Sourcecode Project, Qt.
+# (C) 2014 K.Ohta <whatisthis.sowhat@gmail.com>
+# This is part of XM7/SDL, but license is apache 2.2,
+# this part was written only me.
+
+cmake_minimum_required (VERSION 2.8)
+cmake_policy(SET CMP0011 NEW)
+
+message("")
+message("** Start of configure CommonSourceProject, TOMY Pyuta, Qt **")
+message("")
+
+set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
+
+
+project (emupyuta)
+
+set(LOCAL_LIBS vm_pyuta
+ vm_vm
+ common_common
+# vm_fmgen
+ qt_pyuta
+ qt_gui
+ )
+
+set(VMFILES_BASE
+ tms9995.cpp
+ sn76489an.cpp
+ tms9918a.cpp
+
+ datarec.cpp
+
+ event.cpp
+ memory.cpp
+)
+
+
+set(BUILD_SHARED_LIBS OFF)
+set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
+set(USE_OPENCL ON CACHE BOOL "Build using OpenCL")
+set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
+set(XM7_VERSION 3)
+#set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger.")
+
+include(detect_target_cpu)
+#include(windows-mingw-cross)
+# set entry
+set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
+
+
+set(VMFILES ${VMFILES_BASE})
+add_definitions(-D_PYUTA)
+set(EXEC_TARGET emupyuta)
+
+#include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../src/vm/pyuta)
+#include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../src/vm/fmgen)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../src/qt/pyuta)
+
+
+include(config_commonsource)
+
+
+
+add_subdirectory(../../src/vm/pyuta vm/pyuta)
+#add_subdirectory(../../src/vm/fmgen vm/fmgen)
+add_subdirectory(../../src/qt/pyuta qt/pyuta)
+
+
+add_subdirectory(../../src/qt/common qt/common)
--- /dev/null
+message("* qt/pyuta")
+
+set(s_qt_pyuta_headers
+ menuclasses.h
+)
+QT4_WRAP_CPP(s_qt_pyuta_headers_MOC ${s_qt_pyuta_headers})
+
+add_library(qt_pyuta
+ MainWindow.cpp
+ ${s_qt_pyuta_headers_MOC}
+)
+
+
--- /dev/null
+/*
+ * Common Source code Project:
+ * Ui->Qt->MainWindow for PC Engine .
+ * (C) 2015 K.Ohta <whatisthis.sowhat _at_ gmail.com>
+ * License : GPLv2
+ * History :
+ * Jan 14, 2015 : Initial, many of constructors were moved to qt/gui/menu_main.cpp.
+ */
+
+#include <QtCore/QVariant>
+#include <QtGui>
+#include "menuclasses.h"
+#include "emu.h"
+#include "qt_main.h"
+
+//QT_BEGIN_NAMESPACE
+
+
+void META_MainWindow::setupUI_Emu(void)
+{
+ int i;
+}
+
+void META_MainWindow::retranslateUi(void)
+{
+ retranslateControlMenu("", false);
+ retranslateCartMenu(0, 1);
+ retranslateCMTMenu();
+ retranslateSoundMenu();
+ retranslateScreenMenu();
+
+ this->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0, QApplication::UnicodeUTF8));
+
+
+ actionAbout->setText(QApplication::translate("MainWindow", "About...", 0, QApplication::UnicodeUTF8));
+
+
+ menuEmulator->setTitle(QApplication::translate("MainWindow", "Emulator", 0, QApplication::UnicodeUTF8));
+ menuMachine->setTitle(QApplication::translate("MainWindow", "Machine", 0, QApplication::UnicodeUTF8));
+
+ menuHELP->setTitle(QApplication::translate("MainWindow", "HELP", 0, QApplication::UnicodeUTF8));
+} // retranslateUi
+
+
+
+META_MainWindow::META_MainWindow(QWidget *parent) : Ui_MainWindow(parent)
+{
+ setupUI_Emu();
+ retranslateUi();
+}
+
+
+META_MainWindow::~META_MainWindow()
+{
+}
+
+//QT_END_NAMESPACE
+
+
+
--- /dev/null
+
+#ifndef _CSP_QT_MENUCLASSES_H
+#define _CSP_QT_MENUCLASSES_H
+
+#include "mainwidget.h"
+// This extends class CSP_MainWindow as Ui_MainWindow.
+// You may use this as
+QT_BEGIN_NAMESPACE
+
+
+class Ui_MainWindow;
+// wrote of X1 Specific menu.
+class META_MainWindow : public Ui_MainWindow {
+ Q_OBJECT
+ protected:
+ void setupUI_Emu(void);
+ void retranslateUi(void);
+ public:
+ META_MainWindow(QWidget *parent = 0);
+ ~META_MainWindow();
+public slots:
+
+};
+
+QT_END_NAMESPACE
+
+#endif // END
--- /dev/null
+cmake_minimum_required (VERSION 2.6)
+
+message("* vm/pyuta")
+
+ add_library(vm_pyuta
+ memory.cpp
+ pyuta.cpp
+ )