2010-09-10 09:14:48 +08:00
|
|
|
/*
|
|
|
|
This file is part of Mitsuba, a physically based rendering system.
|
|
|
|
|
2011-04-14 21:15:59 +08:00
|
|
|
Copyright (c) 2007-2011 by Wenzel Jakob and others.
|
2010-09-10 09:14:48 +08:00
|
|
|
|
|
|
|
Mitsuba is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License Version 3
|
|
|
|
as published by the Free Software Foundation.
|
|
|
|
|
|
|
|
Mitsuba is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-04-14 21:15:59 +08:00
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2010-09-10 09:14:48 +08:00
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2010-08-12 20:36:51 +08:00
|
|
|
#if !defined(__IMPORTDLG_H)
|
|
|
|
#define __IMPORTDLG_H
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ImportDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ImportDialog : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2010-08-27 15:45:33 +08:00
|
|
|
ImportDialog(QWidget *parent, FileResolver *resolver);
|
2010-08-12 20:36:51 +08:00
|
|
|
~ImportDialog();
|
2010-08-13 02:01:08 +08:00
|
|
|
public slots:
|
|
|
|
void accept();
|
|
|
|
protected slots:
|
|
|
|
void on_inputBrowse_clicked(bool checked);
|
|
|
|
void on_directoryBrowse_clicked(bool checked);
|
|
|
|
void on_adjustmentBrowse_clicked(bool checked);
|
2010-11-04 09:10:30 +08:00
|
|
|
void onLocateResource(const fs::path &path, fs::path *target);
|
2010-08-13 02:01:08 +08:00
|
|
|
void refresh();
|
2010-08-12 20:36:51 +08:00
|
|
|
protected:
|
|
|
|
void changeEvent(QEvent *e);
|
|
|
|
private:
|
|
|
|
Ui::ImportDialog *ui;
|
2010-08-27 15:45:33 +08:00
|
|
|
ref<FileResolver> m_resolver;
|
2010-08-12 20:36:51 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __IMPORTDLG_H
|