29 #include "ui_linkRefiningDialog.h"
31 #include <QPushButton>
42 ui_ =
new Ui_linkRefiningDialog();
45 ui_->comboBox_link_type->addItem(
"All");
51 ui_->comboBox_link_type->setItemData(
i+1, 0, Qt::UserRole - 1);
57 connect(
ui_->buttonBox->button(QDialogButtonBox::RestoreDefaults), SIGNAL(clicked()),
this, SLOT(
restoreDefaults()));
61 connect(
ui_->spinBox_map_from, SIGNAL(valueChanged(
int)),
this, SLOT(
setRangeToMapId()));
62 connect(
ui_->spinBox_map_to, SIGNAL(valueChanged(
int)),
this, SLOT(
setRangeToMapId()));
93 if(
ui_->comboBox_link_type->currentIndex() == 0)
97 return (
Link::Type)(
ui_->comboBox_link_type->currentIndex()-1);
103 inter =
ui_->comboBox_link_inter_intra->currentIndex() == 0 ||
ui_->comboBox_link_inter_intra->currentIndex() == 2;
108 return ui_->radioButton_nodes->isChecked();
113 return ui_->radioButton_maps->isChecked();
118 from =
ui_->spinBox_node_from->value();
119 to =
ui_->spinBox_node_to->value();
124 from =
ui_->spinBox_map_from->value();
125 to =
ui_->spinBox_map_to->value();
130 ui_->comboBox_link_type->setCurrentIndex(0);
131 ui_->comboBox_link_inter_intra->setCurrentIndex(0);
137 ui_->radioButton_nodes->setChecked(
true);
147 ui_->radioButton_nodes->setChecked(
true);
152 ui_->radioButton_maps->setChecked(
true);