Review Request: Implement per project editor settings
Spencer Jackson
spencerandrewjackson at gmail.com
Wed Apr 6 02:47:34 UTC 2011
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101028/
-----------------------------------------------------------
(Updated April 6, 2011, 2:47 a.m.)
Review request for KDevelop.
Changes
-------
This should remove the whitespace, most of the kDebug calls, and checks for the next version of KDE.
More importantly, it adds a dialog box for configuration. The box contains, originally, just the checkbox for enabling the override. When checked, the various configuration options become ungreyed to the side.
I'll have to take a crack at unit tests a little later. Additionally, I think there are a couple of cases where the wrong set of settings is used until the user switches documents.
Summary
-------
This patch adds support for having different editor configuration settings for different projects. This works by adding a configuration option which enables an editor settings override for a specific project. When this setting is enabled, editor configuration settings will be loaded from the project configuration, rather than the kdevelop configuration. When documents are changed, the configuration will be refreshed, allowing the editor settings to change between projects.
Note: While I was writing this, I noticed that Kate would save the configuration settings to the kdevelop configuration file during configDialog(). This was not desirable behaviour, as I couldn't prevent projects using that config from getting clobbered. Further, it broke the documented spec. I documented this in bug #270122, and have submitted a patch to Kate for review.
This addresses bugs 249194 and 270122.
http://bugs.kde.org/show_bug.cgi?id=249194
http://bugs.kde.org/show_bug.cgi?id=270122
Diffs (updated)
-----
shell/CMakeLists.txt 95641dd
shell/documentcontroller.h 95b5dd7
shell/documentcontroller.cpp 1b4c560
shell/projectcontroller.h a2febaf
shell/projectcontroller.cpp f006e24
shell/projecteditorconfigurationdialog.h PRE-CREATION
shell/projecteditorconfigurationdialog.cpp PRE-CREATION
shell/projecteditorsettings.ui PRE-CREATION
Diff: http://git.reviewboard.kde.org/r/101028/diff
Testing
-------
Enabled the override in kdevplatform. Opened a file from that project. Enabled a setting in the editor. Stepped into a file opened from kdevelop. Checked if setting was enabled. Enabled another setting. Stepped back into kdevplatform. Check if setting was disabled.
Thanks,
Spencer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20110406/98be4d60/attachment.html>
More information about the KDevelop-devel
mailing list