示例#1
0
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
	ui.setupUi(this);
	ui.pbClose->setToolTip(QStringLiteral("关闭软件"));
	sa = NULL;

	//加载界面窗体
	homeSlot();

	//关闭
	connect(ui.pbClose, SIGNAL(clicked()), this, SLOT(close()));
	//视频窗体全屏信号
	connect(this, SIGNAL(fullScreen(QString)), this, SLOT(callSlot(QString)));

	QString hint = "";
	FileCentre *fc = FileCentre::GetInstance();
	fc->ReadSystemValue("windowhint", hint);
	if(hint == "1")
	{
		setWindowState(Qt::WindowFullScreen);
	}
	else
	{
		setWindowState( Qt::WindowMaximized );
	}
}
示例#2
0
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)));

}
示例#3
0
OptionsView::OptionsView(QObject *parent) : QWidgetAction(parent)
{
    // Au départ le système est à l'arrêt
    _bEnPause = true;

    initComps();
    etatInitialComps();

    // Signaux
    QObject::connect(_startAction, SIGNAL(triggered()), this, SLOT(startPauseSlot()));
    QObject::connect(_restartAction, SIGNAL(triggered()), this, SLOT(restartSlot()));
    QObject::connect(_exercicesAction, SIGNAL(triggered()), this, SLOT(exercicesSlot()));
    QObject::connect(_astucesAction, SIGNAL(triggered()), this, SLOT(astuceSlot()));
    QObject::connect(_homeAction, SIGNAL(triggered()), this, SLOT(homeSlot()));

}
示例#4
0
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);
}