Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
CGoGN
CGoGN
Commits
629a9b28
Commit
629a9b28
authored
Apr 01, 2015
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fileDialog slot for python
parent
c405fa97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
SCHNApps/include/schnapps.h
SCHNApps/include/schnapps.h
+7
-2
SCHNApps/src/schnapps.cpp
SCHNApps/src/schnapps.cpp
+15
-0
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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