[UI][Qt] Add a debugger entry (to four entries).
w3100a.cpp
ym2203.cpp
-
)
set(VMFILES_BASE
datarec.cpp
pcm1bit.cpp
hd46505.cpp
mb8877.cpp
- sn76489an.cpp
+# sn76489an.cpp
+ msm58321.cpp
datarec.cpp
disk.cpp
--- /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, Yuasa Kyouiku System YALKY, Qt **")
+message("")
+
+set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake")
+
+project (emuyalky)
+
+set(EXEC_TARGET emuyalky)
+set(VM_NAME yalky)
+set(USE_FMGEN OFF)
+set(WITH_JOYSTICK OFF)
+set(WITH_MOUSE ON)
+
+set(VMFILES_BASE
+ i8080.cpp
+ i8155.cpp
+ not.cpp
+ datarec.cpp
+ memory.cpp
+
+ event.cpp
+)
+
+
+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.")
+
+set(VMFILES ${VMFILES_BASE})
+
+add_definitions(-D_YALKY)
+set(RESOURCE ${CMAKE_SOURCE_DIR}/../../src/qt/common/qrc/yalky.qrc)
+
+include(config_commonsource)
class Action_Control *actionDebugger_1;
class Action_Control *actionDebugger_2;
class Action_Control *actionDebugger_3;
+ class Action_Control *actionDebugger_4;
//class Action_Control *actionClose_Debuggers;
connect(actionDebugger_3, SIGNAL(triggered()),
actionDebugger_3->binds, SLOT(open_debugger())); // OK?
connect(actionDebugger_3->binds, SIGNAL(on_open_debugger(int)),
+ this, SLOT(OnOpenDebugger(int))); // OK?
+
+ actionDebugger_4 = new Action_Control(this);
+ actionDebugger_4->setObjectName(QString::fromUtf8("actionDebugger_4"));
+ actionDebugger_4->binds->setValue1(3);
+ connect(actionDebugger_4, SIGNAL(triggered()),
+ actionDebugger_4->binds, SLOT(open_debugger())); // OK?
+ connect(actionDebugger_4->binds, SIGNAL(on_open_debugger(int)),
this, SLOT(OnOpenDebugger(int))); // OK?
}
ConfigCpuSpeed();
menuDebugger->addAction(actionDebugger_1);
menuDebugger->addAction(actionDebugger_2);
menuDebugger->addAction(actionDebugger_3);
+ menuDebugger->addAction(actionDebugger_4);
menuDebugger->addSeparator();
}
}
actionLoad_State->setIcon(QApplication::style()->standardIcon(QStyle::SP_DialogOpenButton));
}
if(using_flags->is_use_debugger()) {
- actionDebugger_1->setText(QApplication::translate("MainWindow", "Debugger 1", 0));
- actionDebugger_2->setText(QApplication::translate("MainWindow", "Debugger 2", 0));
- actionDebugger_3->setText(QApplication::translate("MainWindow", "Debugger 3", 0));
+ actionDebugger_1->setText(QApplication::translate("MainWindow", "Main CPU", 0));
+ actionDebugger_2->setText(QApplication::translate("MainWindow", "Sub CPU", 0));
+ actionDebugger_3->setText(QApplication::translate("MainWindow", "Reserved", 0));
+ actionDebugger_4->setText(QApplication::translate("MainWindow", "Reserved", 0));
menuDebugger->setTitle(QApplication::translate("MainWindow", "Debugger", 0));
}
menuControl->setTitle(QApplication::translate("MainWindow", "Control", 0));
actionPrintDevice[2]->setText(QString::fromUtf8("Sharp MZ-1P17 (MZ-3)"));
#endif
#endif
+#if defined(USE_DEBUGGER)
+ actionDebugger_1->setText(QString::fromUtf8("Main CPU"));
+#if defined(_MZ2200)
+ actionDebugger_2->setText(QString::fromUtf8("MZ-1M01 CPU"));
+#endif
+#endif
// Set Labels
} // retranslateUi
void META_MainWindow::setupUI_Emu(void)
{
+#if defined(_SMC70)
+ menuBootMode = new QMenu(menuMachine);
+ menuBootMode->setObjectName(QString::fromUtf8("menuControl_BootMode"));
+ menuMachine->addAction(menuBootMode->menuAction());
+ ConfigCPUBootMode(3);
+#endif
}
void META_MainWindow::retranslateUi(void)
retranslateMachineMenu();
retranslateEmulatorMenu();
retranslateUI_Help();
-
+#if defined(_SMC70)
+ menuBootMode->setTitle(QApplication::translate("MainWindow", "Auto Start SW:", 0));
+ actionBootMode[0]->setText(QApplication::translate("MainWindow", "ROM", 0));
+ actionBootMode[1]->setText(QApplication::translate("MainWindow", "Disk", 0));
+ actionBootMode[2]->setText(QApplication::translate("MainWindow", "Off", 0));
+#endif
this->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0));
META_MainWindow::META_MainWindow(QWidget *parent) : Ui_MainWindow(parent)
{
+ setupUI_Emu();
retranslateUi();
}
actionDebugger_1->setText(QApplication::translate("MainWindow", "Main CPU", 0));
actionDebugger_2->setText(QApplication::translate("MainWindow", "Sub CPU", 0));
actionDebugger_3->setText(QApplication::translate("MainWindow", "Keyboard CPU", 0));
+#ifdef _X1TWIN
+ actionDebugger_4->setText(QApplication::translate("MainWindow", "PC-ENGINE CPU", 0));
+#endif
#endif
#if defined(USE_PRINTER)
actionPrintDevice[1]->setText(QString::fromUtf8("Sharp MZ-1P17"));
--- /dev/null
+message("* qt/yalky")
+
+set(s_qt_yalky_headers
+ menuclasses.h
+)
+
+if(USE_QT_5)
+ QT5_WRAP_CPP(s_qt_yalky_headers_MOC ${s_qt_yalky_headers})
+# QT5_ADD_RESOURCES(s_qt_fm7_headers_RCC ${RESOURCE})
+else()
+ QT4_WRAP_CPP(s_qt_yalky_headers_MOC ${s_qt_yalky_headers})
+endif()
+
+add_library(qt_yalky
+ MainWindow.cpp
+ ${s_qt_yalky_headers_MOC}
+)
+
+
--- /dev/null
+/*
+ * Common Source code Project:
+ * Ui->Qt->MainWindow for Babbage2nd .
+ * (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 "commonclasses.h"
+
+#include "emu.h"
+#include "qt_main.h"
+#include "vm.h"
+
+//QT_BEGIN_NAMESPACE
+
+
+void META_MainWindow::retranslateUi(void)
+{
+ retranslateControlMenu("", false);
+ retranslateScreenMenu();
+ //retranslateBinaryMenu(0, 1);
+ retranslateCMTMenu();
+ retranslateMachineMenu();
+ retranslateUI_Help();
+ retranslateEmulatorMenu();
+ retranslateSoundMenu();
+
+ this->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0));
+ // Set Labels
+
+} // retranslateUi
+
+void META_MainWindow::setupUI_Emu(void)
+{
+}
+
+
+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 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();
+};
+
+QT_END_NAMESPACE
+
+#endif // END
--- /dev/null
+cmake_minimum_required (VERSION 2.6)
+
+add_library(vm_pc2001
+ io.cpp
+ pc2001.cpp
+)
--- /dev/null
+cmake_minimum_required (VERSION 2.6)
+
+message("* vm/yalky")
+
+add_library(vm_yalky
+ io.cpp
+ yalky.cpp
+)
\ No newline at end of file