2 * Common Source code Project:
3 * Ui->Qt->MainWindow for X1TurboZ .
4 * (C) 2015 K.Ohta <whatisthis.sowhat _at_ gmail.com>
7 * Jan 14, 2015 : Initial, many of constructors were moved to qt/gui/menu_main.cpp.
10 #include <QApplication>
14 #include "commonclasses.h"
15 #include "menuclasses.h"
23 void META_MainWindow::setupUI_Emu(void)
25 menuMachine->setVisible(false);
28 void META_MainWindow::retranslateUi(void)
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);
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);
53 META_MainWindow::META_MainWindow(std::shared_ptr<USING_FLAGS> p, std::shared_ptr<CSP_Logger> logger, QWidget *parent) : Ui_MainWindow(p, logger, parent)
60 META_MainWindow::~META_MainWindow()