-#ifndef __CPEXTENSIONS__QT__DICOMSERIESSELECTORWIDGET__H__
-#define __CPEXTENSIONS__QT__DICOMSERIESSELECTORWIDGET__H__
+#ifndef __cpExtensions__QT__DicomSeriesSelectorWidget__H__
+#define __cpExtensions__QT__DicomSeriesSelectorWidget__H__
#include <cpExtensions/Config.h>
#ifdef cpExtensions_QT4
#include <QWidget>
+#include <gdcmSerieHelper.h>
// -------------------------------------------------------------------------
namespace Ui
public:
typedef DicomSeriesSelectorWidget Self;
+ protected:
+ /**
+ */
+ class _GDCMSerieHelper
+ : public gdcm::SerieHelper
+ {
+ public:
+ _GDCMSerieHelper( )
+ {
+ }
+ virtual ~_GDCMSerieHelper( )
+ {
+ }
+ template< class _TIt >
+ void SetFileNames( _TIt b, _TIt e )
+ {
+ for( _TIt i = b; i != e; ++i )
+ this->AddFileName( *i );
+ }
+ };
+
public:
explicit DicomSeriesSelectorWidget( QWidget* parent = 0 );
virtual ~DicomSeriesSelectorWidget( );
QString startDir( ) const;
void setStartDir( const QString& dir, bool build = true );
- std::vector< std::string > selectedFilenames( );
+ std::vector< std::string >* selectedFilenames( );
protected slots:
void _Choose( );
protected:
Ui::DicomSeriesSelectorWidget* m_UI;
+ _GDCMSerieHelper m_GDCMHelper;
+ std::map< std::string, std::vector< std::string > > m_Series;
};
} // ecapseman
#endif // cpExtensions_QT4
-#endif // __CPEXTENSIONS__QT__DICOMSERIESSELECTORWIDGET__H__
+#endif // __cpExtensions__QT__DicomSeriesSelectorWidget__H__
// eof - $RCSfile$