void MainWindow::homeSlot() { MainWidget *mw = new MainWidget(); ui.scrollArea->setWidget(mw); WidgetFactory::SetCurrentWidget(WidgetFactory::Home); connect(mw, SIGNAL(startSignal()), this, SLOT(reportSlot())); connect(mw, SIGNAL(recordSignal(QString)), this, SLOT(recordSlot(QString))); changeSlot(""); }
void MainWindow::reportSlot() { //ReportFactory *rf = new ReportFactory(); //QWidget *report = rf->CreateReport(); QWidget *report = ReportFactory::CreateReport(); ui.scrollArea->setWidget(report); WidgetFactory::SetCurrentWidget(WidgetFactory::Report); //关闭报表 connect(report, SIGNAL(closeSignal()), this, SLOT(homeSlot())); //病案库 connect(report, SIGNAL(recordSignal()), this, SLOT(recordSlot())); //采集图像 connect(report, SIGNAL(cameraSignal()), this, SLOT(cameraSlot())); //处理图像 connect(report, SIGNAL(imageSignal()), this, SLOT(imageSlot())); //新建清空图片label connect(report, SIGNAL(newSignal()), this, SLOT(changeSlot())); FileCentre *fc = FileCentre::GetInstance(); QString path = fc->GetRecordPath(); changeSlot(path); }
void AnimationEditor::recordAt(int frame) { animation_->setActualNetworkAsKeyvalues((float)frame/30.f); emit recordSignal(); }
void AnimationEditor::record() { animation_->setActualNetworkAsKeyvalues((float)currentFrame_/30.0f); emit recordSignal(); }