mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
Change Window Titles to Vircadia
Also strips trailing whitespaces from interface's Applicaction.cpp.
This commit is contained in:
parent
187a2749c3
commit
ce4aa67506
1 changed files with 18 additions and 18 deletions
|
@ -656,8 +656,8 @@ private:
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* <p>The <code>Controller.Hardware.Application</code> object has properties representing Interface's state. The property
|
* <p>The <code>Controller.Hardware.Application</code> object has properties representing Interface's state. The property
|
||||||
* values are integer IDs, uniquely identifying each output. <em>Read-only.</em></p>
|
* values are integer IDs, uniquely identifying each output. <em>Read-only.</em></p>
|
||||||
* <p>These states can be mapped to actions or functions or <code>Controller.Standard</code> items in a {@link RouteObject}
|
* <p>These states can be mapped to actions or functions or <code>Controller.Standard</code> items in a {@link RouteObject}
|
||||||
* mapping (e.g., using the {@link RouteObject#when} method). Each data value is either <code>1.0</code> for "true" or
|
* mapping (e.g., using the {@link RouteObject#when} method). Each data value is either <code>1.0</code> for "true" or
|
||||||
* <code>0.0</code> for "false".</p>
|
* <code>0.0</code> for "false".</p>
|
||||||
* <table>
|
* <table>
|
||||||
* <thead>
|
* <thead>
|
||||||
|
@ -679,7 +679,7 @@ private:
|
||||||
* <tr><td><code>CameraIndependent</code></td><td>number</td><td>number</td><td>The camera is in independent mode.</td></tr>
|
* <tr><td><code>CameraIndependent</code></td><td>number</td><td>number</td><td>The camera is in independent mode.</td></tr>
|
||||||
* <tr><td><code>CameraEntity</code></td><td>number</td><td>number</td><td>The camera is in entity mode.</td></tr>
|
* <tr><td><code>CameraEntity</code></td><td>number</td><td>number</td><td>The camera is in entity mode.</td></tr>
|
||||||
* <tr><td><code>InHMD</code></td><td>number</td><td>number</td><td>The user is in HMD mode.</td></tr>
|
* <tr><td><code>InHMD</code></td><td>number</td><td>number</td><td>The user is in HMD mode.</td></tr>
|
||||||
* <tr><td><code>AdvancedMovement</code></td><td>number</td><td>number</td><td>Advanced movement (walking) controls are
|
* <tr><td><code>AdvancedMovement</code></td><td>number</td><td>number</td><td>Advanced movement (walking) controls are
|
||||||
* enabled.</td></tr>
|
* enabled.</td></tr>
|
||||||
* <tr><td><code>StrafeEnabled</code></td><td>number</td><td>number</td><td>Strafing is enabled</td></tr>
|
* <tr><td><code>StrafeEnabled</code></td><td>number</td><td>number</td><td>Strafing is enabled</td></tr>
|
||||||
* <tr><td><code>LeftHandDominant</code></td><td>number</td><td>number</td><td>Dominant hand set to left.</td></tr>
|
* <tr><td><code>LeftHandDominant</code></td><td>number</td><td>number</td><td>Dominant hand set to left.</td></tr>
|
||||||
|
@ -829,7 +829,7 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
|
||||||
audioDLLPath += "/audioWin7";
|
audioDLLPath += "/audioWin7";
|
||||||
}
|
}
|
||||||
QCoreApplication::addLibraryPath(audioDLLPath);
|
QCoreApplication::addLibraryPath(audioDLLPath);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QString defaultScriptsOverrideOption = getCmdOption(argc, constArgv, "--defaultScriptsOverride");
|
QString defaultScriptsOverrideOption = getCmdOption(argc, constArgv, "--defaultScriptsOverride");
|
||||||
|
|
||||||
|
@ -949,7 +949,7 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
|
||||||
DependencyManager::set<AvatarPackager>();
|
DependencyManager::set<AvatarPackager>();
|
||||||
DependencyManager::set<ScreenshareScriptingInterface>();
|
DependencyManager::set<ScreenshareScriptingInterface>();
|
||||||
PlatformHelper::setup();
|
PlatformHelper::setup();
|
||||||
|
|
||||||
QObject::connect(PlatformHelper::instance(), &PlatformHelper::systemWillWake, [] {
|
QObject::connect(PlatformHelper::instance(), &PlatformHelper::systemWillWake, [] {
|
||||||
QMetaObject::invokeMethod(DependencyManager::get<NodeList>().data(), "noteAwakening", Qt::QueuedConnection);
|
QMetaObject::invokeMethod(DependencyManager::get<NodeList>().data(), "noteAwakening", Qt::QueuedConnection);
|
||||||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "noteAwakening", Qt::QueuedConnection);
|
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "noteAwakening", Qt::QueuedConnection);
|
||||||
|
@ -1139,7 +1139,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
QFontDatabase::addApplicationFont(PathUtils::resourcesPath() + "fonts/Graphik-SemiBold.ttf");
|
QFontDatabase::addApplicationFont(PathUtils::resourcesPath() + "fonts/Graphik-SemiBold.ttf");
|
||||||
QFontDatabase::addApplicationFont(PathUtils::resourcesPath() + "fonts/Graphik-Regular.ttf");
|
QFontDatabase::addApplicationFont(PathUtils::resourcesPath() + "fonts/Graphik-Regular.ttf");
|
||||||
QFontDatabase::addApplicationFont(PathUtils::resourcesPath() + "fonts/Graphik-Medium.ttf");
|
QFontDatabase::addApplicationFont(PathUtils::resourcesPath() + "fonts/Graphik-Medium.ttf");
|
||||||
_window->setWindowTitle("Project Athena");
|
_window->setWindowTitle("Vircadia Interface");
|
||||||
|
|
||||||
Model::setAbstractViewStateInterface(this); // The model class will sometimes need to know view state details from us
|
Model::setAbstractViewStateInterface(this); // The model class will sometimes need to know view state details from us
|
||||||
|
|
||||||
|
@ -1162,7 +1162,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
deadlockWatchdogThread->setMainThreadID(QThread::currentThreadId());
|
deadlockWatchdogThread->setMainThreadID(QThread::currentThreadId());
|
||||||
deadlockWatchdogThread->start();
|
deadlockWatchdogThread->start();
|
||||||
|
|
||||||
// Pause the deadlock watchdog when we sleep, or it might
|
// Pause the deadlock watchdog when we sleep, or it might
|
||||||
// trigger a false positive when we wake back up
|
// trigger a false positive when we wake back up
|
||||||
auto platformHelper = PlatformHelper::instance();
|
auto platformHelper = PlatformHelper::instance();
|
||||||
|
|
||||||
|
@ -3166,7 +3166,7 @@ void Application::showLoginScreen() {
|
||||||
QJsonObject loginData = {};
|
QJsonObject loginData = {};
|
||||||
loginData["action"] = "login dialog popped up";
|
loginData["action"] = "login dialog popped up";
|
||||||
UserActivityLogger::getInstance().logAction("encourageLoginDialog", loginData);
|
UserActivityLogger::getInstance().logAction("encourageLoginDialog", loginData);
|
||||||
_window->setWindowTitle("Project Athena");
|
_window->setWindowTitle("Vircadia Interface");
|
||||||
} else {
|
} else {
|
||||||
resumeAfterLoginDialogActionTaken();
|
resumeAfterLoginDialogActionTaken();
|
||||||
}
|
}
|
||||||
|
@ -3789,8 +3789,8 @@ void Application::setPreferredCursor(const QString& cursorName) {
|
||||||
if (_displayPlugin && _displayPlugin->isHmd()) {
|
if (_displayPlugin && _displayPlugin->isHmd()) {
|
||||||
_preferredCursor.set(cursorName.isEmpty() ? DEFAULT_CURSOR_NAME : cursorName);
|
_preferredCursor.set(cursorName.isEmpty() ? DEFAULT_CURSOR_NAME : cursorName);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
_preferredCursor.set(cursorName.isEmpty() ? Cursor::Manager::getIconName(Cursor::Icon::SYSTEM) : cursorName);
|
_preferredCursor.set(cursorName.isEmpty() ? Cursor::Manager::getIconName(Cursor::Icon::SYSTEM) : cursorName);
|
||||||
}
|
}
|
||||||
|
|
||||||
showCursor(Cursor::Manager::lookupIcon(_preferredCursor.get()));
|
showCursor(Cursor::Manager::lookupIcon(_preferredCursor.get()));
|
||||||
|
@ -3977,7 +3977,7 @@ void Application::handleSandboxStatus(QNetworkReply* reply) {
|
||||||
DependencyManager::get<AddressManager>()->loadSettings(addressLookupString);
|
DependencyManager::get<AddressManager>()->loadSettings(addressLookupString);
|
||||||
sentTo = SENT_TO_PREVIOUS_LOCATION;
|
sentTo = SENT_TO_PREVIOUS_LOCATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
UserActivityLogger::getInstance().logAction("startup_sent_to", {
|
UserActivityLogger::getInstance().logAction("startup_sent_to", {
|
||||||
{ "sent_to", sentTo },
|
{ "sent_to", sentTo },
|
||||||
{ "sandbox_is_running", sandboxIsRunning },
|
{ "sandbox_is_running", sandboxIsRunning },
|
||||||
|
@ -4212,7 +4212,7 @@ bool Application::event(QEvent* event) {
|
||||||
idle();
|
idle();
|
||||||
|
|
||||||
#ifdef DEBUG_EVENT_QUEUE_DEPTH
|
#ifdef DEBUG_EVENT_QUEUE_DEPTH
|
||||||
// The event queue may very well grow beyond 400, so
|
// The event queue may very well grow beyond 400, so
|
||||||
// this code should only be enabled on local builds
|
// this code should only be enabled on local builds
|
||||||
{
|
{
|
||||||
int count = ::hifi::qt::getEventQueueSize(QThread::currentThread());
|
int count = ::hifi::qt::getEventQueueSize(QThread::currentThread());
|
||||||
|
@ -4251,7 +4251,7 @@ bool Application::event(QEvent* event) {
|
||||||
{ //testing to see if we can set focus when focus is not set to root window.
|
{ //testing to see if we can set focus when focus is not set to root window.
|
||||||
_glWidget->activateWindow();
|
_glWidget->activateWindow();
|
||||||
_glWidget->setFocus();
|
_glWidget->setFocus();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
case QEvent::TouchBegin:
|
case QEvent::TouchBegin:
|
||||||
|
@ -5236,7 +5236,7 @@ void Application::idle() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
checkChangeCursor();
|
checkChangeCursor();
|
||||||
|
|
||||||
#if !defined(DISABLE_QML)
|
#if !defined(DISABLE_QML)
|
||||||
|
@ -5489,7 +5489,7 @@ void Application::loadSettings() {
|
||||||
RenderScriptingInterface::getInstance()->loadSettings();
|
RenderScriptingInterface::getInstance()->loadSettings();
|
||||||
|
|
||||||
// Setup the PerformanceManager which will enforce the several settings to match the Preset
|
// Setup the PerformanceManager which will enforce the several settings to match the Preset
|
||||||
// On the first run, the Preset is evaluated from the
|
// On the first run, the Preset is evaluated from the
|
||||||
getPerformanceManager().setupPerformancePresetSettings(_firstRun.get());
|
getPerformanceManager().setupPerformancePresetSettings(_firstRun.get());
|
||||||
|
|
||||||
// finish initializing the camera, based on everything we checked above. Third person camera will be used if no settings
|
// finish initializing the camera, based on everything we checked above. Third person camera will be used if no settings
|
||||||
|
@ -5535,7 +5535,7 @@ bool Application::importEntities(const QString& urlOrFilename, const bool isObse
|
||||||
_entityClipboard->withWriteLock([&] {
|
_entityClipboard->withWriteLock([&] {
|
||||||
_entityClipboard->eraseAllOctreeElements();
|
_entityClipboard->eraseAllOctreeElements();
|
||||||
|
|
||||||
// FIXME: readFromURL() can take over the main event loop which may cause problems, especially if downloading the JSON
|
// FIXME: readFromURL() can take over the main event loop which may cause problems, especially if downloading the JSON
|
||||||
// from the Web.
|
// from the Web.
|
||||||
success = _entityClipboard->readFromURL(urlOrFilename, isObservable, callerId);
|
success = _entityClipboard->readFromURL(urlOrFilename, isObservable, callerId);
|
||||||
if (success) {
|
if (success) {
|
||||||
|
@ -7063,7 +7063,7 @@ void Application::updateWindowTitle() const {
|
||||||
auto accountManager = DependencyManager::get<AccountManager>();
|
auto accountManager = DependencyManager::get<AccountManager>();
|
||||||
auto isInErrorState = nodeList->getDomainHandler().isInErrorState();
|
auto isInErrorState = nodeList->getDomainHandler().isInErrorState();
|
||||||
|
|
||||||
QString buildVersion = " - Project Athena v0.86.0 K2 - "
|
QString buildVersion = " - Vircadia Interface - "
|
||||||
+ (BuildInfo::BUILD_TYPE == BuildInfo::BuildType::Stable ? QString("Version") : QString("Build"))
|
+ (BuildInfo::BUILD_TYPE == BuildInfo::BuildType::Stable ? QString("Version") : QString("Build"))
|
||||||
+ " " + applicationVersion();
|
+ " " + applicationVersion();
|
||||||
|
|
||||||
|
@ -8735,7 +8735,7 @@ bool Application::isThrottleRendering() const {
|
||||||
bool Application::hasFocus() const {
|
bool Application::hasFocus() const {
|
||||||
bool result = (QApplication::activeWindow() != nullptr);
|
bool result = (QApplication::activeWindow() != nullptr);
|
||||||
|
|
||||||
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
// On Windows, QWidget::activateWindow() - as called in setFocus() - makes the application's taskbar icon flash but doesn't
|
// On Windows, QWidget::activateWindow() - as called in setFocus() - makes the application's taskbar icon flash but doesn't
|
||||||
// take user focus away from their current window. So also check whether the application is the user's current foreground
|
// take user focus away from their current window. So also check whether the application is the user's current foreground
|
||||||
|
|
Loading…
Reference in a new issue