summaryrefslogtreecommitdiffstats
path: root/twin/kcmtwin/twinoptions/main.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2014-10-03 23:13:17 -0500
committerTimothy Pearson <[email protected]>2014-10-03 23:13:17 -0500
commit88a2e255141f97ac65c65fd89b5ef9a30b9138c4 (patch)
tree15dbaac8e5aaf4f3effed2d01ae9c82aa5f08236 /twin/kcmtwin/twinoptions/main.cpp
parent34cc40d9fb8f21485a467c2cfaba6fd0b063719f (diff)
downloadtdebase-88a2e255141f97ac65c65fd89b5ef9a30b9138c4.tar.gz
tdebase-88a2e255141f97ac65c65fd89b5ef9a30b9138c4.zip
Add mechanism by which sections of relevant docbooks may be opened automatically based on active tab in TDECModule
Fix up several tabbed TDEControl modules to use this mechanism Fix a couple of docbooks with missing section IDs This relates to Bug 1850
Diffstat (limited to 'twin/kcmtwin/twinoptions/main.cpp')
-rw-r--r--twin/kcmtwin/twinoptions/main.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/twin/kcmtwin/twinoptions/main.cpp b/twin/kcmtwin/twinoptions/main.cpp
index c2a74ebb0..8ed52b067 100644
--- a/twin/kcmtwin/twinoptions/main.cpp
+++ b/twin/kcmtwin/twinoptions/main.cpp
@@ -200,6 +200,40 @@ void KWinOptions::moduleChanged(bool state)
emit TDECModule::changed(state);
}
+TQString KWinOptions::handbookSection() const
+{
+ int index = tab->currentPageIndex();
+ if (index == 0)
+ {
+ //return "focus";
+ return TQString::null;
+ }
+ else if (index == 1)
+ {
+ return "titlebar-actions";
+ }
+ else if (index == 2)
+ {
+ return "window-actions";
+ }
+ else if (index == 3)
+ {
+ return "moving";
+ }
+ else if (index == 4)
+ {
+ return "advanced";
+ }
+ else if (index == 5)
+ {
+ return "translucency";
+ }
+ else
+ {
+ return TQString::null;
+ }
+}
+
TDEActionsOptions::TDEActionsOptions(TQWidget *parent, const char *name)
: TDECModule(parent, name)