Skip to content

Commit

Permalink
Small changes in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jfnavarro committed Jun 12, 2020
1 parent be8c70b commit ec12617
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/analysis/AnalysisClustering.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ QT_CHARTS_USE_NAMESPACE

// A Widget that is used to classify spots based on gene expression profiles
// using dimensionality reduction and clustering algorithms
// It allows users to interact with the scatter plot and make and export selections
// It allows users to interact with the scatter plot and to make and export selections
// based on the clustered spots in the manifold space
class AnalysisClustering : public QWidget
{
Expand Down
10 changes: 5 additions & 5 deletions src/data/DatasetImporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void DatasetImporter::slotLoadSTDataFile()
= QFileDialog::getOpenFileName(this,
tr("Open ST Data File"),
QDir::homePath(),
QString("%1").arg(tr("TSV Files (*.tsv)")));
QString("%1").arg(tr("TSV|TXT Files (*.tsv *.txt)")));
// early out
if (filename.isEmpty()) {
return;
Expand All @@ -145,7 +145,7 @@ void DatasetImporter::slotLoadMainImageFile()
= QFileDialog::getOpenFileName(this,
tr("Open Tissue Image File"),
QDir::homePath(),
QString("%1").arg(tr("JPEG Files (*.jpg *.jpeg)")));
QString("%1").arg(tr("JPEG|PNG Files (*.jpg *.jpeg *.png)")));
// early out
if (filename.isEmpty()) {
return;
Expand Down Expand Up @@ -185,7 +185,7 @@ void DatasetImporter::slotLoadSpotsMapFile()
= QFileDialog::getOpenFileName(this,
tr("Open Coordinates File"),
QDir::homePath(),
QString("%1").arg(tr("TXT|TSV Files (*.txt *.tsv)")));
QString("%1").arg(tr("TSV|TXT Files (*.txt *.tsv)")));
// early out
if (filename.isEmpty()) {
return;
Expand Down Expand Up @@ -237,9 +237,9 @@ void DatasetImporter::slotParseFolder()
while (it.hasNext()) {
const QString file = it.next();
qDebug() << "Parsing dataset file from folder " << file;
if (file.contains(".tsv")) {
if (file.contains(".tsv") || file.contains(".txt")) {
m_ui->stDataFile->setText(file);
} else if (file.contains(".jpg") || file.contains(".jpeg")) {
} else if (file.contains(".jpg") || file.contains(".jpeg") || file.contains(".png")) {
m_ui->mainImageFile->setText(file);
} else if (file.contains(".obj")) {
m_ui->meshFile->setText(file);
Expand Down
2 changes: 1 addition & 1 deletion src/data/datasetImporter.ui
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>Main image (.jpeg or .jpg) </string>
<string>Main image (.jpeg;.jpg;.png) </string>
</property>
</widget>
</item>
Expand Down

0 comments on commit ec12617

Please sign in to comment.