| 990 | } |
| 991 | |
| 992 | void MainWindow::on_actionOpenRRCFile_triggered() |
| 993 | { |
| 994 | QString szFile = QFileDialog::getOpenFileName( |
| 995 | this, |
| 996 | tr("Open rabbit remote control file"), |
| 997 | RabbitCommon::CDir::Instance()->GetDirUserData(), |
| 998 | tr("Rabbit remote control Files (*.rrc);;All files(*.*)")); |
| 999 | if(szFile.isEmpty()) return; |
| 1000 | |
| 1001 | COperate* p = m_Manager.LoadOperate(szFile); |
| 1002 | if(nullptr == p) |
| 1003 | { |
| 1004 | slotStatusMessage(tr("Load file fail: ") + szFile, MessageLevel::Error); |
| 1005 | return; |
| 1006 | } |
| 1007 | |
| 1008 | Start(p, true); |
| 1009 | } |
| 1010 | |
| 1011 | void MainWindow::slotStart() |
| 1012 | { |
nothing calls this directly
no test coverage detected