OSDN Git Service

[VM][STATE] Improve state helper.
[csp-qt/common_source_project-fm7.git] / source / src / qt / machines / fp200 / 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
24 void META_MainWindow::retranslateUi(void)
25 {
26
27         Ui_MainWindowBase::retranslateUi();
28         retranslateControlMenu("", false);
29         menuBootMode->setTitle(QApplication::translate("Machine", "BOOT Mode", 0));
30         menuBootMode->setToolTipsVisible(true);
31         actionBootMode[0]->setText(QString::fromUtf8("BASIC"));
32         actionBootMode[1]->setText(QString::fromUtf8("CETL"));  
33         actionBootMode[0]->setToolTip(QApplication::translate("Machine", "Run as BASIC machine.", 0));
34         actionBootMode[1]->setToolTip(QApplication::translate("Machine", "Run as CETL (Spread-sheet language) machine.", 0));
35         
36 #ifdef USE_DEBUGGER
37         actionDebugger[0]->setVisible(true);
38         actionDebugger[1]->setVisible(false);
39         actionDebugger[2]->setVisible(false);
40         actionDebugger[3]->setVisible(false);
41 #endif
42         //      actionStart_Record_Movie->setText(QApplication::translate("Machine", "Start Record Movie", 0));
43         //      actionStop_Record_Movie->setText(QApplication::translate("Machine", "Stop Record Movie", 0));
44         // 
45         // FP1100 Specified
46         
47         // Set Labels
48         
49 } // retranslateUi
50
51 void META_MainWindow::setupUI_Emu(void)
52 {
53         ConfigCPUBootMode(2);
54 }
55
56 META_MainWindow::META_MainWindow(USING_FLAGS *p, CSP_Logger *logger, QWidget *parent) : Ui_MainWindow(p, logger, parent)
57 {
58         setupUI_Emu();
59         retranslateUi();
60 }
61
62
63 META_MainWindow::~META_MainWindow()
64 {
65 }
66
67 //QT_END_NAMESPACE
68
69
70