diff --git a/desktop/sessionui.rc b/desktop/sessionui.rc index c59b6a88..6faea415 100644 --- a/desktop/sessionui.rc +++ b/desktop/sessionui.rc @@ -19,6 +19,7 @@ + View diff --git a/konsole/SessionController.cpp b/konsole/SessionController.cpp index 2ffe81d9..769f7993 100644 --- a/konsole/SessionController.cpp +++ b/konsole/SessionController.cpp @@ -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); diff --git a/konsole/SessionController.h b/konsole/SessionController.h index eb6f73c0..f7cb18b1 100644 --- a/konsole/SessionController.h +++ b/konsole/SessionController.h @@ -103,17 +103,20 @@ private slots: void clear(); void clearAndReset(); void searchHistory(bool showSearchBar); - void searchClosed(); void findNextInHistory(); void findPreviousInHistory(); void saveHistory(); void clearHistory(); + void clearHistoryAndReset(); void closeSession(); void monitorActivity(bool monitor); void monitorSilence(bool monitor); + // other void sessionStateChanged(TESession* session,int state); void sessionTitleChanged(); + void searchClosed(); // called when the user clicks on the + // history search bar's close button // debugging slots void debugProcess();