Commit 629a9b28 authored by Sylvain Thery's avatar Sylvain Thery

add fileDialog slot for python

parent c405fa97
......@@ -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();
......
......@@ -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
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