Skip to content

Fix #2798 - Show Uneditable measure name in addition to Display Name#3465

Merged
macumber merged 4 commits intoNatLabRockies:developfrom
jmarrec:PR_opened/Fix_2798_UneditableMeasureName2
Mar 21, 2019
Merged

Fix #2798 - Show Uneditable measure name in addition to Display Name#3465
macumber merged 4 commits intoNatLabRockies:developfrom
jmarrec:PR_opened/Fix_2798_UneditableMeasureName2

Conversation

@jmarrec
Copy link
Copy Markdown
Collaborator

@jmarrec jmarrec commented Mar 21, 2019

(Initially tried another approach in #3438, after discussion I am starting from a clean slate)

Fix #2798 - Show Uneditable measure name in addition to Display Name

Upon dragging a new measure:

  • New: OSW 'measure_dir_name" goes to "Measure Directory Name" and cannot be modified
  • OSW 'name' goes to "Name" as usual

image

image

@jmarrec jmarrec requested a review from macumber March 21, 2019 16:34
// TODO: JM 2019-03-21 Should I ensure that I get just the measure directory NAME and not a path?
// Within OS App there's no risk since the measure_dir_name doesn't include "../../" or absolute path
// (QFileInfo.fileName)
if (boost::optional<std::string> name = m_step.measureDirName()){
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Need to test that out...


if(applyMeasureNow){
nameLineEdit->setReadOnly(true);
nameNonEditableLineEdit->setVisible(false);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jmarrec just curious, why not show this as read only in apply measure now?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I don't know either, let me change that real quick. (plus, I would actually need to hide the title too if hide the input box)

(and fix some discrepancies in formatting)
@jmarrec
Copy link
Copy Markdown
Collaborator Author

jmarrec commented Mar 21, 2019

One thing that I discovered is that "Modeler Description" is always empty in Apply Now for some reason. Affects 2.7.1 too

On Measures tab, just fine:

image

Apply Now, empty:

image

@jmarrec jmarrec marked this pull request as ready for review March 21, 2019 17:21
@macumber macumber merged commit 5e2e466 into NatLabRockies:develop Mar 21, 2019
@jmarrec jmarrec deleted the PR_opened/Fix_2798_UneditableMeasureName2 branch October 21, 2019 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants