OSDN Git Service

6f852dd01ab5377f0609140b3a4808f09651fd3f
[csp-qt/common_source_project-fm7.git] / source / src / qt / machines / pc9801 / menuclasses.h
1
2 #ifndef _CSP_QT_MENUCLASSES_H
3 #define _CSP_QT_MENUCLASSES_H
4
5 #include "commonclasses.h"
6 #include "mainwidget.h"
7
8 // This extends class CSP_MainWindow as Ui_MainWindow.
9 // You may use this as 
10 QT_BEGIN_NAMESPACE
11
12 class USING_FLAGS;
13 class Object_Menu_Control_98: public Object_Menu_Control
14 {
15         Q_OBJECT
16 public:
17         Object_Menu_Control_98(QObject *parent, USING_FLAGS *p);
18         ~Object_Menu_Control_98();
19 signals:
20         int sig_sound_device(int);
21         int sig_device_type(int);
22 public slots:
23         void do_set_memory_wait(bool);
24         void do_set_egc(bool);
25         void do_set_gdc_fast(bool);
26         void do_set_ram_512k(bool);     
27         void do_set_init_memsw(bool);
28         void do_set_enable_v30(bool flag);
29 signals:
30         int sig_emu_update_config();
31 };
32
33 class Action_Control_98 : public Action_Control
34 {
35         Q_OBJECT
36 public:
37         Object_Menu_Control_98 *pc98_binds;
38         Action_Control_98(QObject *parent, USING_FLAGS *p);
39         ~Action_Control_98();
40 };
41
42 class QMenu;
43 class QActionGroup;
44 class Ui_MainWindow;
45 class CSP_Logger;
46 class META_MainWindow : public Ui_MainWindow {
47         Q_OBJECT
48 protected:
49         QActionGroup   *actionGroup_SoundDevice;
50         QMenu *menu_Emu_SoundDevice;
51         Action_Control_98 *actionRAM_512K;
52         Action_Control_98 *actionINIT_MEMSW;
53         Action_Control_98 *actionGDC_FAST;
54 #if defined(HAS_I286) || defined(HAS_I386) || defined(HAS_I486) || defined(HAS_PENTIUM)
55         Action_Control_98 *actionSUB_V30;
56 #endif
57 #if defined(SUPPORT_EGC)
58         Action_Control_98 *actionEGC;
59 #endif
60 #if defined(_PC98DO)
61         Action_Control_98 *actionMemoryWait;
62 #endif   
63         void setupUI_Emu(void);
64         void retranslateUi(void);
65 public:
66         META_MainWindow(USING_FLAGS *p, CSP_Logger *logger, QWidget *parent = 0);
67         ~META_MainWindow();
68 };
69
70 QT_END_NAMESPACE
71
72 #endif // END