summaryrefslogtreecommitdiffstats
path: root/kcontrol/keys
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-03 23:13:17 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-03 23:13:17 -0500
commit88a2e255141f97ac65c65fd89b5ef9a30b9138c4 (patch)
tree15dbaac8e5aaf4f3effed2d01ae9c82aa5f08236 /kcontrol/keys
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 'kcontrol/keys')
-rw-r--r--kcontrol/keys/main.cpp19
-rw-r--r--kcontrol/keys/main.h2
2 files changed, 21 insertions, 0 deletions
diff --git a/kcontrol/keys/main.cpp b/kcontrol/keys/main.cpp
index 7e158b677..5fda60ca3 100644
--- a/kcontrol/keys/main.cpp
+++ b/kcontrol/keys/main.cpp
@@ -125,6 +125,25 @@ void KeyModule::resizeEvent( TQResizeEvent * )
m_pTab->setGeometry( 0, 0, width(), height() );
}
+TQString KeyModule::handbookSection() const
+{
+ int index = m_pTab->currentPageIndex();
+ if (index == 0) {
+ //return "key-bindings-intro";
+ return TQString::null;
+ }
+ else if (index == 1) {
+ //return "key-bindings-use";
+ return TQString::null;
+ }
+ else if (index == 2) {
+ return "key-bindings-modifiers";
+ }
+ else {
+ return TQString::null;
+ }
+}
+
//----------------------------------------------------
extern "C"
diff --git a/kcontrol/keys/main.h b/kcontrol/keys/main.h
index 5299e3884..281b2d37a 100644
--- a/kcontrol/keys/main.h
+++ b/kcontrol/keys/main.h
@@ -43,6 +43,8 @@ class KeyModule : public TDECModule
void save();
void defaults();
+ virtual TQString handbookSection() const;
+
protected:
void initGUI();
void resizeEvent( TQResizeEvent* );