42 #include <QPushButton>
44 #include <QVBoxLayout>
45 #include <QFileDialog>
53 currentFileName(currentFileName),
54 mustAlreadyExist(mustAlreadyExist)
56 QPushButton *changeButton =
new QPushButton(
"Change Path",
this);
57 connect(changeButton, SIGNAL(clicked(
bool)),
this, SLOT(
getNewFileName()));
58 pathLabel =
new QLabel(currentFileName,
this);
59 QVBoxLayout *layout =
new QVBoxLayout(
this);
60 layout->addWidget(changeButton);
77 defaultPath = QDir::homePath();
83 QString newFileName = QFileDialog::getOpenFileName(
this, tr(
"File"), defaultPath);
84 if(!newFileName.isNull()){
89 QString newFileName = QFileDialog::getSaveFileName(
this, tr(
"File"), defaultPath);
90 if(!newFileName.isNull()){