Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Etienne Schmitt
CGoGN
Commits
f84dbc6f
Commit
f84dbc6f
authored
Mar 08, 2013
by
Pierre Kraemer
Browse files
allow multiple file import at once
parent
c990b7f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
SCHNApps/Plugins/importSurface/src/importSurface.cpp
View file @
f84dbc6f
...
...
@@ -56,8 +56,12 @@ MapHandlerGen* ImportSurfacePlugin::importFromFile(const QString& fileName)
void
ImportSurfacePlugin
::
importFromFileDialog
()
{
QString
fileName
=
QFileDialog
::
getOpenFileName
(
m_window
,
"Import file"
,
m_window
->
getAppPath
(),
"Mesh Files (*.ply *.off *.trian)"
);
importFromFile
(
fileName
);
QStringList
fileNames
=
QFileDialog
::
getOpenFileNames
(
m_window
,
"Import surfaces"
,
m_window
->
getAppPath
(),
"Surface mesh Files (*.ply *.off *.trian)"
);
QStringList
::
Iterator
it
=
fileNames
.
begin
();
while
(
it
!=
fileNames
.
end
())
{
importFromFile
(
*
it
);
++
it
;
}
}
#ifndef DEBUG
...
...
SCHNApps/Plugins/importVolume/src/importVolume.cpp
View file @
f84dbc6f
...
...
@@ -56,8 +56,12 @@ MapHandlerGen* ImportVolumePlugin::importFromFile(const QString& fileName)
void
ImportVolumePlugin
::
importFromFileDialog
()
{
QString
fileName
=
QFileDialog
::
getOpenFileName
(
m_window
,
"Import file"
,
m_window
->
getAppPath
(),
"Mesh Files (*.node *.ts *.off *.tet)"
);
importFromFile
(
fileName
);
QStringList
fileNames
=
QFileDialog
::
getOpenFileNames
(
m_window
,
"Import volumes"
,
m_window
->
getAppPath
(),
"Volume mesh Files (*.node *.ts *.off *.tet)"
);
QStringList
::
Iterator
it
=
fileNames
.
begin
();
while
(
it
!=
fileNames
.
end
())
{
importFromFile
(
*
it
);
++
it
;
}
}
#ifndef DEBUG
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment