NorMIT-nav  2023.01.05-dev+develop.0da12
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 }
cx::ImportWidget
Definition: cxImportWidget.h:42
cx
Namespace for all CustusX production code.
Definition: cx_dev_group_definitions.h:13
cxImportWidget.h
cxExportWidget.h
cx::ExportWidget
Definition: cxExportWidget.h:22
cx::ImportExportGuiExtenderService::createWidgets
std::vector< CategorizedWidget > createWidgets() const
Definition: cxImportExportGuiExtenderService.cpp:28
cx::FileManagerServiceProxy::create
static FileManagerServicePtr create(ctkPluginContext *context)
Definition: cxFileManagerServiceProxy.cpp:19
cx::VisServices::create
static VisServicesPtr create(ctkPluginContext *context)
Definition: cxVisServices.cpp:17
cx::ImportExportGuiExtenderService::ImportExportGuiExtenderService
ImportExportGuiExtenderService(ctkPluginContext *context)
Definition: cxImportExportGuiExtenderService.cpp:22
cxFileManagerServiceProxy.h
cx::GUIExtenderService::CategorizedWidget
Definition: cxGUIExtenderService.h:44
cxVisServices.h
cxImportExportGuiExtenderService.h