| 299 | // FindDialog ********************************************* |
| 300 | |
| 301 | FindDialog::FindDialog(QWidget* pParent) |
| 302 | : QDialog(pParent) |
| 303 | { |
| 304 | QGridLayout* layout = new QGridLayout(this); |
| 305 | layout->setContentsMargins(5, 5, 5, 5); |
| 306 | layout->setSpacing(5); |
| 307 | |
| 308 | qint32 line = 0; |
| 309 | layout->addWidget(new QLabel(i18n("Search text:"), this), line, 0, 1, 2); |
| 310 | ++line; |
| 311 | |
| 312 | m_pSearchString = new QLineEdit(this); |
| 313 | layout->addWidget(m_pSearchString, line, 0, 1, 2); |
| 314 | ++line; |
| 315 | |
| 316 | m_pCaseSensitive = new QCheckBox(i18n("Case sensitive"), this); |
| 317 | layout->addWidget(m_pCaseSensitive, line, 1); |
| 318 | |
| 319 | m_pSearchInA = new QCheckBox(i18n("Search A"), this); |
| 320 | layout->addWidget(m_pSearchInA, line, 0); |
| 321 | m_pSearchInA->setChecked(true); |
| 322 | ++line; |
| 323 | |
| 324 | m_pSearchInB = new QCheckBox(i18n("Search B"), this); |
| 325 | layout->addWidget(m_pSearchInB, line, 0); |
| 326 | m_pSearchInB->setChecked(true); |
| 327 | ++line; |
| 328 | |
| 329 | m_pSearchInC = new QCheckBox(i18n("Search C"), this); |
| 330 | layout->addWidget(m_pSearchInC, line, 0); |
| 331 | m_pSearchInC->setChecked(true); |
| 332 | ++line; |
| 333 | |
| 334 | m_pSearchInOutput = new QCheckBox(i18n("Search output"), this); |
| 335 | layout->addWidget(m_pSearchInOutput, line, 0); |
| 336 | m_pSearchInOutput->setChecked(true); |
| 337 | ++line; |
| 338 | |
| 339 | QDialogButtonBox *box = new QDialogButtonBox(QDialogButtonBox::Cancel, this); |
| 340 | layout->addWidget(box, line, 0, 1, 2); |
| 341 | box->addButton(i18n("&Search"), QDialogButtonBox::AcceptRole); |
| 342 | chk_connect_a(box, &QDialogButtonBox::accepted, this, &FindDialog::accept); |
| 343 | chk_connect_a(box, &QDialogButtonBox::rejected, this, &FindDialog::reject); |
| 344 | |
| 345 | hide(); |
| 346 | } |
| 347 | |
| 348 | void FindDialog::restartFind() |
| 349 | { |
nothing calls this directly
no outgoing calls
no test coverage detected