12 #ifndef CXIMPORTWIDGET_H 13 #define CXIMPORTWIDGET_H 18 #include "org_custusx_core_filemanager_Export.h" 23 class QProgressDialog;
27 class ImportDataTypeWidget;
36 void tableItemSelected(
int currentRow,
int currentColumn,
int previousRow,
int previousColumn);
51 void finishedImporting();
52 void parentCandidatesUpdated();
55 void addFilesForImportWithDialogTriggerend();
56 void importButtonClicked();
57 void cancelButtonClicked();
59 void removeWidget(QWidget *widget);
60 void removeRowFromTableAndRemoveFilenameFromImportList();
62 void tableItemSelected(
int currentRow,
int currentColumn,
int previousRow,
int previousColumn);
63 void cleanUpAfterImport();
66 QStringList openFileBrowserForSelectingFiles();
67 QString generateFileTypeFilter()
const;
69 QString generateUid(QString filename)
const;
70 void generateParentCandidates();
71 int insertDataIntoTable(QString filename, std::vector<DataPtr> data);
73 QStringList removeDirIfSubdirIsIncluded(QStringList importFiles);
74 void showProgressDialog(QProgressDialog &progress);
76 QTableWidget* mTableWidget;
77 QStringList mTableHeader;
78 int mSelectedIndexInTable;
80 QStackedWidget *mStackedWidget;
82 QStringList mFileNames;
83 std::vector<DataPtr> mParentCandidates;
84 std::vector<DataPtr> mNotImportedData;
89 QVBoxLayout * mTopLayout;
93 #endif // CXIMPORTWIDGET_H boost::shared_ptr< class FileManagerService > FileManagerServicePtr
virtual ~SimpleImportDataDialog()
boost::shared_ptr< class VisServices > VisServicesPtr
Namespace for all CustusX production code.