blob: ca43dd37e80be0a94b80ce2f6c298c41f396397e (
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
|
#include "search/search_quality/assessment_tool/main_model.hpp"
#include "search/search_quality/assessment_tool/main_view.hpp"
#include "search/search_quality/helpers.hpp"
#include "map/framework.hpp"
#include "platform/platform.hpp"
#include <QtWidgets/QApplication>
#include "3party/gflags/src/gflags/gflags.h"
DEFINE_string(resources_path, "", "Path to resources directory");
DEFINE_string(data_path, "", "Path to data directory");
namespace
{
} // namespace
int main(int argc, char ** argv)
{
search::ChangeMaxNumberOfOpenFiles(search::kMaxOpenFiles);
google::SetUsageMessage("Features collector tool.");
google::ParseCommandLineFlags(&argc, &argv, true);
Platform & platform = GetPlatform();
if (!FLAGS_resources_path.empty())
platform.SetResourceDir(FLAGS_resources_path);
if (!FLAGS_data_path.empty())
platform.SetWritableDirForTests(FLAGS_data_path);
Q_INIT_RESOURCE(resources_common);
QApplication app(argc, argv);
Framework framework;
MainView view(framework);
MainModel model;
model.SetView(view);
view.SetModel(model);
view.show();
return app.exec();
}
|