|
a/src/qtgui/rclm_wins.cpp |
|
b/src/qtgui/rclm_wins.cpp |
|
... |
|
... |
344 |
QMessageBox::information(this, tr("Missing helper programs"), msg);
|
344 |
QMessageBox::information(this, tr("Missing helper programs"), msg);
|
345 |
}
|
345 |
}
|
346 |
|
346 |
|
347 |
void RclMain::showActiveTypes()
|
347 |
void RclMain::showActiveTypes()
|
348 |
{
|
348 |
{
|
349 |
if (rcldb == 0) {
|
349 |
string reason;
|
|
|
350 |
bool maindberror;
|
|
|
351 |
if (!maybeOpenDb(reason, true, &maindberror)) {
|
350 |
QMessageBox::warning(0, tr("Error"),
|
352 |
QMessageBox::warning(0, tr("Error"),
|
351 |
tr("Index not open"),
|
353 |
u8s2qs(reason),
|
352 |
QMessageBox::Ok,
|
354 |
QMessageBox::Ok,
|
353 |
QMessageBox::NoButton);
|
355 |
QMessageBox::NoButton);
|
354 |
return;
|
356 |
return;
|
355 |
}
|
357 |
}
|
356 |
|
358 |
|
|
... |
|
... |
405 |
delete dialog.listWidget;
|
407 |
delete dialog.listWidget;
|
406 |
QTextEdit *editor = new QTextEdit(dialog.groupBox);
|
408 |
QTextEdit *editor = new QTextEdit(dialog.groupBox);
|
407 |
editor->setReadOnly(true);
|
409 |
editor->setReadOnly(true);
|
408 |
dialog.horizontalLayout->addWidget(editor);
|
410 |
dialog.horizontalLayout->addWidget(editor);
|
409 |
|
411 |
|
|
|
412 |
if (mtypesfromdbconf.empty()) {
|
|
|
413 |
editor->append(tr("Types list empty: maybe wait for indexing to "
|
|
|
414 |
"progress?"));
|
|
|
415 |
} else {
|
410 |
for (set<string>::const_iterator it = mtypesfromdbconf.begin();
|
416 |
for (set<string>::const_iterator it = mtypesfromdbconf.begin();
|
411 |
it != mtypesfromdbconf.end(); it++) {
|
417 |
it != mtypesfromdbconf.end(); it++) {
|
412 |
editor->append(QString::fromUtf8(it->c_str()));
|
418 |
editor->append(QString::fromUtf8(it->c_str()));
|
|
|
419 |
}
|
413 |
}
|
420 |
}
|
414 |
editor->moveCursor(QTextCursor::Start);
|
421 |
editor->moveCursor(QTextCursor::Start);
|
415 |
editor->ensureCursorVisible();
|
422 |
editor->ensureCursorVisible();
|
416 |
dialog.exec();
|
423 |
dialog.exec();
|
417 |
}
|
424 |
}
|