History

name the current domain server

stojce committed 13 years ago

Commit a362fdc1 parent 934e2e34 files · +87 −29Browse files

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

Unified · Split

interface/src/Application.cpp+6−2
@@ -147,6 +147,7 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : · 146 unmodified lines
147147
148148 NodeList::getInstance()->addHook(&_voxels);
149149 NodeList::getInstance()->addHook(this);
150+ NodeList::getInstance()->addDomainListener(this);
150151
151152
152153 // network receive thread and voxel parsing thread are both controlled by the --nonblocking command line
@@ -236,6 +237,7 @@ Application::Application(int& argc, char** argv, timeval &startup_time) : · 83 unmodified lines
236237 Application::~Application() {
237238 NodeList::getInstance()->removeHook(&_voxels);
238239 NodeList::getInstance()->removeHook(this);
240+ NodeList::getInstance()->removeDomainListener(this);
239241
240242 _sharedVoxelSystem.changeTree(new VoxelTree);
241243
@@ -314,8 +316,6 @@ void Application::initializeGL() { · 72 unmodified lines
314316 char title[50];
315317 sprintf(title, "Interface: %4.2f seconds\n", startupTime);
316318 qDebug("%s", title);
317− _window->setWindowTitle(title);
318−
319319 const char LOGSTASH_INTERFACE_START_TIME_KEY[] = "interface-start-time";
320320
321321 // ask the Logstash class to record the startup time
@@ -3235,6 +3235,10 @@ void Application::attachNewHeadToNode(Node* newNode) { · 2913 unmodified lines
32353235 }
32363236 }
32373237
3238+void Application::domainChanged(QString domain) {
3239+ _window->setWindowTitle(domain);
3240+}
3241+
32383242 void Application::nodeAdded(Node* node) {
32393243 }
32403244

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