Browse Source

Add GUI check box to control mouse wheel cycling over tab bar in konqueror.

Work remains to finish the patch to actually stop the cycling.
This partially resolves bug report 910.
Darrell Anderson 6 years ago
parent
commit
2b96a18020
3 changed files with 14 additions and 0 deletions
  1. 7
    0
      kcontrol/konqhtml/htmlopts.cpp
  2. 1
    0
      kcontrol/konqhtml/htmlopts.h
  3. 6
    0
      konqueror/konqueror.kcfg

+ 7
- 0
kcontrol/konqhtml/htmlopts.cpp View File

@@ -95,6 +95,11 @@ KMiscHTMLOptions::KMiscHTMLOptions(TDEConfig *config, TQString group, TQWidget *
95 95
     connect(m_pDynamicTabbarHide, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged()));
96 96
     laygroup->addWidget(m_pDynamicTabbarHide);
97 97
 
98
+    m_pDynamicTabbarCycle = new TQCheckBox( i18n( "C&ycle tabs with mouse wheel" ), bgTabbedBrowsing );
99
+    TQWhatsThis::add( m_pDynamicTabbarCycle, i18n("This will cycle through tabs when there are two or more tabs.") );
100
+    connect(m_pDynamicTabbarCycle, TQT_SIGNAL(clicked()), TQT_SLOT(slotChanged()));
101
+    laygroup->addWidget(m_pDynamicTabbarCycle);
102
+
98 103
     TQHBoxLayout *laytab = new TQHBoxLayout(laygroup, KDialog::spacingHint());
99 104
     TQPushButton *advancedTabButton = new TQPushButton( i18n( "Advanced Options"), bgTabbedBrowsing );
100 105
     laytab->addWidget(advancedTabButton);
@@ -289,6 +294,7 @@ void KMiscHTMLOptions::load( bool useDefaults )
289 294
     m_pConfig->setGroup("FMSettings");
290 295
     m_pShowMMBInTabs->setChecked( m_pConfig->readBoolEntry( "MMBOpensTab", false ) );
291 296
     m_pDynamicTabbarHide->setChecked( ! (m_pConfig->readBoolEntry( "AlwaysTabbedMode", false )) );
297
+    m_pDynamicTabbarCycle->setChecked( m_pConfig->readBoolEntry( "TabsCycleWheel", true ) );
292 298
 
293 299
     TDEConfig config("kbookmarkrc", true, false);
294 300
     config.setReadDefaults( useDefaults );
@@ -361,6 +367,7 @@ void KMiscHTMLOptions::save()
361 367
     m_pConfig->setGroup("FMSettings");
362 368
     m_pConfig->writeEntry( "MMBOpensTab", m_pShowMMBInTabs->isChecked() );
363 369
     m_pConfig->writeEntry( "AlwaysTabbedMode", !(m_pDynamicTabbarHide->isChecked()) );
370
+    m_pConfig->writeEntry( "TabsCycleWheel", m_pDynamicTabbarCycle->isChecked() );
364 371
     m_pConfig->sync();
365 372
 
366 373
     TDEConfig config("kbookmarkrc", false, false);

+ 1
- 0
kcontrol/konqhtml/htmlopts.h View File

@@ -62,6 +62,7 @@ private:
62 62
     TQCheckBox* m_pShowMMBInTabs;
63 63
     TQCheckBox* m_pFormCompletionCheckBox;
64 64
     TQCheckBox* m_pDynamicTabbarHide;
65
+    TQCheckBox* m_pDynamicTabbarCycle;
65 66
     TQCheckBox* m_pAdvancedAddBookmarkCheckBox;
66 67
     TQCheckBox* m_pOnlyMarkedBookmarksCheckBox;
67 68
     KIntNumInput* m_pMaxFormCompletionItems;

+ 6
- 0
konqueror/konqueror.kcfg View File

@@ -109,6 +109,12 @@
109 109
       <whatsthis></whatsthis>
110 110
       <!-- checked -->
111 111
     </entry>
112
+    <entry key="TabsCycleWheel" type="Bool">
113
+      <default>true</default>
114
+      <label></label>
115
+      <whatsthis></whatsthis>
116
+      <!-- checked -->
117
+    </entry>
112 118
     <entry key="AlwaysTabbedMode" type="Bool">
113 119
       <default>false</default>
114 120
       <label></label>

Loading…
Cancel
Save