OSDN Git Service

4546485cb7a7cbe084485beb0198adc54e33ba23
[csp-qt/common_source_project-fm7.git] / source / src / qt / gui / qt_dialogs.cpp
1 /*
2         Skelton for retropc emulator
3
4         Author : K.Ohta <whatisthis.sowhat _at_ gmail.com>
5         Date   : 2015.01.07
6
7         [Qt dialogs]
8 */
9
10 #include <stdio.h>
11 #include <string>
12 #include <vector>
13 #include "common.h"
14 //#include "emu.h"
15 #include "qt_main.h"
16 #include "qt_dialogs.h"
17
18 //#include "csp_logger.h"
19 #include "commonclasses.h"
20 //#include "menuclasses.h"
21
22 void CSP_DiskParams::_open_disk(QString s)
23 {
24         int d = getDrive();
25         //int n = d + CSP_LOG_TYPE_VFILE_FLOPPY;
26         //csp_logger->debug_log(CSP_LOG_INFO, n, "Try to open media image: %s", s.toLocal8Bit().constData());
27         emit do_open_disk(d, s);
28 }
29
30 void CSP_DiskParams::_open_cart(QString s)
31 {
32         int d = getDrive();
33         emit sig_open_cart(d, s);
34 }
35 void CSP_DiskParams::_open_cmt(QString s)
36 {
37         emit do_open_cmt(play, s);
38 }
39
40 void CSP_DiskParams::_open_binary(QString s) {
41         emit sig_open_binary_file(drive, s, play);
42 }
43