OSDN Git Service

[UI][Qt] Add translations of menu entries and tooltips.
[csp-qt/common_source_project-fm7.git] / source / src / qt / machines / jx / MainWindow.cpp
1 /*
2  * Common Source code Project:
3  * Ui->Qt->MainWindow for JR100 .
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 "emu.h"
13 #include "commonclasses.h"
14 #include "menuclasses.h"
15 #include "qt_main.h"
16
17
18 void META_MainWindow::setupUI_Emu(void)
19 {
20    
21 }
22
23 void META_MainWindow::retranslateUi(void)
24 {
25         int i;
26         retranslateControlMenu("",  false);
27         retranslateFloppyMenu(0, 1);
28         retranslateFloppyMenu(1, 2);
29         retranslateSoundMenu();
30         retranslateScreenMenu();
31         retranslateMachineMenu();
32         retranslateEmulatorMenu();
33         retranslateUI_Help();
34    
35         this->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0));
36   
37 #ifdef USE_DEBUGGER
38         actionDebugger[0]->setVisible(true);
39         actionDebugger[1]->setVisible(false);
40         actionDebugger[2]->setVisible(false);
41         actionDebugger[3]->setVisible(false);
42 #endif
43         // Set Labels
44 } // retranslateUi
45
46 META_MainWindow::META_MainWindow(USING_FLAGS *p, QWidget *parent) : Ui_MainWindow(p, parent)
47 {
48         setupUI_Emu();
49         retranslateUi();
50 }
51
52
53 META_MainWindow::~META_MainWindow()
54 {
55 }
56
57 //QT_END_NAMESPACE
58
59
60