OSDN Git Service

[UI][Qt] Apply to upstream's updating definitions.Still not implement around HDDs.
[csp-qt/common_source_project-fm7.git] / source / src / qt / machines / pc98ha / 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 <QVariant>
11 #include <QtGui>
12 #include "commonclasses.h"
13 #include "menuclasses.h"
14 #include "emu.h"
15 #include "qt_main.h"
16
17 //QT_BEGIN_NAMESPACE
18
19
20 void META_MainWindow::do_set_sound_device(int num)
21 {
22 }
23
24 void META_MainWindow::retranslateUi(void)
25 {
26         const char *title="";
27         retranslateControlMenu(title, false);
28         if(int _drv = 0; _drv < USE_FLOPPY_DISK; _drv++) {
29                 retranslateFloppyMenu(_drv, _drv + 1);
30         }               
31         retranslateSoundMenu();
32         retranslateScreenMenu();
33         retranslateMachineMenu();
34         retranslateEmulatorMenu();
35         retranslateUI_Help();
36    
37 #if defined(USE_PRINTER)
38         actionPrintDevice[1]->setText(QString::fromUtf8("PC-PR201"));
39         actionPrintDevice[1]->setToolTip(QApplication::translate("MainWindow", "NEC PC-PR201 kanji serial printer.", 0));
40 #endif  
41         this->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0));
42 #ifdef USE_DEBUGGER
43         actionDebugger[0]->setVisible(true);
44         actionDebugger[1]->setVisible(false);
45         actionDebugger[2]->setVisible(false);
46         actionDebugger[3]->setVisible(false);
47 #endif
48         // Set Labels
49         
50 } // retranslateUi
51
52 void META_MainWindow::setupUI_Emu(void)
53 {
54 }
55
56
57 META_MainWindow::META_MainWindow(USING_FLAGS *p, CSP_Logger *logger, QWidget *parent) : Ui_MainWindow(p, logger, parent)
58 {
59         setupUI_Emu();
60         retranslateUi();
61 }
62
63
64 META_MainWindow::~META_MainWindow()
65 {
66 }
67
68 //QT_END_NAMESPACE
69
70
71