Commit 2771d42f authored by ledig's avatar ledig

[ADD] VC uses its native opendialog for datasets, the unnative function loads...

[ADD] VC uses its native opendialog for datasets, the unnative function loads an extra dll so time until opendialog is there is now drastically shortend
parent 67c64abf
......@@ -674,6 +674,17 @@ void WMainWindow::projectLoad()
void WMainWindow::openLoadDialog()
{
#ifdef _MSC_VER
QStringList fileNames;
QString filters;
filters = QString::fromStdString( std::string( "Known file types (*.cnt *.edf *.asc *.nii *.nii.gz *.fib);;" )
+ std::string( "EEG files (*.cnt *.edf *.asc);;" )
+ std::string( "NIfTI (*.nii *.nii.gz);;" )
+ std::string( "Fibers (*.fib);;" )
+ std::string( "Any files (*)" ) );
fileNames = QFileDialog::getOpenFileNames( this, "Open", "", filters );
#else
QFileDialog fd;
fd.setFileMode( QFileDialog::ExistingFiles );
......@@ -690,6 +701,7 @@ void WMainWindow::openLoadDialog()
{
fileNames = fd.selectedFiles();
}
#endif
std::vector< std::string > stdFileNames;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment