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
David Cazier
CGoGN
Commits
629a9b28
Commit
629a9b28
authored
Apr 01, 2015
by
Sylvain Thery
Browse files
add fileDialog slot for python
parent
c405fa97
Changes
2
Hide whitespace changes
Inline
Side-by-side
SCHNApps/include/schnapps.h
View file @
629a9b28
...
...
@@ -129,8 +129,6 @@ public:
void
addMenuAction
(
Plugin
*
plugin
,
const
QString
&
menuPath
,
QAction
*
action
);
void
removeMenuAction
(
Plugin
*
plugin
,
QAction
*
action
);
void
statusBarMessage
(
const
QString
&
msg
,
int
msec
);
public
slots
:
void
aboutSCHNApps
();
void
aboutCGoGN
();
...
...
@@ -141,6 +139,13 @@ public slots:
void
loadPythonScriptFromFile
(
const
QString
&
fileName
);
void
statusBarMessage
(
const
QString
&
msg
,
int
msec
);
QString
openFileDialog
(
const
QString
&
title
,
const
QString
&
dir
=
QString
(),
const
QString
&
filter
=
QString
());
QString
saveFileDialog
(
const
QString
&
title
,
const
QString
&
dir
=
QString
(),
const
QString
&
filter
=
QString
());
private
slots
:
void
loadPythonScriptFromFileDialog
();
...
...
SCHNApps/src/schnapps.cpp
View file @
629a9b28
...
...
@@ -928,6 +928,21 @@ void SCHNApps::statusBarMessage(const QString& msg, int msec)
statusbar
->
showMessage
(
msg
,
msec
);
}
QString
SCHNApps
::
openFileDialog
(
const
QString
&
title
,
const
QString
&
dir
,
const
QString
&
filter
)
{
return
QFileDialog
::
getOpenFileName
(
this
,
title
,
dir
,
filter
);
}
QString
SCHNApps
::
saveFileDialog
(
const
QString
&
title
,
const
QString
&
dir
,
const
QString
&
filter
)
{
return
QFileDialog
::
getSaveFileName
(
this
,
title
,
dir
,
filter
);
}
}
// namespace SCHNApps
}
// namespace CGoGN
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