Repository navigation
MSA: improve author information gui - #221
Conversation
|
I like the required-to-be-generated warning feature but I think I see a problem. If you've edited, for example, the .setup_assistant file outside of the MSA Gui and the timestamps are out of sync, the file will not be checked to be generated on the "Generate Configuration Files" widget. It will allow you to "Generate Package" without any warning that the file should be generated / checked in the GUI. Your current warning only pops up if the user actively unchecks it. I think it should also warn you if it was never checked at all |
| void ConfigurationFilesWidget::changeCheckedState(QListWidgetItem* item) | ||
| { | ||
| QVariant index = item->data(Qt::UserRole); | ||
| size_t index = item->data(Qt::UserRole).toUInt(); |
|
|
||
| // Display this list in the GUI | ||
| for (int i = 0; i < gen_files_.size(); ++i) | ||
| for (size_t i = 0; i < gen_files_.size(); ++i) |
| template_path = config_data_->appendPaths( config_data_->template_package_path_, file.file_name_); | ||
| file.description_ = "CMake build system configuration file"; | ||
| file.gen_func_ = boost::bind(&ConfigurationFilesWidget::copyTemplate, this, template_path, _1); | ||
| file.write_on_changes = 0; |
There was a problem hiding this comment.
before we merge this, I think these should be chosen now.
I see. What about marking externally modified files for re-creation but highlighting them in red and providing a corresponding message? Then, if the file is deselected, the user is warned again. Regarding the other files, I'm not exactly sure, which pieces of information they depend on. I will make an initial proposal though. |
Sounds good to me |
4e91036 to
fc401e2
Compare
|
I decided to keep conflicting files deselected - explicit changes by user should still have precedence. However, they will be marked red. Also, I change the generation-dialog to re-check the file list each time the dialog is chosen - in order to accommodate user edits in between. |
installed MoveIt package
…be written due to changes For now only implemented for author information. However, other bits of information and their affected can be considered too. - Set the appropriate bit in config_data_->changes. - Define dependency of files on information fields via write_on_changes.
|
Preparing a rebase to resolve conflicts before merging. |
* re-check + re-issue warning when entering generation dialog multiple times * mark conflicting files (modified externally and in MSA) with red color * augmented warning about conflicting files
fc401e2 to
0f8feec
Compare
|
Finished rebasing. |
|
Travis failed - looks like an integration test is failing: Seems totally unrelated to this PR but indicates we have a flaky test probably because of #63 I'll retrigger Travis now |
|
Just tested your changes. I notice that the popup warning that says "Attention: Some files (marked red) are changed both, externally and in the Setup Assistant" is always shown (when there are files that have changed outside of the MSA) even when there are no files actually marked red. Perhaps that part of the popup warning is hidden unless there are files that qualify to be red? It confused me at first. |
Hm. This doesn't happen for me: Could you have a look into your console to see, which files are conflicting? Maybe, you manually modified .setup_assistant? This is indeed always considered to be "conflicting". However, in this case this file turns red for me as expected: |
| else | ||
| item->setForeground( QBrush(QColor(255, 135, 0))); | ||
| } | ||
|
|
There was a problem hiding this comment.
Here and only here, the files entries are colored red or orange. If they are colored red, also the flag have_conflicting_changes is set which triggers the extra warning. I cannot see a reason for the behavior observed by @davetcoleman.
|
I cannot reproduce your behavior on my side. If the red extra warning pops up, at least one file is marked red. That's also what is stated in the code here. Maybe, there is some build issue and you should try to clean your workspace before re-building? |
|
The fault was mine - I was not seeing the red because |
|
Should this be merged into I/J also? |
|
Yes. This (should) resolve the problem I explained in #100 (comment) that also affects indigo. |
|
ill create PRs now |



This continues #187, v4hn#1.
As discussed don't install setup_assistant.launch.
In order to warn if the user disables generation for a file that should be (re)written, I propose the following mechanism:
write_on_changes).changesvariable (part ofconfig_data_).I implemented this mechanism for author information for now. Other bits of information should follow.