mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-29 17:23:47 +00:00
# Conflicts: # CMakeLists.txt # android/app/src/main/java/app/organicmaps/settings/SettingsPrefsFragment.java # android/sdk/src/main/cpp/app/organicmaps/sdk/Framework.hpp # android/sdk/src/main/cpp/app/organicmaps/sdk/OrganicMaps.cpp # android/sdk/src/main/cpp/app/organicmaps/sdk/util/Config.cpp # libs/indexer/data_source.hpp # libs/indexer/feature.hpp # libs/indexer/ftypes_matcher.hpp # libs/map/framework.cpp # libs/map/traffic_manager.cpp # libs/routing/absent_regions_finder.cpp # libs/routing/edge_estimator.hpp # libs/routing/index_router.cpp # libs/routing/index_router.hpp # libs/routing/routing_session.hpp # libs/routing_common/num_mwm_id.hpp # libs/traffic/traffic_info.cpp # qt/mainwindow.hpp # qt/preferences_dialog.cpp # tools/openlr/helpers.hpp # tools/openlr/openlr_decoder.cpp # tools/openlr/openlr_decoder.hpp # tools/openlr/openlr_stat/openlr_stat.cpp # tools/openlr/router.hpp # tools/openlr/score_candidate_paths_getter.cpp # tools/openlr/score_candidate_paths_getter.hpp # xcode/CoMaps.xcworkspace/contents.xcworkspacedata
44 lines
1003 B
C++
44 lines
1003 B
C++
#include "mainwindow.hpp"
|
|
|
|
#include "qt/qt_common/helpers.hpp"
|
|
|
|
#include "map/framework.hpp"
|
|
|
|
#include <gflags/gflags.h>
|
|
|
|
#include <QtWidgets/QApplication>
|
|
|
|
namespace
|
|
{
|
|
DEFINE_string(resources_path, "", "Path to resources directory");
|
|
DEFINE_string(data_path, "", "Path to data directory");
|
|
} // namespace
|
|
|
|
int main(int argc, char * argv[])
|
|
{
|
|
gflags::SetUsageMessage("Visualize and check matched routes.");
|
|
gflags::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);
|
|
|
|
qt::common::SetDefaultSurfaceFormat(app.platformName());
|
|
|
|
FrameworkParams params;
|
|
|
|
params.m_trafficTestMode = true;
|
|
|
|
Framework framework(params);
|
|
traffxml::MainWindow mainWindow(framework);
|
|
|
|
mainWindow.showMaximized();
|
|
|
|
return app.exec();
|
|
}
|