diff --git a/Changelog b/Changelog index 769539ab4..a184ff23e 100644 --- a/Changelog +++ b/Changelog @@ -10,6 +10,7 @@ - FEATURE: Added "Unread" item to RSS feed list to display all unread news - FEATURE: If a torrent contains a torrent file, process downloaded torrent file too - BUGFIX: torrent resume code rewrited + - COSMETIC: Redesigned search tab to improve usability - COSMETIC: Redesigned RSS tab to improve usability * Sun Aug 21 2009 - Christophe Dumez - v1.4.1 diff --git a/src/Icons/gnome-shutdown.png b/src/Icons/gnome-shutdown.png deleted file mode 100644 index 4758764eb..000000000 Binary files a/src/Icons/gnome-shutdown.png and /dev/null differ diff --git a/src/Icons/oxygen/tab-close.png b/src/Icons/oxygen/tab-close.png new file mode 100644 index 000000000..072c9bc84 Binary files /dev/null and b/src/Icons/oxygen/tab-close.png differ diff --git a/src/icons.qrc b/src/icons.qrc index 1b953ca15..61c379a9f 100644 --- a/src/icons.qrc +++ b/src/icons.qrc @@ -1,6 +1,5 @@ - Icons/gnome-shutdown.png Icons/rss32.png Icons/money.png Icons/sphere2.png @@ -95,6 +94,7 @@ Icons/oxygen/edit-copy.png Icons/oxygen/bt_settings.png Icons/oxygen/document-new.png + Icons/oxygen/tab-close.png Icons/oxygen/webui.png Icons/oxygen/list-remove.png Icons/oxygen/connection.png diff --git a/src/search.ui b/src/search.ui index f5036472f..a1cba6a6f 100644 --- a/src/search.ui +++ b/src/search.ui @@ -13,39 +13,9 @@ Search - + - - - 6 - - - 0 - - - - - - 16777215 - 35 - - - - - Sans Serif - 9 - 75 - false - true - false - false - - - - Search Pattern: - - - + @@ -60,26 +30,52 @@ - - - - 34 - 29 - - - - - - - - :/Icons/oxygen/edit_clear.png:/Icons/oxygen/edit_clear.png - - - - 30 - 21 - - + + + + All categories + + + + + Movies + + + + + TV shows + + + + + Music + + + + + Games + + + + + Anime + + + + + Software + + + + + Pictures + + + + + Books + + @@ -95,33 +91,10 @@ - - - - false - - - - 16777215 - 29 - - - - Stop - - - - - - - Search engines... - - - - + @@ -150,7 +123,7 @@ - 400 + 200 0 @@ -233,6 +206,13 @@ + + + + Search engines... + + + diff --git a/src/searchEngine.cpp b/src/searchEngine.cpp index f018cf2dc..343a30caf 100644 --- a/src/searchEngine.cpp +++ b/src/searchEngine.cpp @@ -60,7 +60,7 @@ SearchEngine::SearchEngine(bittorrent *BTSession, QSystemTrayIcon *myTrayIcon, b createCompleter(); // Add close tab button closeTab_button = new QPushButton(); - closeTab_button->setIcon(QIcon(QString::fromUtf8(":/Icons/gnome-shutdown.png"))); + closeTab_button->setIcon(QIcon(QString::fromUtf8(":/Icons/oxygen/tab-close.png"))); closeTab_button->setFlat(true); connect(closeTab_button, SIGNAL(clicked()), this, SLOT(closeTab_button_clicked())); tabWidget->setCornerWidget(closeTab_button); @@ -200,6 +200,8 @@ void SearchEngine::on_search_button_clicked(){ if(searchProcess->state() != QProcess::NotRunning){ searchProcess->kill(); searchProcess->waitForFinished(); + search_button->setText("Search"); + return; } if(searchTimeout->isActive()) { searchTimeout->stop(); @@ -306,12 +308,7 @@ void SearchEngine::searchStarted(){ // Update SearchEngine widgets search_status->setText(tr("Searching...")); search_status->repaint(); - stop_search_button->setEnabled(true); - stop_search_button->repaint(); - // clear results window ... not needed since we got Tabbed - //SearchListModel->removeRows(0, SearchListModel->rowCount()); - // Clear previous results urls too - //searchResultsUrls.clear(); + search_button->setText("Stop"); } // Download the given item from search results list @@ -464,8 +461,7 @@ void SearchEngine::searchFinished(int exitcode,QProcess::ExitStatus){ } if(currentSearchTab) currentSearchTab->getCurrentLabel()->setText(tr("Results", "i.e: Search results")+QString::fromUtf8(" (")+misc::toQString(nb_search_results)+QString::fromUtf8("):")); - search_button->setEnabled(true); - stop_search_button->setEnabled(false); + search_button->setText("Search"); } // SLOT to append one line to search results list @@ -527,11 +523,6 @@ void SearchEngine::closeTab_button_clicked(){ } } -void SearchEngine::on_clearPatternButton_clicked() { - search_pattern->clear(); - search_pattern->setFocus(); -} - // Download selected items in search results list void SearchEngine::on_download_button_clicked(){ //QModelIndexList selectedIndexes = currentSearchTab->getCurrentTreeView()->selectionModel()->selectedIndexes(); diff --git a/src/searchEngine.h b/src/searchEngine.h index fea63f75a..17a5dd495 100644 --- a/src/searchEngine.h +++ b/src/searchEngine.h @@ -90,7 +90,6 @@ class SearchEngine : public QWidget, public Ui::search_engine{ void updateNova(); void saveSearchHistory(); void on_enginesButton_clicked(); - void on_clearPatternButton_clicked(); void propagateSectionResized(int index, int oldsize , int newsize); void saveResultsColumnsWidth(); void downloadFinished(int exitcode, QProcess::ExitStatus);