Hook up the jump/find bars

This commit is contained in:
baldurk
2015-07-09 16:13:01 +02:00
parent fa4e98d1f7
commit 9276cb875f
7 changed files with 106 additions and 8 deletions
+27
View File
@@ -47,6 +47,10 @@ EventBrowser::EventBrowser(Core *core, QWidget *parent) :
// becomes quickly infuriating to rearrange, just disable until that can be fixed.
ui->events->header()->setSectionsMovable(false);
QObject::connect(ui->closeFind, &QToolButton::clicked, this, &EventBrowser::hideFindJump);
QObject::connect(ui->closeJump, &QToolButton::clicked, this, &EventBrowser::hideFindJump);
QObject::connect(ui->jumpToEID, &LineEditFocusWidget::leave, this, &EventBrowser::hideFindJump);
QObject::connect(ui->findEvent, &LineEditFocusWidget::leave, this, &EventBrowser::hideFindJump);
ui->jumpStrip->hide();
ui->findStrip->hide();
ui->bookmarkStrip->hide();
@@ -88,6 +92,7 @@ void EventBrowser::on_find_clicked()
ui->jumpStrip->hide();
ui->findStrip->show();
ui->bookmarkStrip->hide();
ui->findEvent->setFocus();
}
void EventBrowser::on_gotoEID_clicked()
@@ -95,6 +100,7 @@ void EventBrowser::on_gotoEID_clicked()
ui->jumpStrip->show();
ui->findStrip->hide();
ui->bookmarkStrip->hide();
ui->jumpToEID->setFocus();
}
void EventBrowser::on_toolButton_clicked()
@@ -168,3 +174,24 @@ void EventBrowser::on_events_itemSelectionChanged()
m_Core->SetEventID(this, 0, EID);
}
void EventBrowser::hideFindJump()
{
ui->jumpStrip->hide();
ui->findStrip->hide();
}
void EventBrowser::on_jumpToEID_returnPressed()
{
bool ok = false;
uint eid = ui->findEvent->text().toUInt(&ok);
if(ok)
{
//SelectEvent(0, eid);
}
}
void EventBrowser::on_findEvent_returnPressed()
{
}