History

Merge branch 'master' into bug-fix/large-avatar-little-domain-rc68

Anthony J. Thibault committed 8 years ago

Commit f773aef2 parents b837904 be2809748 files · +687 −197Browse files

Showing the changes to interface/src/Application.cpp (1 of 48 files). Show all

Unified · Split

interface/src/Application.cpp+19−16
@@ -697,8 +697,8 @@ private: · 696 unmodified lines
697697 };
698698
699699 /**jsdoc
700− * <p>The <code>Controller.Hardware.Application</code> object has properties representing Interface's state. The property
701− * values are integer IDs, uniquely identifying each output. <em>Read-only.</em> These can be mapped to actions or functions or
700+ * <p>The <code>Controller.Hardware.Application</code> object has properties representing Interface's state. The property
701+ * values are integer IDs, uniquely identifying each output. <em>Read-only.</em> These can be mapped to actions or functions or
702702 * <code>Controller.Standard</code> items in a {@link RouteObject} mapping (e.g., using the {@link RouteObject#when} method).
703703 * Each data value is either <code>1.0</code> for "true" or <code>0.0</code> for "false".</p>
704704 * <table>
@@ -780,7 +780,7 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { · 75 unmodified lines
780780 static const auto SUPPRESS_SETTINGS_RESET = "--suppress-settings-reset";
781781 bool suppressPrompt = cmdOptionExists(argc, const_cast<const char**>(argv), SUPPRESS_SETTINGS_RESET);
782782
783− // Ignore any previous crashes if running from command line with a test script.
783+ // Ignore any previous crashes if running from command line with a test script.
784784 bool inTestMode { false };
785785 for (int i = 0; i < argc; ++i) {
786786 QString parameter(argv[i]);
@@ -1108,7 +1108,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 321 unmodified lines
11081108 qCDebug(interfaceapp) << "[VERSION] Build sequence:" << qPrintable(applicationVersion());
11091109 qCDebug(interfaceapp) << "[VERSION] MODIFIED_ORGANIZATION:" << BuildInfo::MODIFIED_ORGANIZATION;
11101110 qCDebug(interfaceapp) << "[VERSION] VERSION:" << BuildInfo::VERSION;
1111− qCDebug(interfaceapp) << "[VERSION] BUILD_BRANCH:" << BuildInfo::BUILD_BRANCH;
1111+ qCDebug(interfaceapp) << "[VERSION] BUILD_TYPE_STRING:" << BuildInfo::BUILD_TYPE_STRING;
11121112 qCDebug(interfaceapp) << "[VERSION] BUILD_GLOBAL_SERVICES:" << BuildInfo::BUILD_GLOBAL_SERVICES;
11131113 #if USE_STABLE_GLOBAL_SERVICES
11141114 qCDebug(interfaceapp) << "[VERSION] We will use STABLE global services.";
@@ -1365,11 +1365,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 250 unmodified lines
13651365 initializeGL();
13661366 qCDebug(interfaceapp, "Initialized GL");
13671367
1368− // Initialize the display plugin architecture
1368+ // Initialize the display plugin architecture
13691369 initializeDisplayPlugins();
13701370 qCDebug(interfaceapp, "Initialized Display");
13711371
1372− // Create the rendering engine. This can be slow on some machines due to lots of
1372+ // Create the rendering engine. This can be slow on some machines due to lots of
13731373 // GPU pipeline creation.
13741374 initializeRenderEngine();
13751375 qCDebug(interfaceapp, "Initialized Render Engine.");
@@ -1413,7 +1413,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 37 unmodified lines
14131413 // In practice we shouldn't run across installs that don't have a known installer type.
14141414 // Client or Client+Server installs should always have the installer.ini next to their
14151415 // respective interface.exe, and Steam installs will be detected as such. If a user were
1416− // to delete the installer.ini, though, and as an example, we won't know the context of the
1416+ // to delete the installer.ini, though, and as an example, we won't know the context of the
14171417 // original install.
14181418 constexpr auto INSTALLER_KEY_TYPE = "type";
14191419 constexpr auto INSTALLER_KEY_CAMPAIGN = "campaign";
@@ -1461,6 +1461,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 41 unmodified lines
14611461 { "tester", QProcessEnvironment::systemEnvironment().contains(TESTER) },
14621462 { "installer_campaign", installerCampaign },
14631463 { "installer_type", installerType },
1464+ { "build_type", BuildInfo::BUILD_TYPE_STRING },
14641465 { "previousSessionCrashed", _previousSessionCrashed },
14651466 { "previousSessionRuntime", sessionRunTime.get() },
14661467 { "cpu_architecture", QSysInfo::currentCpuArchitecture() },
@@ -2178,7 +2179,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 711 unmodified lines
21782179 if (testProperty.isValid()) {
21792180 auto scriptEngines = DependencyManager::get<ScriptEngines>();
21802181 const auto testScript = property(hifi::properties::TEST).toUrl();
2181−
2182+
21822183 // Set last parameter to exit interface when the test script finishes, if so requested
21832184 scriptEngines->loadScript(testScript, false, false, false, false, quitWhenFinished);
21842185
@@ -2395,7 +2396,7 @@ void Application::onAboutToQuit() { · 210 unmodified lines
23952396 }
23962397 }
23972398
2398− // The active display plugin needs to be loaded before the menu system is active,
2399+ // The active display plugin needs to be loaded before the menu system is active,
23992400 // so its persisted explicitly here
24002401 Setting::Handle<QString>{ ACTIVE_DISPLAY_PLUGIN_SETTING_NAME }.set(getActiveDisplayPlugin()->getName());
24012402
@@ -2630,7 +2631,7 @@ void Application::initializeGL() { · 228 unmodified lines
26302631 // Create the GPU backend
26312632
26322633 // Requires the window context, because that's what's used in the actual rendering
2633− // and the GPU backend will make things like the VAO which cannot be shared across
2634+ // and the GPU backend will make things like the VAO which cannot be shared across
26342635 // contexts
26352636 _glWidget->makeCurrent();
26362637 gpu::Context::init<gpu::gl::GLBackend>();
@@ -2653,7 +2654,7 @@ void Application::initializeDisplayPlugins() { · 16 unmodified lines
26532654 auto lastActiveDisplayPluginName = activeDisplayPluginSetting.get();
26542655
26552656 auto defaultDisplayPlugin = displayPlugins.at(0);
2656− // Once time initialization code
2657+ // Once time initialization code
26572658 DisplayPluginPointer targetDisplayPlugin;
26582659 foreach(auto displayPlugin, displayPlugins) {
26592660 displayPlugin->setContext(_gpuContext);
@@ -2666,7 +2667,7 @@ void Application::initializeDisplayPlugins() { · 6 unmodified lines
26662667 }
26672668
26682669 // The default display plugin needs to be activated first, otherwise the display plugin thread
2669− // may be launched by an external plugin, which is bad
2670+ // may be launched by an external plugin, which is bad
26702671 setDisplayPlugin(defaultDisplayPlugin);
26712672
26722673 // Now set the desired plugin if it's not the same as the default plugin
@@ -5787,7 +5788,7 @@ void Application::update(float deltaTime) { · 3114 unmodified lines
57875788 viewIsDifferentEnough = true;
57885789 }
57895790
5790−
5791+
57915792 // if it's been a while since our last query or the view has significantly changed then send a query, otherwise suppress it
57925793 static const std::chrono::seconds MIN_PERIOD_BETWEEN_QUERIES { 3 };
57935794 auto now = SteadyClock::now();
@@ -6155,7 +6156,9 @@ void Application::updateWindowTitle() const { · 361 unmodified lines
61556156 auto nodeList = DependencyManager::get<NodeList>();
61566157 auto accountManager = DependencyManager::get<AccountManager>();
61576158
6158− QString buildVersion = " (build " + applicationVersion() + ")";
6159+ QString buildVersion = " - "
6160+ + (BuildInfo::BUILD_TYPE == BuildInfo::BuildType::Stable ? QString("Version") : QString("Build"))
6161+ + " " + applicationVersion();
61596162
61606163 QString loginStatus = accountManager->isLoggedIn() ? "" : " (NOT LOGGED IN)";
61616164
@@ -7716,7 +7719,7 @@ void Application::sendLambdaEvent(const std::function<void()>& f) { · 1554 unmodified lines
77167719 } else {
77177720 LambdaEvent event(f);
77187721 QCoreApplication::sendEvent(this, &event);
7719− }
7722+ }
77207723 }
77217724
77227725 void Application::initPlugins(const QStringList& arguments) {
@@ -7939,7 +7942,7 @@ void Application::setDisplayPlugin(DisplayPluginPointer newDisplayPlugin) { · 216 unmodified lines
79397942 }
79407943
79417944 // FIXME don't have the application directly set the state of the UI,
7942− // instead emit a signal that the display plugin is changing and let
7945+ // instead emit a signal that the display plugin is changing and let
79437946 // the desktop lock itself. Reduces coupling between the UI and display
79447947 // plugins
79457948 auto offscreenUi = DependencyManager::get<OffscreenUi>();