mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-05-23 03:27:10 -04:00
UEFITool 0.18.1
- descriptor parsing enabled for Gigabyte boards - search dialog UI reworked (GUID search to be added in next release) - added MAN$ signature check for old ME firmware versions
This commit is contained in:
parent
e50d6763e0
commit
f529fdd20d
7 changed files with 132 additions and 155 deletions
21
uefitool.cpp
21
uefitool.cpp
|
@ -123,33 +123,32 @@ void UEFITool::populateUi(const QModelIndex ¤t)
|
|||
|
||||
void UEFITool::search()
|
||||
{
|
||||
// Set focus to edit box
|
||||
searchDialog->ui->searchEdit->setFocus();
|
||||
|
||||
if (searchDialog->exec() != QDialog::Accepted)
|
||||
return;
|
||||
|
||||
int index = searchDialog->ui->dataTypeComboBox->currentIndex();
|
||||
QModelIndex rootIndex = ffsEngine->treeModel()->index(0, 0);
|
||||
|
||||
int index = searchDialog->ui->tabWidget->currentIndex();
|
||||
if (index == 0) { // Hex pattern
|
||||
QByteArray pattern = QByteArray::fromHex(searchDialog->ui->searchEdit->text().toLatin1());
|
||||
QByteArray pattern = QByteArray::fromHex(searchDialog->ui->hexEdit->text().toLatin1());
|
||||
if (pattern.isEmpty())
|
||||
return;
|
||||
UINT8 mode;
|
||||
if (searchDialog->ui->headerOnlyRadioButton->isChecked())
|
||||
if (searchDialog->ui->hexScopeHeaderRadioButton->isChecked())
|
||||
mode = SEARCH_MODE_HEADER;
|
||||
else if (searchDialog->ui->bodyOnlyRadioButton->isChecked())
|
||||
else if (searchDialog->ui->hexScopeBodyRadioButton->isChecked())
|
||||
mode = SEARCH_MODE_BODY;
|
||||
else
|
||||
mode = SEARCH_MODE_ALL;
|
||||
ffsEngine->findHexPattern(pattern, mode);
|
||||
ffsEngine->findHexPattern(rootIndex, pattern, mode);
|
||||
showMessages();
|
||||
}
|
||||
else if (index == 1) { // Text string
|
||||
QString pattern = searchDialog->ui->searchEdit->text();
|
||||
QString pattern = searchDialog->ui->textEdit->text();
|
||||
if (pattern.isEmpty())
|
||||
return;
|
||||
ffsEngine->findTextPattern(pattern, searchDialog->ui->unicodeCheckBox->isChecked(),
|
||||
(Qt::CaseSensitivity) searchDialog->ui->caseSensitiveCheckBox->isChecked());
|
||||
ffsEngine->findTextPattern(rootIndex, pattern, searchDialog->ui->textUnicodeCheckBox->isChecked(),
|
||||
(Qt::CaseSensitivity) searchDialog->ui->textCaseSensitiveCheckBox->isChecked());
|
||||
showMessages();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue