diff options
Diffstat (limited to 'search/search_quality/assessment_tool/sample_view.hpp')
-rw-r--r-- | search/search_quality/assessment_tool/sample_view.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/search/search_quality/assessment_tool/sample_view.hpp b/search/search_quality/assessment_tool/sample_view.hpp new file mode 100644 index 0000000000..ed509bc87c --- /dev/null +++ b/search/search_quality/assessment_tool/sample_view.hpp @@ -0,0 +1,28 @@ +#pragma once + +#include "search/result.hpp" + +#include <QtWidgets/QWidget> + +class LanguagesList; +class QLineEdit; +class QListWidget; + +namespace search +{ +struct Sample; +} + +class SampleView : public QWidget +{ +public: + explicit SampleView(QWidget * parent); + + void SetContents(search::Sample const & sample); + void ShowResults(search::Results::Iter begin, search::Results::Iter end); + +private: + QLineEdit * m_query = nullptr; + LanguagesList * m_langs = nullptr; + QListWidget * m_results = nullptr; +}; |