mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
155cca0c9a
Fix folder name. Keep Qt optional. Move open dialogue from doc to tools. Rename 'load' to 'open'. Deleted wrong comment.
28 lines
840 B
C++
28 lines
840 B
C++
#include <QVBoxLayout>
|
|
#include <QDialogButtonBox>
|
|
|
|
#include <components/fileorderlist/datafileslist.hpp>
|
|
|
|
#include "opendialog.hpp"
|
|
|
|
OpenDialog::OpenDialog(QWidget * parent) : QDialog(parent)
|
|
{
|
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
|
mFileSelector = new DataFilesList(mCfgMgr, this);
|
|
layout->addWidget(mFileSelector);
|
|
mFileSelector->setupDataFiles();
|
|
|
|
buttonBox = new QDialogButtonBox(QDialogButtonBox::Open | QDialogButtonBox::Cancel, Qt::Horizontal, this);
|
|
connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
|
|
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
|
layout->addWidget(buttonBox);
|
|
|
|
setLayout(layout);
|
|
setWindowTitle(tr("Open"));
|
|
}
|
|
|
|
void OpenDialog::getFileList(std::vector<boost::filesystem::path>& paths)
|
|
{
|
|
mFileSelector->getSelectedFiles(paths);
|
|
}
|