| 25 | using namespace SigDigger; |
| 26 | |
| 27 | void |
| 28 | LocationConfigTab::connectAll(void) |
| 29 | { |
| 30 | connect( |
| 31 | this->ui->cityListWidget, |
| 32 | SIGNAL(itemDoubleClicked(QListWidgetItem *)), |
| 33 | this, |
| 34 | SLOT(onLocationSelected(QListWidgetItem *))); |
| 35 | |
| 36 | connect( |
| 37 | this->ui->cityNameEdit, |
| 38 | SIGNAL(textChanged(const QString &)), |
| 39 | this, |
| 40 | SLOT(onLocationChanged(void))); |
| 41 | |
| 42 | connect( |
| 43 | this->ui->countryCombo, |
| 44 | SIGNAL(activated(int)), |
| 45 | this, |
| 46 | SLOT(onLocationChanged(void))); |
| 47 | |
| 48 | connect( |
| 49 | this->ui->latitudeSpinBox, |
| 50 | SIGNAL(valueChanged(double)), |
| 51 | this, |
| 52 | SLOT(onLocationChanged(void))); |
| 53 | |
| 54 | connect( |
| 55 | this->ui->longitudeSpinBox, |
| 56 | SIGNAL(valueChanged(double)), |
| 57 | this, |
| 58 | SLOT(onLocationChanged(void))); |
| 59 | |
| 60 | connect( |
| 61 | this->ui->altitudeSpinBox, |
| 62 | SIGNAL(valueChanged(double)), |
| 63 | this, |
| 64 | SLOT(onLocationChanged(void))); |
| 65 | |
| 66 | connect( |
| 67 | this->ui->searchEdit, |
| 68 | SIGNAL(textEdited(const QString &)), |
| 69 | this, |
| 70 | SLOT(onSearchTextChanged(void))); |
| 71 | |
| 72 | connect( |
| 73 | this->ui->addToListButton, |
| 74 | SIGNAL(clicked(bool)), |
| 75 | this, |
| 76 | SLOT(onRegisterLocation(void))); |
| 77 | } |
| 78 | |
| 79 | void |
| 80 | LocationConfigTab::repaintCountryList(QString searchText) |