|
|
|
|
@ -114,6 +114,8 @@ void SessionController::setSearchBar(IncrementalSearchBar* searchBar) |
|
|
|
|
_searchBar = searchBar; |
|
|
|
|
|
|
|
|
|
connect( _searchBar , SIGNAL(closeClicked()) , this , SLOT(searchClosed()) ); |
|
|
|
|
connect( _searchBar , SIGNAL(findNextClicked()) , this , SLOT(findNextInHistory()) ); |
|
|
|
|
connect( _searchBar , SIGNAL(findPreviousClicked()) , this , SLOT(findPreviousInHistory()) ); |
|
|
|
|
} |
|
|
|
|
IncrementalSearchBar* SessionController::searchBar() const |
|
|
|
|
{ |
|
|
|
|
@ -184,6 +186,10 @@ void SessionController::setupActions() |
|
|
|
|
action->setText( i18n("Clear History") ); |
|
|
|
|
connect( action , SIGNAL(triggered()) , this , SLOT(clearHistory()) ); |
|
|
|
|
|
|
|
|
|
action = collection->addAction("clear-history-and-reset"); |
|
|
|
|
action->setText( i18n("Clear History && Reset") ); |
|
|
|
|
connect( action , SIGNAL(triggered()) , this , SLOT(clearHistoryAndReset()) ); |
|
|
|
|
|
|
|
|
|
// debugging tools
|
|
|
|
|
action = collection->addAction("debug-process"); |
|
|
|
|
action->setText( "Get Foreground Process" ); |
|
|
|
|
@ -276,9 +282,11 @@ void SessionController::searchHistory(bool showSearchBar) |
|
|
|
|
} |
|
|
|
|
void SessionController::findNextInHistory() |
|
|
|
|
{ |
|
|
|
|
qDebug() << "find next"; |
|
|
|
|
} |
|
|
|
|
void SessionController::findPreviousInHistory() |
|
|
|
|
{ |
|
|
|
|
qDebug() << "find previous"; |
|
|
|
|
} |
|
|
|
|
void SessionController::saveHistory() |
|
|
|
|
{ |
|
|
|
|
@ -291,6 +299,11 @@ void SessionController::clearHistory() |
|
|
|
|
{ |
|
|
|
|
_session->clearHistory(); |
|
|
|
|
} |
|
|
|
|
void SessionController::clearHistoryAndReset() |
|
|
|
|
{ |
|
|
|
|
clearAndReset(); |
|
|
|
|
clearHistory(); |
|
|
|
|
} |
|
|
|
|
void SessionController::monitorActivity(bool monitor) |
|
|
|
|
{ |
|
|
|
|
_session->setMonitorActivity(monitor); |
|
|
|
|
|