Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDK to 310: Support multiple Shading Controls #236

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

jmarrec
Copy link
Collaborator

@jmarrec jmarrec commented Sep 17, 2020

Fix #235

Moved Shading Controls to a subtab on the Facility Tab. It's probably not the perfect implementation, but it's not bad

image (2)
image

@@ -54,7 +54,7 @@ else()
# Occasionally we can point to a specific PR by using something like ""http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/PR-4080"
set(OPENSTUDIO_BASELINK_CI
# "http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/develop"
"http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/PR-4080"
"http://openstudio-ci-builds.s3-website-us-west-2.amazonaws.com/PR-4066"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: need to update hash for Windows but Jenkins build is pending

Comment on lines 416 to 423
// TODO: this field will update depending fields, like clearing the Setpoint / Setpoint2 / ScheduleName
// So when value changes, we should trigger a row refresh
addComboBoxColumn<std::string, model::ShadingControl>(
Heading(QString(SHADINGTYPE)), static_cast<std::string (*)(const std::string&)>(&openstudio::toString),
std::function<std::vector<std::string>()>(&model::ShadingControl::shadingControlTypeValues),
CastNullAdapter<model::ShadingControl>(&model::ShadingControl::shadingControlType),
CastNullAdapter<model::ShadingControl>(&model::ShadingControl::setShadingControlType)
);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

Comment on lines 515 to 527
addNameLineEditColumn(Heading(QString(SUBSURFACENAME)), true, false, // Is Inspectable, but not Deletable
CastNullAdapter<model::ModelObject>(&model::ModelObject::name),
CastNullAdapter<model::ModelObject>(&model::ModelObject::setName),
boost::optional<std::function<void(model::ModelObject*)>>(
std::function<void(model::ModelObject*)>([](model::ModelObject* t_mo) {
if (auto ss = t_mo->optionalCast<model::SubSurface>()) {
// TODO: Ideally we should remove the subSurface only from the current Shading Control, but I don't see how...
ss->removeAllShadingControls();
}
})),
DataSource(subSurfaces, false,
QSharedPointer<DropZoneConcept>(new DropZoneConceptImpl<model::ModelObject, model::ShadingControl>(
Heading(SUBSURFACENAME), getter, setter, reset))));
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

Copy link
Collaborator

@macumber macumber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created an alternate PR #240

Basically I think that EnergyPlus daylighting and shading controls are broken, I don't want to try to build a UI on them until they are fixed.

@jmarrec jmarrec marked this pull request as draft May 4, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to OS SDK 3.1.0
2 participants