You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/kcontrol/kcontrol
Mavridis Philippe 63178a8866 KControl: implement dynamic module tests
Since KDE 3.4 there is underlying support for dynamically determining whether a module should
be loaded or not, depending on an exported test function which would return a boolean value
depending on the success of one or more tests (e.g. for presence of specific hardware).

This approach is documented but has so far not been implemented by the TDE Control Centre.

This commit adds a check to the TCC which performs the test function if needed (that is, if
the X-TDE-Test-Module property is true) and, if it returns false, prevents showing the
module in the tree list, which is the intended behaviour of the test function feature.

For more information see:
https://wiki.trinitydesktop.org/index.php?title=TDEConfig_Module_HOWTO&oldid=1893#Making_a_KCModule_dynamically_available

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
(cherry picked from commit e91257a7c7)
6 months ago
..
about Removed code formatting modelines. 4 years ago
CMakeL10n.txt Add CMakeL10n rules. 6 years ago
CMakeLists.txt Desktop file translations: 5 years ago
KControl.desktop Desktop file translations: 5 years ago
KControl_NoDisplay.desktop Desktop file translations: 5 years ago
Makefile.am Improve compatibility with non-Trinity environment menus and add a single 11 years ago
aboutwidget.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
aboutwidget.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
cr16-app-kcontrol.png Fix invalid headers in PNG files and optimize for size 9 years ago
cr32-app-kcontrol.png Fix invalid headers in PNG files and optimize for size 9 years ago
cr48-app-kcontrol.png Fix invalid headers in PNG files and optimize for size 9 years ago
cr64-app-kcontrol.png Fix invalid headers in PNG files and optimize for size 9 years ago
cr128-app-kcontrol.png Fix invalid headers in PNG files and optimize for size 9 years ago
dockcontainer.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
dockcontainer.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
global.cpp Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3. 2 years ago
global.h Rename KIcon to enhance compatibility with KDE4 12 years ago
helpwidget.cpp Fixed help handbook sections for TDE Components. This relates to bug 1850. 10 years ago
helpwidget.h Add mechanism by which sections of relevant docbooks may be opened automatically based on active tab in TDECModule 11 years ago
indexwidget.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
indexwidget.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
kcontrolui.rc Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
kcrootonly.cpp Rename additional header files to avoid conflicts with KDE4 12 years ago
kcrootonly.h Fix FTBFS resulting from KCModule rename 12 years ago
main.cpp Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT 10 months ago
main.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
moduleIface.cpp Replace various '#define' strings - part 6 1 year ago
moduleIface.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
moduleiconview.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
moduleiconview.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
modulemenu.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
modulemenu.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
modules.cpp KControl: implement dynamic module tests 6 months ago
modules.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
moduletreeview.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
moduletreeview.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
proxywidget.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
proxywidget.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
searchwidget.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
searchwidget.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
tde-kcontrol.desktop Desktop file translations: 5 years ago
toplevel.cpp Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines 1 year ago
toplevel.h Replace Q_OBJECT with TQ_OBJECT 2 years ago
version.h Rename common header files for consistency with class renaming 12 years ago