OpenStudioApplication icon indicating copy to clipboard operation
OpenStudioApplication copied to clipboard

Apply Measure Now and Run Tab display measure html output differently

Open macumber opened this issue 4 years ago • 3 comments

Issue overview

Measure html output written to register info should be rendered the same in both Apply Measure Now and the Run Tab. Currently there are two different implementations that render differently.

https://github.com/openstudiocoalition/OpenStudioApplication/blob/6a7ef37778e3a4ebb1891d522375f7bf69dec558/src/openstudio_lib/ApplyMeasureNowDialog.cpp#L568

and

https://github.com/openstudiocoalition/OpenStudioApplication/blob/6a7ef37778e3a4ebb1891d522375f7bf69dec558/src/openstudio_lib/RunTabView.cpp#L267-L271

We should have a shared implementation for these two tabs

macumber avatar Aug 07 '21 17:08 macumber

Example measure: measure.rb.txt

macumber avatar Aug 07 '21 17:08 macumber

Might also consider making both UIs use a fixed width font so measure writers can control formatting.

const QFont fixedFont = QFontDatabase::systemFont(QFontDatabase::FixedFont)

macumber avatar Aug 07 '21 17:08 macumber

This is going to be very annoying to do. The RunTabView is one big QTextEdit currently.

jmarrec avatar May 02 '22 15:05 jmarrec