Skip to content

Commit

Permalink
Merge pull request #5920 from ygorshenin/non-found-results-icons
Browse files Browse the repository at this point in the history
[assessment-tool] Added icons for non-found search results.
  • Loading branch information
Roman Kuznetsov authored Apr 26, 2017
2 parents 160ab9a + 391ea21 commit 62c3c97
Show file tree
Hide file tree
Showing 41 changed files with 4,008 additions and 3,985 deletions.
Binary file modified data/resources-6plus_clear/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-6plus_clear/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
781 changes: 391 additions & 390 deletions data/resources-6plus_clear/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-6plus_dark/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-6plus_dark/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
719 changes: 360 additions & 359 deletions data/resources-6plus_dark/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-hdpi_clear/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-hdpi_clear/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
961 changes: 481 additions & 480 deletions data/resources-hdpi_clear/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-hdpi_dark/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-hdpi_dark/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
627 changes: 314 additions & 313 deletions data/resources-hdpi_dark/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-mdpi_clear/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-mdpi_clear/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,005 changes: 503 additions & 502 deletions data/resources-mdpi_clear/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-mdpi_dark/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-mdpi_dark/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
619 changes: 310 additions & 309 deletions data/resources-mdpi_dark/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-xhdpi_clear/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-xhdpi_clear/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,015 changes: 508 additions & 507 deletions data/resources-xhdpi_clear/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-xhdpi_dark/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-xhdpi_dark/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
649 changes: 325 additions & 324 deletions data/resources-xhdpi_dark/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-xxhdpi_clear/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-xxhdpi_clear/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,003 changes: 502 additions & 501 deletions data/resources-xxhdpi_clear/symbols.sdf

Large diffs are not rendered by default.

Binary file modified data/resources-xxhdpi_dark/symbols-ad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/resources-xxhdpi_dark/symbols.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
601 changes: 301 additions & 300 deletions data/resources-xxhdpi_dark/symbols.sdf

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions search/search_quality/assessment_tool/sample_view.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "search/search_quality/assessment_tool/sample_view.hpp"

#include "map/bookmark_manager.hpp"
#include "map/framework.hpp"
#include "map/user_mark.hpp"

#include "search/result.hpp"
#include "search/search_quality/assessment_tool/helpers.hpp"
Expand Down Expand Up @@ -113,8 +115,19 @@ void SampleView::ShowFoundResults(search::Results::ConstIter begin, search::Resu

void SampleView::ShowNonFoundResults(std::vector<search::Sample::Result> const & results)
{
auto & bookmarkManager = m_framework.GetBookmarkManager();
UserMarkControllerGuard guard(bookmarkManager, UserMarkType::SEARCH_MARK);
guard.m_controller.SetIsVisible(true);
guard.m_controller.SetIsDrawable(true);

for (auto const & result : results)
{
m_nonFoundResults->Add(result);

SearchMarkPoint * mark =
static_cast<SearchMarkPoint *>(guard.m_controller.CreateUserMark(result.m_pos));
mark->SetCustomSymbol("non-found-search-result");
}
}

void SampleView::ClearAllResults()
Expand Down

0 comments on commit 62c3c97

Please sign in to comment.