blob: 04312fb269c0bc81ce816fd7043fef663b4f08a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#pragma once
#include "search/search_quality/assessment_tool/edits.hpp"
#include "search/search_quality/sample.hpp"
#include <QtWidgets/QWidget>
class QLabel;
class QRadioButton;
namespace search
{
class Result;
}
class ResultView : public QWidget
{
public:
using Relevance = search::Sample::Result::Relevance;
ResultView(search::Result const & result, QWidget & parent);
void EnableEditing(Edits::RelevanceEditor editor);
private:
void Init();
void SetContents(search::Result const & result);
QRadioButton * CreateRatioButton(string const & label, QLayout & layout);
void OnRelevanceChanged();
QLabel * m_string = nullptr;
QLabel * m_type = nullptr;
QLabel * m_address = nullptr;
QRadioButton * m_irrelevant = nullptr;
QRadioButton * m_relevant = nullptr;
QRadioButton * m_vital = nullptr;
Edits::RelevanceEditor m_editor;
};
|