OSDN Git Service

[VM][FMTOWNS][MEMORY] Fix setup around memory banks by I/O 0404h and 0480h.
[csp-qt/common_source_project-fm7.git] / source / src / qt / machines / mz2800 / MainWindow.cpp
1 /*
2  * Common Source code Project:
3  * Ui->Qt->MainWindow for X1TurboZ .
4  * (C) 2015 K.Ohta <whatisthis.sowhat _at_ gmail.com>
5  *   License : GPLv2
6  *   History :
7  * Jan 14, 2015 : Initial, many of constructors were moved to qt/gui/menu_main.cpp.
8  */
9
10 #include <QApplication>
11 #include <QVariant>
12 #include <QtGui>
13 #include <QMenu>
14 #include "commonclasses.h"
15 #include "menuclasses.h"
16 #include "emu.h"
17 #include "qt_main.h"
18
19 //QT_BEGIN_NAMESPACE
20
21         
22
23 void META_MainWindow::setupUI_Emu(void)
24 {
25         menuMachine->setVisible(false);
26 }
27
28 void META_MainWindow::retranslateUi(void)
29 {
30         Ui_MainWindowBase::retranslateUi();
31         retranslateControlMenu("Reset",  true);
32         actionReset->setText(QApplication::translate("MainWindow", "Reset", 0));
33         actionReset->setToolTip(QApplication::translate("MainWindow", "Do system reset.", 0));
34 //      actionSpecial_Reset[0]->setText(QApplication::translate("MainWindow", "Reset.", 0));
35 //      actionSpecial_Reset[0]->setToolTip(QApplication::translate("MainWindow", "Do system reset.", 0));
36 #if defined(USE_PRINTER)
37         actionPrintDevice[1]->setText(QString::fromUtf8("MZ-1P17"));
38         actionPrintDevice[1]->setToolTip(QApplication::translate("MainWindow", "Sharp MZ-1P17 kanji thermal printer.", 0));
39         actionPrintDevice[2]->setText(QString::fromUtf8("PC-PR201"));
40         actionPrintDevice[2]->setToolTip(QApplication::translate("MainWindow", "NEC PC-PR201 kanji printer.", 0));
41         actionPrintDevice[2]->setEnabled(false);
42 #endif
43 #if defined(USE_DEBUGGER)
44         actionDebugger[0]->setVisible(true);
45         actionDebugger[1]->setVisible(false);
46         actionDebugger[2]->setVisible(false);
47         actionDebugger[3]->setVisible(false);
48 #endif
49 } // retranslateUi
50
51
52
53 META_MainWindow::META_MainWindow(std::shared_ptr<USING_FLAGS> p, std::shared_ptr<CSP_Logger> logger, QWidget *parent) : Ui_MainWindow(p, logger, parent)
54 {
55         setupUI_Emu();
56         retranslateUi();
57 }
58
59
60 META_MainWindow::~META_MainWindow()
61 {
62 }
63
64 //QT_END_NAMESPACE
65
66
67