--- /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,COLECO Vision, Qt **")
+message("")
+
+set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
+
+project (colecovision)
+set(VM_NAME colecovision)
+set(USE_FMGEN OFF)
+set(WITH_JOYSTICK ON)
+set(WITH_MOUSE OFF)
+
+set(VMFILES
+ z80.cpp
+ sn76489an.cpp
+ tms9918a.cpp
+
+ io.cpp
+ event.cpp
+)
+
+set(BUILD_SHARED_LIBS OFF)
+set(USE_OPENMP ON CACHE BOOL "Build using OpenMP")
+set(USE_OPENGL ON CACHE BOOL "Build using OpenGL")
+set(WITH_DEBUGGER ON CACHE BOOL "Build with debugger")
+
+include(detect_target_cpu)
+set(CMAKE_SYSTEM_PROCESSOR ${ARCHITECTURE} CACHE STRING "Set processor to build.")
+
+add_definitions(-D_COLECOVISION)
+set(EXEC_TARGET emucolecovision)
+set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/colecovision.qrc)
+
+include(config_commonsource)
--- /dev/null
+<!DOCTYPE RCC><RCC version="1.0">
+<qresource>
+ <file alias="default.ico">../../../res/colecovision.ico</file>
+ <file alias="bios_and_keys.txt">../../../../../doc/VMs/00_still_not_written.txt</file>
+</qresource>
+</RCC>
--- /dev/null
+message("* qt/scv")
+
+set(s_qt_colecovision_headers
+ menuclasses.h
+)
+if(USE_QT_5)
+ QT5_WRAP_CPP(s_qt_colecovision_headers_MOC ${s_qt_colecovision_headers})
+else()
+ QT4_WRAP_CPP(s_qt_colecovision_headers_MOC ${s_qt_colecovision_headers})
+endif()
+add_library(qt_colecovision
+ MainWindow.cpp
+ ${s_qt_colecovision_headers_MOC}
+)
+
+
--- /dev/null
+/*
+ * Common Source code Project:
+ * Ui->Qt->MainWindow for Coleco Vision .
+ * (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 <QVariant>
+#include <QtGui>
+#include "commonclasses.h"
+#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);
+
+ retranslateMachineMenu();
+ retranslateSoundMenu();
+ retranslateScreenMenu();
+ retranslateEmulatorMenu();
+ retranslateUI_Help();
+
+ this->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0));
+ actionAbout->setText(QApplication::translate("MainWindow", "About...", 0));
+
+ menuEmulator->setTitle(QApplication::translate("MainWindow", "Emulator", 0));
+ menuMachine->setTitle(QApplication::translate("MainWindow", "Machine", 0));
+
+ menuHELP->setTitle(QApplication::translate("MainWindow", "HELP", 0));
+ actionHelp_AboutQt->setText(QApplication::translate("MainWindow", "About Qt", 0));
+#ifdef USE_DEBUGGER
+ actionDebugger[0]->setVisible(true);
+ actionDebugger[1]->setVisible(false);
+ actionDebugger[2]->setVisible(false);
+ actionDebugger[3]->setVisible(false);
+#endif
+} // retranslateUi
+
+
+
+META_MainWindow::META_MainWindow(USING_FLAGS *p, QWidget *parent) : Ui_MainWindow(p, parent)
+{
+ setupUI_Emu();
+ retranslateUi();
+}
+
+
+META_MainWindow::~META_MainWindow()
+{
+}
+
+//QT_END_NAMESPACE
+
+
+
--- /dev/null
+
+#ifndef _CSP_QT_MENUCLASSES_H
+#define _CSP_QT_MENUCLASSES_H
+
+//#include "commonclasses.h"
+#include "mainwidget.h"
+// This extends class CSP_MainWindow as Ui_MainWindow.
+// You may use this as
+QT_BEGIN_NAMESPACE
+
+
+class Ui_MainWindow;
+class USING_FLAGS;
+
+class META_MainWindow : public Ui_MainWindow {
+ Q_OBJECT
+protected:
+ void setupUI_Emu(void);
+ void retranslateUi(void);
+public:
+ META_MainWindow(USING_FLAGS *p, QWidget *parent = 0);
+ ~META_MainWindow();
+public slots:
+
+};
+
+QT_END_NAMESPACE
+
+#endif // END
--- /dev/null
+cmake_minimum_required (VERSION 2.6)
+
+message("* vm/colecovision")
+
+add_library(vm_colecovision
+ colecovision.cpp
+
+ memory.cpp
+ keyboard.cpp
+)