示例#1
0
MainWindowActions::MainWindowActions(VisServicesPtr services, QWidget *parent) :
	QObject(parent),
	mServices(services),
	mScreenShotWriter(ScreenShotImageWriter::create(services->patient()))
{
	this->createActions();
}
RecordTrackingWidget::RecordTrackingWidget(XmlOptionFile options,
										   AcquisitionServicePtr acquisitionService,
										   VisServicesPtr services,
										   QString category,
										   QWidget* parent) :
	QWidget(parent),
	mServices(services),
	mOptions(options),
	mAcquisitionService(acquisitionService)
{
	QVBoxLayout* mVerticalLayout = new QVBoxLayout(this);

	mToolSelector = StringPropertySelectTool::New(services->tracking());

	mSelectRecordSession.reset(new SelectRecordSession(mOptions, acquisitionService, services));
	connect(mSelectRecordSession->getSessionSelector().get(), &StringProperty::changed, this, &RecordTrackingWidget::onMergeChanged);

	mMergeWithExistingSession = BoolProperty::initialize("mergerecording", "Merge",
														 "Merge new recording with selected recorded session",
														 false, QDomNode());
	connect(mMergeWithExistingSession.get(), &BoolProperty::changed, this, &RecordTrackingWidget::onMergeChanged);

	AcquisitionService::TYPES context(AcquisitionService::tTRACKING);
	mRecordSessionWidget = new RecordSessionWidget(mAcquisitionService, this, context, category);

	mVerticalLayout->setMargin(0);

	mToolSelectorWidget = sscCreateDataWidget(this, mToolSelector);
	mVerticalLayout->addWidget(mToolSelectorWidget);
	mVerticalLayout->addWidget(mRecordSessionWidget);
	mVerticalLayout->addWidget(sscCreateDataWidget(this, mMergeWithExistingSession));
	mVerticalLayout->addWidget(new LabeledComboBoxWidget(this, mSelectRecordSession->getSessionSelector()));

	mObscuredListener.reset(new WidgetObscuredListener(this));
	connect(mObscuredListener.get(), SIGNAL(obscured(bool)), this, SLOT(obscuredSlot(bool)));
}
示例#3
0
ScreenVideoProvider::ScreenVideoProvider(VisServicesPtr services) :
	mServices(services),
    mWriter(services->patient())
{

}