blob: dcde4ecaeb663429c54e72a684789336a4858dc9 (
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
42
43
44
45
46
47
48
49
50
51
52
|
#pragma once
#include "search/search_quality/assessment_tool/view.hpp"
#include <QtGui/QStandardItemModel>
#include <QtWidgets/QDockWidget>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QTableView>
#include <memory>
class QItemSelection;
namespace qt
{
namespace common
{
class MapWidget;
}
}
class Framework;
class MainView : public QMainWindow, public View
{
Q_OBJECT
public:
explicit MainView(Framework & framework);
~MainView() override;
// View overrides:
void SetSamples(std::vector<search::Sample> const & samples) override;
void ShowSample(search::Sample const & sample) override;
void ShowError(std::string const & msg) override;
private Q_SLOTS:
void OnSampleSelected(QItemSelection const & current);
private:
void InitMenuBar();
void InitMapWidget();
void InitDocks();
void Open();
Framework & m_framework;
std::unique_ptr<QStandardItemModel> m_samplesModel;
std::unique_ptr<QTableView> m_samplesTable;
std::unique_ptr<QDockWidget> m_samplesDock;
};
|