Skip to content

Commit febd791

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents d640698 + b19f3a9 commit febd791

8 files changed

Lines changed: 1280 additions & 15 deletions

File tree

src/openstudio_lib/GeometryEditorView.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
#include <openstudio/utilities/core/Assert.hpp>
5050
#include <openstudio/utilities/core/Checksum.hpp>
51-
#include <openstudio/utilities/bcl/RemoteBCL.hpp>
51+
#include "../utilities/RemoteBCLNLR.hpp"
5252
#include <openstudio/utilities/geometry/FloorplanJS.hpp>
5353
#include <openstudio/utilities/geometry/ThreeJS.hpp>
5454

@@ -256,7 +256,7 @@ void FloorspaceEditor::loadEditor() {
256256
}
257257

258258
// DLM: need a better check here
259-
if (openstudio::RemoteBCL::isOnline()) {
259+
if (openstudio::RemoteBCLNLR::isOnline()) {
260260
config["online"] = true;
261261
} else {
262262
config["online"] = false;

src/openstudio_lib/OSDocument.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
#include <openstudio/utilities/bcl/BCLComponent.hpp>
6060
#include <openstudio/utilities/bcl/LocalBCL.hpp>
61-
#include <openstudio/utilities/bcl/RemoteBCL.hpp>
61+
#include "../utilities/RemoteBCLNLR.hpp"
6262
#include <openstudio/utilities/core/Assert.hpp>
6363
#include <openstudio/utilities/core/Checksum.hpp>
6464
#include <openstudio/utilities/core/PathHelpers.hpp>
@@ -1757,7 +1757,7 @@ void OSDocument::openBclDlg() {
17571757
return;
17581758
}
17591759

1760-
if (!RemoteBCL::isOnline()) {
1760+
if (!RemoteBCLNLR::isOnline()) {
17611761
QMessageBox::information(this->mainWindow(), "Offline", "You appear to be offline, please connect to the internet to access the BCL.",
17621762
QMessageBox::Ok);
17631763
return;
@@ -1807,7 +1807,7 @@ void OSDocument::openMeasuresBclDlg() {
18071807
return;
18081808
}
18091809

1810-
if (!RemoteBCL::isOnline()) {
1810+
if (!RemoteBCLNLR::isOnline()) {
18111811
QMessageBox::information(this->mainWindow(), "Offline", "You appear to be offline, please connect to the internet to access the BCL.",
18121812
QMessageBox::Ok);
18131813
return;

src/shared_gui_components/BuildingComponentDialogCentralWidget.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
#include <openstudio/utilities/bcl/BCL.hpp>
2020
#include <openstudio/utilities/bcl/LocalBCL.hpp>
21-
#include <openstudio/utilities/bcl/RemoteBCL.hpp>
21+
#include "../utilities/RemoteBCLNLR.hpp"
2222
#include <openstudio/utilities/core/Assert.hpp>
2323

2424
#include "../model_editor/Application.hpp"
@@ -190,7 +190,7 @@ void BuildingComponentDialogCentralWidget::setTid(const std::string& filterType,
190190
delete comp;
191191
}
192192

193-
RemoteBCL remoteBCL;
193+
RemoteBCLNLR remoteBCL;
194194
remoteBCL.setTimeOutSeconds(m_timeoutSeconds);
195195
std::vector<BCLSearchResult> responses;
196196
if (filterType == "components") {
@@ -330,7 +330,7 @@ void BuildingComponentDialogCentralWidget::downloadNextComponent() {
330330
if (m_remoteBCL) {
331331
// currently doing a download
332332
if (m_downloadTimer.isValid()) {
333-
// RemoteBCL does not always call the call back for us if we timeout
333+
// RemoteBCLNLR does not always call the call back for us if we timeout
334334
if (m_downloadTimer.elapsed() > static_cast<qint64>(1000) * m_timeoutSeconds) {
335335
m_timer->stop();
336336

@@ -344,7 +344,7 @@ void BuildingComponentDialogCentralWidget::downloadNextComponent() {
344344
m_downloadTimer.invalidate();
345345
m_currentDownload.reset();
346346

347-
if (!RemoteBCL::isOnline()) {
347+
if (!RemoteBCLNLR::isOnline()) {
348348
// if we have gone offline cancel the remaining pending downloads
349349
clearPendingDownloads(true);
350350
}
@@ -372,7 +372,7 @@ void BuildingComponentDialogCentralWidget::downloadNextComponent() {
372372
m_progressBar->setVisible(true);
373373

374374
if (m_currentDownload->second == "components") {
375-
m_remoteBCL = std::make_shared<RemoteBCL>();
375+
m_remoteBCL = std::make_shared<RemoteBCLNLR>();
376376
m_remoteBCL->setTimeOutSeconds(m_timeoutSeconds);
377377

378378
// Connect to Nano Signal
@@ -388,7 +388,7 @@ void BuildingComponentDialogCentralWidget::downloadNextComponent() {
388388
}
389389

390390
} else if (m_currentDownload->second == "measures") {
391-
m_remoteBCL = std::make_shared<RemoteBCL>();
391+
m_remoteBCL = std::make_shared<RemoteBCLNLR>();
392392
m_remoteBCL->setTimeOutSeconds(m_timeoutSeconds);
393393

394394
// Connect to Nano Signal

src/shared_gui_components/BuildingComponentDialogCentralWidget.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace openstudio {
2828
class Component;
2929
class ComponentList;
3030
class CollapsibleComponentList;
31-
class RemoteBCL;
31+
class RemoteBCLNLR;
3232

3333
class BuildingComponentDialogCentralWidget
3434
: public QWidget
@@ -64,7 +64,7 @@ class BuildingComponentDialogCentralWidget
6464
int m_pageIdx;
6565
QString m_searchString;
6666
bool m_showNewComponents;
67-
std::shared_ptr<RemoteBCL> m_remoteBCL;
67+
std::shared_ptr<RemoteBCLNLR> m_remoteBCL;
6868
QTimer* m_timer;
6969
QElapsedTimer m_downloadTimer;
7070
std::optional<std::pair<std::string, std::string>> m_currentDownload;

src/shared_gui_components/MeasureManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <openstudio/utilities/core/PathHelpers.hpp>
2626
#include <openstudio/utilities/core/System.hpp>
2727
#include <openstudio/utilities/bcl/BCLMeasure.hpp>
28-
#include <openstudio/utilities/bcl/RemoteBCL.hpp>
28+
#include "../utilities/RemoteBCLNLR.hpp"
2929
#include <openstudio/utilities/bcl/LocalBCL.hpp>
3030
#include <openstudio/utilities/filetypes/WorkflowJSON.hpp>
3131
#include <openstudio/utilities/filetypes/WorkflowStep.hpp>
@@ -953,7 +953,7 @@ bool MeasureManager::checkForUpdates(const openstudio::path& measureDir, bool fo
953953
}
954954

955955
void MeasureManager::checkForRemoteBCLUpdates() {
956-
RemoteBCL remoteBCL;
956+
RemoteBCLNLR remoteBCL;
957957
remoteBCL.checkForMeasureUpdates();
958958
std::vector<BCLSearchResult> updates = remoteBCL.measuresWithUpdates();
959959

src/utilities/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ CONFIGURE_FILE_WITH_CHECKSUM("OpenStudioApplicationPathHelpers.cxx.in" "${CMAKE_
88
set(${target_name}_src
99
OpenStudioApplicationPathHelpers.hpp
1010
${CMAKE_CURRENT_BINARY_DIR}/OpenStudioApplicationPathHelpers.cxx
11+
RemoteBCLNLR.hpp
12+
RemoteBCLNLR.cpp
1113
)
1214

1315
# set up groups of source files for Visual Studio

0 commit comments

Comments
 (0)