54 #include "QtFileDialog.hh" 56 #include <OpenMesh/Core/IO/IOManager.hh> 58 #include <QFileDialog> 59 #include <QMessageBox> 71 const QString& _caption,
72 const QString& _filter,
73 const QString& _start)
76 QFileDialog::getOpenFileName( _parent,
87 getOpenMeshName(QWidget* _parent,
88 const QString& _caption,
89 const QString& _start)
92 ACG::getOpenFileName(_parent,
103 getOpenFileNames(QWidget* _parent,
104 const QString& _caption,
105 const QString& _filter,
106 const QString& _start)
109 QFileDialog::getOpenFileNames( _parent,
120 getOpenMeshNames(QWidget* _parent,
121 const QString& _caption,
122 const QString& _start)
125 ACG::getOpenFileNames(_parent,
137 const QString& _caption,
138 const QString& _filter,
140 const QString& _start)
143 QFileDialog::getSaveFileName ( _parent,
151 if (_askOW && !filename.isEmpty() && QFile(filename).exists())
154 s += QString(
"The file\n ");
156 s += QString(
"\nalready exists.\n\n");
157 s += QString(
"Do you want to overwrite it?");
159 if (QMessageBox::warning(_parent,
"Overwrite", s,
160 QMessageBox::Yes | QMessageBox::Default,
161 QMessageBox::No | QMessageBox::Escape)
163 return QString::null;
171 getSaveMeshName(QWidget* _parent,
172 const QString& _caption,
174 const QString& _start)
177 ACG::getSaveFileName(_parent,
180 qt_write_filters().c_str(),
Namespace providing different geometric functions concerning angles.
_IOManager_ & IOManager()
QString getOpenFileName(const QString &configProperty, QWidget *parent, const QString &caption, const QString &defaultDir, const QString &filter, QString *selectedFilter, QFileDialog::Options options)
QString getSaveFileName(const QString &configProperty, QWidget *parent, const QString &caption, const QString &defaultDir, const QString &filter, QString *selectedFilter, QFileDialog::Options options, const QString &defaultSuffix)