Skip to content

Commit

Permalink
fix typos and copy customplots
Browse files Browse the repository at this point in the history
  • Loading branch information
iltommi committed May 14, 2024
1 parent 894b57f commit eb254f6
Show file tree
Hide file tree
Showing 16 changed files with 47 additions and 86 deletions.
2 changes: 1 addition & 1 deletion plugins/Colorscale/Colorscale.cc
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void Colorscale::addItem(QString my_file) {
}

void Colorscale::addPaletteFile() {
QStringList fnames = QFileDialog::getOpenFileNames(this,tr("Open Palette File"),nullptr,tr("Any files")+QString(" (*)"));
QStringList fnames = QFileDialog::getOpenFileNames(this,tr("Open Palette File"),nullptr,tr("Any file")+QString(" (*)"));
foreach (QString my_file, fnames) {
napp->addPaletteFile(my_file);
QSettings my_set("neutrino","");
Expand Down
36 changes: 1 addition & 35 deletions plugins/Find_peaks/Find_peaks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,40 +161,6 @@ bool polynomialfit(std::vector<double> dx, std::vector<double> dy, std::vector<d
return true;
}

//template <typename T>
//void MovingAverage(QVector <T> &values, int view) {
// const auto len = values.size();
// if (len == 0 || view < 2) { return; }

// QVector<T> result;
// result.resize(len+view);

// int i = 0;
// const T viewf = static_cast<T>(view);
// T sum = values[0] * viewf;
// while (i < view) {
// sum += values[i] - values[0];
// result[i]=sum;
// i++;
// }
// while (i < len) {
// sum += values[i] - values[i - view];
// result[i]=sum;
// i++;
// }
// while (i < len+view) {
// sum += values[len-1] - values[i - view];
// result[i]=sum;
// i++;
// }

// const T invViewf = 1.0 / viewf;
// for (int i=0; i<values.size();i++) {
// values[i]=result[i+view/2]*invViewf;
// }

//}

void Find_peaks::updatePlot() {
if (currentBuffer && isVisible()) {
saveDefaults();
Expand Down Expand Up @@ -358,7 +324,7 @@ void Find_peaks::on_actionClipboard_triggered() {
}

void Find_peaks::on_actionTxt_triggered() {
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save data"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any files (*)"));
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save data"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any file (*)"));
if (!fnametmp.isEmpty()) {
setProperty("NeuSave-fileTxt",fnametmp);
QFile t(fnametmp);
Expand Down
12 changes: 6 additions & 6 deletions plugins/Ghost_fringes/Ghost_fringes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,19 +89,19 @@ void Ghost_fringes::doGhost () {
double cr = cos((angleCarrier->value()) * _phys_deg);
double sr = sin((angleCarrier->value()) * _phys_deg);

double lambda=sqrt(pow(cr*dx,2)+pow(sr*dy,2))/(M_PI*widthCarrier->value());
// double thick_norm= resolution->value()/M_PI;
// double lambda_norm=M_PI*widthCarrier->value()/sqrt(pow(cr*dx,2)+pow(sr*dy,2));
// DEBUG(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " << lambda_norm << " " << thick_norm << " : " << sqrt(pow(cr*dx,2)+pow(sr*dy,2)));
// double lambda=sqrt(pow(cr*dx,2)+pow(sr*dy,2))/(M_PI*widthCarrier->value());
double thick_norm= resolution->value()/M_PI;
double lambda_norm=M_PI*widthCarrier->value()/sqrt(pow(cr*dx,2)+pow(sr*dy,2));
// DEBUG(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " << lambda_norm << " " << thick_norm << " : " << sqrt(pow(cr*dx,2)+pow(sr*dy,2)));

nPhysD *myfilter=new nPhysD(dx,dy,0.0,"Filter");
nPhysD *myspectrum=new nPhysD(dx,dy,0.0,"Spectrum");
for (unsigned int x=0;x<dx;x++) {
for (unsigned int y=0;y<dy;y++) {
double xr = xx[x]*cr - yy[y]*sr;
double yr = xx[x]*sr + yy[y]*cr;
double e_tot = 1.0-exp(-pow(yr,2)/lambda)/(1.0+exp(lambda-std::abs(xr)));
// double e_tot = 1.0-exp(-pow(yr/thick_norm,2))*exp(-pow(std::abs(xr)*lambda_norm-M_PI, 2));
// double e_tot = 1.0-exp(-pow(yr,2)/lambda)/(1.0+exp(lambda-std::abs(xr)));
double e_tot = 1.0-exp(-pow(yr/thick_norm,2))*exp(-pow(std::abs(xr)*lambda_norm-M_PI, 2));
myfilter->set(x,y,e_tot);
myspectrum->set(x,y,imageFFT.point(x,y).mod());
imageFFT.set(x,y,imageFFT.point(x,y) * e_tot);
Expand Down
4 changes: 2 additions & 2 deletions plugins/JavaScript/JavaScript.cc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void JavaScript::runIt() {
}

void JavaScript::on_actionOpen_File_triggered() {
QString fname=QFileDialog::getOpenFileName(this,tr("Open JS file"),property("NeuSave-fileJS").toString(),tr("JS file")+QString(" (*.js);;")+tr("Any files")+QString(" (*)"));
QString fname=QFileDialog::getOpenFileName(this,tr("Open JS file"),property("NeuSave-fileJS").toString(),tr("JS file")+QString(" (*.js);;")+tr("Any file")+QString(" (*)"));
if (!fname.isEmpty()) {
setProperty("NeuSave-fileJS", fname);
QFile f(fname);
Expand All @@ -88,7 +88,7 @@ void JavaScript::on_actionOpen_File_triggered() {
}

void JavaScript::on_actionSave_File_triggered() {
QString fname=QFileDialog::getSaveFileName(this,tr("Save JS file"),property("NeuSave-fileJS").toString(),tr("JS file")+QString(" (*.js);;")+tr("Any files")+QString(" (*)"));
QString fname=QFileDialog::getSaveFileName(this,tr("Save JS file"),property("NeuSave-fileJS").toString(),tr("JS file")+QString(" (*.js);;")+tr("Any file")+QString(" (*)"));
if (!fname.isEmpty()) {
setProperty("NeuSave-fileJS", fname);
QFile f(fname);
Expand Down
17 changes: 1 addition & 16 deletions plugins/MUSE/MUSE.cc
Original file line number Diff line number Diff line change
Expand Up @@ -307,22 +307,7 @@ void MUSE::on_actionMode_toggled() {
}
}

//void MUSE::on_actionExport_triggered () {
// QString ftypes="SVG (*.svg);; PDF (*.PDF);; PNG (*.png);; Any files (*)";
// QString fout = QFileDialog::getSaveFileName(this,tr("Save All Drawings"),property("NeuSave-fileExport").toString(),ftypes);
// if (!fout.isEmpty()) {
// for (int i=0;i<slices->maximum() ; i++) {
// showImagePlane(i);
// QFileInfo fi(fout);
// nparent->exportGraphics(fi.path()+"/"+fi.baseName()+QString("_")+QString("%1").arg(i, 3, 10, QChar('0'))+QString("_")+"."+fi.completeSuffix());
// }
// setProperty("NeuSave-fileExport",fout);
// }

//}

QVariant MUSE::extractData(QString key, QStringList values) {
qDebug() << ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " << key;
key=key.leftJustified(8,' ',true);
QVariant retval;
for(auto &my_str: values) {
Expand Down Expand Up @@ -352,7 +337,7 @@ QVariant MUSE::extractData(QString key, QStringList values) {

void MUSE::loadCube() {
QFileDialog fd;
QString fname=fd.getOpenFileName(this,tr("Open MUSE file"),property("NeuSave-fileMUSE").toString(),tr("MUSE Cube")+QString(" (*.fits);;")+tr("Any files")+QString(" (*)"));
QString fname=fd.getOpenFileName(this,tr("Open MUSE file"),property("NeuSave-fileMUSE").toString(),tr("MUSE Cube")+QString(" (*.fits);;")+tr("Any file")+QString(" (*)"));

if (!fname.isEmpty()) {
fd.close();
Expand Down
2 changes: 1 addition & 1 deletion plugins/Mouse_info/Mouse_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ void Mouse_info::copyPoints() {

void
Mouse_info::export_txt() {
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save data"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any files (*)"));
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save data"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any file (*)"));
if (!fnametmp.isEmpty()) {
setProperty("NeuSave-fileTxt",fnametmp);
QFile t(fnametmp);
Expand Down
2 changes: 1 addition & 1 deletion plugins/OpenHDF5/OpenHdf5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void OpenHdf5::showFile(QString fname) {
}

void OpenHdf5::showFile() {
QStringList fnames=QFileDialog::getOpenFileNames(this,tr("Open HDF file source"),property("NeuSave-fileHDF").toString(),tr("HDF5")+QString(" (*.h5);;")+tr("Any files")+QString(" (*)"));
QStringList fnames=QFileDialog::getOpenFileNames(this,tr("Open HDF file source"),property("NeuSave-fileHDF").toString(),tr("HDF5")+QString(" (*.h5);;")+tr("Any file")+QString(" (*)"));
foreach (QString fname, fnames) {
showFile(fname);
}
Expand Down
4 changes: 2 additions & 2 deletions plugins/PyShell/PyShell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void PyShell::cleanup() {

void PyShell::loadScript(bool execInline) {
QString fname;
fname = QFileDialog::getOpenFileName(this,tr("Open python source"),property("NeuSave-fileScript").toString(),tr("Python script")+QString(" (*.py);;")+tr("Any files")+QString(" (*)"));
fname = QFileDialog::getOpenFileName(this,tr("Open python source"),property("NeuSave-fileScript").toString(),tr("Python script")+QString(" (*.py);;")+tr("Any file")+QString(" (*)"));
if (!fname.isEmpty()) {
setProperty("NeuSave-fileScript",fname);
if (execInline) {
Expand All @@ -197,7 +197,7 @@ void PyShell::runScript(QString cmd) {
saveDefaults();
DEBUG("\n" << cmd.toStdString());
QVariant res=PythonQt::self()->getMainModule().evalScript(cmd);
DEBUG("result " << res.type() << "\n" << res.toString().toStdString());
DEBUG("result " << res.typeId() << "\n" << res.toString().toStdString());
}

void PyShell::runScript() {
Expand Down
2 changes: 1 addition & 1 deletion plugins/PyShell/nPhysPyWrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ QList<nPhysD> nPhysPyWrapper::static_nPhysD_open(QString fname){
}
formats.chop(1);
formats+=");;";
formats+=("Any files (*)");
formats+=("Any file (*)");

fname = QFileDialog::getOpenFileName(nullptr,tr("Open Image(s)"),property("fileOpen").toString(),formats);
}
Expand Down
17 changes: 9 additions & 8 deletions plugins/Visar/Visar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ void Visar::delVisar() {

void Visar::loadSettings(QString my_settings) {
if (my_settings.isEmpty()) {
QString fname = QFileDialog::getOpenFileName(this, tr("Open INI File"),property("NeuSave-fileIni").toString(), tr("INI Files (*.ini *.conf);; Any files (*.*)"));
QString fname = QFileDialog::getOpenFileName(this, tr("Open INI File"),property("NeuSave-fileIni").toString(), tr("INI Files (*.ini *.conf);; Any file (*.*)"));
if (!fname.isNull()) {
setProperty("NeuSave-fileIni",fname);
loadSettings(fname);
Expand Down Expand Up @@ -1415,16 +1415,16 @@ void Visar::doWave(unsigned int k) {
physC imageFFT = imgs[1]->ft2(PHYS_FORWARD);

progress.setValue(progress.value()+1);
double lambda=sqrt(pow(cr*dx,2)+pow(sr*dy,2))/(M_PI*settingsUi[k]->interfringe->value());
//doesntwork double thick_norm= M_PI* settingsUi[k]->resolution->value()/sqrt(pow(sr*dx,2)+pow(cr*dy,2));
//doesntwork double lambda_norm=M_PI*settingsUi[k]->interfringe->value()/sqrt(pow(cr*dx,2)+pow(sr*dy,2));
// double lambda=sqrt(pow(cr*dx,2)+pow(sr*dy,2))/(M_PI*settingsUi[k]->interfringe->value());
double thick_norm= M_PI* settingsUi[k]->resolution->value()/sqrt(pow(sr*dx,2)+pow(cr*dy,2));
double lambda_norm=M_PI*settingsUi[k]->interfringe->value()/sqrt(pow(cr*dx,2)+pow(sr*dy,2));

for (size_t x=0;x<dx;x++) {
for (size_t y=0;y<dy;y++) {
double xr = xx[x]*cr - yy[y]*sr;
double yr = xx[x]*sr + yy[y]*cr;
double e_tot = 1.0-exp(-pow(yr/M_PI,2))/(1.0+exp(lambda-std::abs(xr)));
//doesntwork double e_tot = 1.0-exp(-pow(yr/thick_norm,2))*exp(-pow(std::abs(xr)*lambda_norm-M_PI, 2));
// double e_tot = 1.0-exp(-pow(yr/M_PI,2))/(1.0+exp(lambda-std::abs(xr)));
double e_tot = 1.0-exp(-pow(yr/thick_norm,2))*exp(-pow(std::abs(xr)*lambda_norm-M_PI, 2));
imageFFT.set(x,y,imageFFT.point(x,y) * e_tot);
}
}
Expand Down Expand Up @@ -1753,7 +1753,8 @@ void Visar::getPhase(unsigned int k) {

void
Visar::export_txt_multiple() {
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save VISARs and SOP"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any files (*)"));
qDebug() << property("NeuSave-fileTxt");
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save VISARs and SOP"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any file (*)"));
if (!fnametmp.isEmpty()) {
setProperty("NeuSave-fileTxt", fnametmp);
QFile t(fnametmp);
Expand Down Expand Up @@ -1783,7 +1784,7 @@ Visar::export_txt() {
title=tr("SOP");
break;
}
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save ")+title,property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any files (*)"));
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save ")+title,property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any file (*)"));
if (!fnametmp.isEmpty()) {
setProperty("NeuSave-fileTxt", fnametmp);
QFile t(fnametmp);
Expand Down
4 changes: 2 additions & 2 deletions src/graphics/nCustomPlots.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ void nCustomPlot::get_data(QTextStream &out, QObject *obj) {
}

void nCustomPlot::save_data(){
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save data in text"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any files (*)"));
QString fnametmp=QFileDialog::getSaveFileName(this,tr("Save data in text"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any file (*)"));
if (!fnametmp.isEmpty()) {
setProperty("NeuSave-fileTxt", fnametmp);
QFile t(fnametmp);
Expand Down Expand Up @@ -594,7 +594,7 @@ void nCustomPlot::myAxisDoubleClick(QCPAxis*ax,QCPAxis::SelectablePart,QMouseEve
// SETTINGS
void
nCustomPlot::loadSettings() {
QString fnametmp = QFileDialog::getOpenFileName(this, tr("Open INI File"),property("NeuSave-fileIni").toString(), tr("INI Files (*.ini *.conf);; Any files (*.*)"));
QString fnametmp = QFileDialog::getOpenFileName(this, tr("Open INI File"),property("NeuSave-fileIni").toString(), tr("INI Files (*.ini *.conf);; Any file (*.*)"));
if (!fnametmp.isEmpty()) {
setProperty("NeuSave-fileIni",fnametmp);
QSettings my_set(fnametmp,QSettings::IniFormat);
Expand Down
8 changes: 6 additions & 2 deletions src/graphics/nCustomPlots.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ public slots:
mouseMarker->setVisible(false);
}
nCustomPlot::copy_image();
mouseMarker->setVisible(false);
if(mouseMarker) {
mouseMarker->setVisible(false);
}
}
void export_image() override {
if(mouseMarker) {
Expand Down Expand Up @@ -138,7 +140,9 @@ public slots:
mouseMarker->setVisible(false);
}
nCustomPlot::copy_image();
mouseMarker->setVisible(false);
if(mouseMarker) {
mouseMarker->setVisible(false);
}
}
void export_image() override {
if(mouseMarker) {
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/nLine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void nLine::paste_points() {
}

void nLine::save_points() {
QString fnametmp=QFileDialog::getSaveFileName(&my_pad,tr("Save data in text"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any files (*)"));
QString fnametmp=QFileDialog::getSaveFileName(&my_pad,tr("Save data in text"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any file (*)"));
if (!fnametmp.isEmpty()) {
setProperty("NeuSave-fileTxt", fnametmp);
QFile t(fnametmp);
Expand Down
2 changes: 1 addition & 1 deletion src/nApp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void nApp::copyLog() {
}

void nApp::saveLog(){
QString fnametmp=QFileDialog::getSaveFileName(&log_win,tr("Save Log"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any files (*)"));
QString fnametmp=QFileDialog::getSaveFileName(&log_win,tr("Save Log"),property("NeuSave-fileTxt").toString(),tr("Text files (*.txt *.csv);;Any file (*)"));
if (!fnametmp.isEmpty()) {
setProperty("NeuSave-fileTxt",fnametmp);
QFile t(fnametmp);
Expand Down
7 changes: 6 additions & 1 deletion src/nGenericPan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ void nGenericPan::focusOutEvent(QFocusEvent *event) {
void nGenericPan::loadSettings(QString fname) {
qDebug() << fname;
if (fname.isNull()) {
QString fname = QFileDialog::getOpenFileName(this, tr("Open INI File"),property("NeuSave-fileIni").toString(), tr("INI Files (*.ini *.conf);; Any files (*.*)"));
QString fname = QFileDialog::getOpenFileName(this, tr("Open INI File"),property("NeuSave-fileIni").toString(), tr("INI Files (*.ini *.conf);; Any file (*.*)"));
if (!fname.isNull()) {
setProperty("NeuSave-fileIni",fname);
loadSettings(fname);
Expand Down Expand Up @@ -707,9 +707,12 @@ void nGenericPan::saveDefaults() {
void nGenericPan::loadSettings(QSettings &settings) {
if (settings.childGroups().contains("Properties")) {
settings.beginGroup("Properties");
qDebug() << "----------------- Properties ----------------- " << panName();
foreach(QString my_key, settings.allKeys()) {
qDebug() << my_key << settings.value(my_key);
setProperty(my_key.toStdString().c_str(), settings.value(my_key));
}
qDebug() << "----------------- END Properties ----------------- " << panName();
settings.endGroup();
}
loadUi(settings);
Expand All @@ -718,12 +721,14 @@ void nGenericPan::loadSettings(QSettings &settings) {
void nGenericPan::saveSettings(QSettings &settings) {
saveUi(settings);
settings.beginGroup("Properties");
qDebug() << "----------------- Properties ----------------- " << panName();
foreach(QByteArray ba, dynamicPropertyNames()) {
if(ba.startsWith("NeuSave")) {
qDebug() << ba << property(ba);
settings.setValue(ba, property(ba));
}
}
qDebug() << "----------------- END Properties ----------------- " << panName();
settings.endGroup();
}

Expand Down
12 changes: 6 additions & 6 deletions src/neutrino.cc
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ neutrino::scanPlugins() {
void
neutrino::loadPlugin()
{
QStringList pnames=QFileDialog::getOpenFileNames(this,tr("Load Plugin"), property("NeuSave-loadPlugin").toString(),tr("Neutrino Plugins")+QString(" (*.dylib *.so *.dll);;")+tr("Any files")+QString(" (*)"));
QStringList pnames=QFileDialog::getOpenFileNames(this,tr("Load Plugin"), property("NeuSave-loadPlugin").toString(),tr("Neutrino Plugins")+QString(" (*.dylib *.so *.dll);;")+tr("Any file")+QString(" (*)"));
bool launch(pnames.size()==1);
for(auto& pname: pnames) {
loadPlugin(pname, launch);
Expand Down Expand Up @@ -828,7 +828,7 @@ QList <nPhysD *> neutrino::fileOpen(QString fname) {
}
formats.chop(1);
formats+=");;";
formats+=("Any files (*)");
formats+=("Any file (*)");

QStringList fnames = QFileDialog::getOpenFileNames(this,tr("Open Image(s)"),property("NeuSave-fileOpen").toString(),formats);
foreach (QString fname, fnames) {
Expand Down Expand Up @@ -937,7 +937,7 @@ void neutrino::saveSession (QString fname) {
extensions=tr("Tiff session")+" (*.tiff *.tif);;"+extensions;
}
#endif
QString fnameSave = QFileDialog::getSaveFileName(this,tr("Save Session"),property("NeuSave-fileSave").toString(),extensions+tr("Any files")+QString(" (*)"));
QString fnameSave = QFileDialog::getSaveFileName(this,tr("Save Session"),property("NeuSave-fileSave").toString(),extensions+tr("Any file")+QString(" (*)"));
if (!fnameSave.isEmpty()) {
saveSession(fnameSave);
}
Expand Down Expand Up @@ -1163,7 +1163,7 @@ QString graphicsTypes(QString fname) {
exts.removeAll(ext);
exts.push_back(ext);
}
QString ftypes="Any files (*)";
QString ftypes="Any file (*)";
for (auto &str: exts) {
ftypes.prepend(str.toUpper()+" (*."+str+");; ");
}
Expand Down Expand Up @@ -1376,7 +1376,7 @@ QString neutrino::getFileSave() {
allformats += format + " files (*."+format+");; ";
}

allformats+=("Any files (*)");
allformats+=("Any file (*)");

QString fname=QFileDialog::getSaveFileName(this, "Save to...",property("NeuSave-fileSave").toString(),allformats);

Expand Down Expand Up @@ -1626,7 +1626,7 @@ nGenericPan*
neutrino::openRAW() {
QStringList fnames;
nGenericPan *win = nullptr;
fnames = QFileDialog::getOpenFileNames(this,tr("Open RAW"),"",tr("Any files")+QString(" (*)"));
fnames = QFileDialog::getOpenFileNames(this,tr("Open RAW"),"",tr("Any file")+QString(" (*)"));
if (fnames.size()) {
win=getPan("nOpenRAW");
if (!win) win= new nOpenRAW(this);
Expand Down

0 comments on commit eb254f6

Please sign in to comment.