コード例 #1
0
ファイル: MainWindow.cpp プロジェクト: wujingtao/yindaojing
void MainWindow::recordSlot(QString from)
{
	QWidget* record = RecordFactory::CreateRecord(from);
	ui.scrollArea->setWidget(record);	
	WidgetFactory::SetCurrentWidget(WidgetFactory::Record);

	connect(record, SIGNAL(closeSignal()), this, SLOT(homeSlot()));
	connect(record, SIGNAL(reportSignal()), this, SLOT(reportSlot()));
	connect(record, SIGNAL(changeSignal(QString)), this, SLOT(changeSlot(QString)));

}
コード例 #2
0
ファイル: MainWindow.cpp プロジェクト: wujingtao/yindaojing
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("");
}
コード例 #3
0
ファイル: MainWindow.cpp プロジェクト: wujingtao/yindaojing
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);
}
コード例 #4
0
ファイル: validationItem.C プロジェクト: HeyJJ/ball
		void ValidationItem::createActions()
		{
			if(type_>2 && type_!=7) // for other types, redoing the validation makes no sense, since that would always yield the same result
			{	
				QAction* redo_action = new QAction("Redo", this);
				connect(redo_action, SIGNAL(triggered()), this, SLOT(changeSlot()));	
				context_menu_actions_.push_back(redo_action);
			}
			QAction* show_values = new QAction("Show predictions", this);
			connect(show_values, SIGNAL(triggered()), this, SLOT(showPredictionDialog()));
			context_menu_actions_.push_back(show_values);
			
			if(type_==5)
			{
				QAction* show_plotter = new QAction(QIcon(""),tr("Plot all predictions"), this);
				connect(show_plotter, SIGNAL(triggered()), this, SLOT(showPlotter()));
				context_menu_actions_.push_back(show_plotter);
			}
		}