Permalink
Browse files

Updated defaults: 10 for x and y bins. Fit to window and barcode sele…

…cted by default
  • Loading branch information...
xoltar committed Mar 28, 2017
1 parent 3fde9b6 commit 8c81d8da1ffdab9f6521e2aedeef937381246c93
Showing with 19 additions and 9 deletions.
  1. +9 −8 dataselectdialog.cpp
  2. +4 −1 dataselectdialog.ui
  3. +6 −0 visualizationwindow.ui
View
@@ -40,16 +40,17 @@ DataSelectDialog::DataSelectDialog(InputParameters& params, QWidget* parent)
, data_selected(false)
{
ui->setupUi(this);
ui->xbinSpinBox->setSpecialValueText(tr("No bins"));
ui->ybinSpinBox->setSpecialValueText(tr("No bins"));
//set initial values
if (!params.fileName.empty())
if (!params.fileName.empty()) {
detect_file_type();
ui->homDimSpinBox->setValue(params.dim);
ui->xbinSpinBox->setValue(params.x_bins);
ui->ybinSpinBox->setValue(params.y_bins);
ui->homDimSpinBox->setValue(params.dim);
ui->xbinSpinBox->setValue(params.x_bins);
ui->ybinSpinBox->setValue(params.y_bins);
} else {
ui->homDimSpinBox->setValue(0);
ui->xbinSpinBox->setValue(10);
ui->ybinSpinBox->setValue(10);
}
}
DataSelectDialog::~DataSelectDialog()
View
@@ -116,7 +116,7 @@
<number>999</number>
</property>
<property name="value">
<number>0</number>
<number>10</number>
</property>
</widget>
<widget class="QSpinBox" name="ybinSpinBox">
@@ -137,6 +137,9 @@
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
<widget class="QLabel" name="homDimLabel">
<property name="geometry">
View
@@ -291,6 +291,9 @@
<property name="text">
<string>&amp;Fit to window</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
@@ -301,6 +304,9 @@
<property name="text">
<string>Show &amp;barcode</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>

0 comments on commit 8c81d8d

Please sign in to comment.