History

Merge pull request #9886 from vladest/tablet-ui-entity-statistics

Tablet ui entity statistics

Seth Alves committed 9 years ago

Commit 563d59b2 parents df82c30 181c7da8 files · +845 −1Browse files

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

Unified · Split

interface/src/Application.cpp+15−0
@@ -173,6 +173,7 @@ · 172 unmodified lines
173#include "ui/overlays/Overlays.h"173#include "ui/overlays/Overlays.h"
174#include "Util.h"174#include "Util.h"
175#include "InterfaceParentFinder.h"175#include "InterfaceParentFinder.h"
176#include "ui/OctreeStatsProvider.h"
176 177
177#include "FrameTimingsScriptingInterface.h"178#include "FrameTimingsScriptingInterface.h"
178#include <GPUIdent.h>179#include <GPUIdent.h>
@@ -523,6 +524,7 @@ bool setupEssentials(int& argc, char** argv) { · 344 unmodified lines
523 DependencyManager::set<OffscreenQmlSurfaceCache>();524 DependencyManager::set<OffscreenQmlSurfaceCache>();
524 DependencyManager::set<EntityScriptClient>();525 DependencyManager::set<EntityScriptClient>();
525 DependencyManager::set<EntityScriptServerLogClient>();526 DependencyManager::set<EntityScriptServerLogClient>();
527 DependencyManager::set<OctreeStatsProvider>(nullptr, qApp->getOcteeSceneStats());
526 return previousSessionCrashed;528 return previousSessionCrashed;
527}529}
528 530
@@ -1807,6 +1809,7 @@ Application::~Application() { · 1278 unmodified lines
1807 DependencyManager::destroy<GeometryCache>();1809 DependencyManager::destroy<GeometryCache>();
1808 DependencyManager::destroy<ScriptCache>();1810 DependencyManager::destroy<ScriptCache>();
1809 DependencyManager::destroy<SoundCache>();1811 DependencyManager::destroy<SoundCache>();
1812 DependencyManager::destroy<OctreeStatsProvider>();
1810 1813
1811 ResourceManager::cleanup();1814 ResourceManager::cleanup();
1812 1815
@@ -6398,6 +6401,18 @@ void Application::loadLODToolsDialog() { · 4585 unmodified lines
6398 6401
6399}6402}
6400 6403
6404
6405void Application::loadEntityStatisticsDialog() {
6406 auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
6407 auto tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet("com.highfidelity.interface.tablet.system"));
6408 if (tablet->getToolbarMode() || (!tablet->getTabletRoot() && !isHMDMode())) {
6409 auto dialogsManager = DependencyManager::get<DialogsManager>();
6410 dialogsManager->octreeStatsDetails();
6411 } else {
6412 tablet->pushOntoStack("../../hifi/dialogs/TabletEntityStatistics.qml");
6413 }
6414
6415}
6401void Application::toggleLogDialog() {6416void Application::toggleLogDialog() {
6402 if (! _logDialog) {6417 if (! _logDialog) {
6403 _logDialog = new LogDialog(nullptr, getLogger());6418 _logDialog = new LogDialog(nullptr, getLogger());

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t