From a20edc49bd7c53ed1931a7c5145524e372ca6ed3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 4 Apr 2010 20:45:09 +0000 Subject: Invert default behavior regarding loading of version control plugins: Only load plugins that have been explicitly enabled by the user instead of loading all plugins per default. Most users won't use version control plugins at all and there is no need in wasting memory and performance. A user interface has been added in the "Services" settings for version control plugins. The user interface is only shown, if at least one plugin is available on the system. svn path=/trunk/KDE/kdebase/apps/; revision=1111101 --- src/settings/servicessettingspage.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/settings/servicessettingspage.h') diff --git a/src/settings/servicessettingspage.h b/src/settings/servicessettingspage.h index 9a3832e70..d2787e09b 100644 --- a/src/settings/servicessettingspage.h +++ b/src/settings/servicessettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009 by Peter Penz * + * Copyright (C) 2009-2010 by Peter Penz * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -21,6 +21,11 @@ #include +#include +#include + +class QCheckBox; +class QGroupBox; class QListWidget; /** @@ -49,11 +54,19 @@ private slots: */ void loadServices(); + /** + * Loads installed version control systems. + */ + void loadVersionControlSystems(); + bool isInServicesList(const QString& service) const; private: bool m_initialized; QListWidget* m_servicesList; + QGroupBox* m_vcsGroupBox; + QMap m_vcsPluginsMap; + QStringList m_enabledVcsPlugins; }; #endif -- cgit v1.3