CustusX  22.04
An IGT application
cxImportExportGuiExtenderService.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
13 
14 #include "cxExportWidget.h"
15 #include "cxImportWidget.h"
17 #include "cxVisServices.h"
18 
19 namespace cx
20 {
21 
23 {
24  mFileManager = FileManagerServiceProxy::create(context);
25  mVisServices = VisServices::create(context);
26 }
27 
28 std::vector<GUIExtenderService::CategorizedWidget> ImportExportGuiExtenderService::createWidgets() const
29 {
30  std::vector<CategorizedWidget> retval;
31  retval.push_back(GUIExtenderService::CategorizedWidget( new ExportWidget(mFileManager, mVisServices), "File"));
32  retval.push_back(GUIExtenderService::CategorizedWidget( new ImportWidget(mFileManager, mVisServices), "File"));
33  return retval;
34 }
35 }
static VisServicesPtr create(ctkPluginContext *context)
std::vector< CategorizedWidget > createWidgets() const
static FileManagerServicePtr create(ctkPluginContext *context)
Namespace for all CustusX production code.