12 #ifndef CXIMPORTWIDGET_H
13 #define CXIMPORTWIDGET_H
17 #include "org_custusx_core_filemanager_Export.h"
35 void finishedImporting();
36 void parentCandidatesUpdated();
39 void importButtonClicked();
40 void cancelButtonClicked();
41 void addMoreFilesButtonClicked();
42 void removeWidget(QWidget *widget);
43 void removeRowFromTableAndRemoveFilenameFromImportList();
45 void tableItemSelected(
int currentRow,
int currentColumn,
int previousRow,
int previousColumn);
46 void cleanUpAfterImport();
49 QStringList openFileBrowserForSelectingFiles();
50 QString generateFileTypeFilter()
const;
52 QString generateUid(QString filename)
const;
53 void generateParentCandidates();
54 int insertDataIntoTable(QString filename, std::vector<DataPtr> data);
55 int findRowIndexContainingButton(QPushButton *button)
const;
58 QTableWidget* mTableWidget;
59 QStringList mTableHeader;
60 int mSelectedIndexInTable;
62 QStackedWidget *mStackedWidget;
64 QStringList mFileNames;
65 std::vector<DataPtr> mParentCandidates;
66 std::vector<DataPtr> mNotImportedData;
71 QVBoxLayout * mTopLayout;
75 #endif // CXIMPORTWIDGET_H