On 10/7/2011 6:09 PM, ext Bryce Schober wrote:
On Fri, Oct 7, 2011 at 2:59 AM, Leandro T. C. Melo
<[email protected] <mailto:[email protected]>> wrote:
About creating/editing the .shared file: Yes, it's not that nice, but
this file shouldn't change that often. Nevertheless, we are still
thinking of a nice form to automate this (we don't want to simply
propagate .user settings to the .shared file).
Why not simply add an optional attribute that can be added to each xml
tag? If you want to link the shared property to the user property (and
thus allow silently editing it in the UI), you could just add an
attribute like "userEditable='true'" to an element in the shared xml,
and then that element (and any under it) would be kept in sync between
the shared and user files.
This solution would still be manual, but be a lot more flexible, in
that the project admin would have the choice of whether they wanted
the settings to work that way, and wouldn't require any special gui
work at this point.
One argument against it is that the shared settings would be changed
silently, but they wouldn't be silent - they would show up in the
project history. They are shared for a reason, after all. It simply
allows the protocol for updating the shared settings fall under
whatever protocol must already exist in any project involving
collaboration on source.
Hy Bryce,
we considered a similar approach in which we mapped directly in
Creator's code the settings that are acceptable to be shared. It was not
flexible in the sense you suggest, but it also resulted in the .shared
and .user files being kept in sync (if you log settingsacessor.cpp you
should find it).
However, this particular decision we made fits into the criteria I
mentioned in the original email as "minimal impact to workflow". Yes, in
theory everyone should stick with what the project leader specifies. But
in practice that's not always true, and in such cases we prefer not to
silently change things or to make the user keep a "dirty" local .shared
file.
Cheers,
Leandro
--
Leandro T. C. Melo
Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-creator