Bug 74817 - option to configure toolbars missing
Summary: option to configure toolbars missing
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kab3
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Tobias Koenig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 12:23 UTC by Helge Hielscher
Modified: 2009-08-05 16:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helge Hielscher 2004-02-10 12:23:28 UTC
Version:            (using KDE KDE 3.2.0)
OS:          Linux

Please add an option to configure the toolbars. Personally I am missing the buttons to switch between the different extension bars and views.
Comment 1 Tobias Koenig 2004-02-19 12:52:29 UTC
CVS commit by tokoe: 

Bring back the EditToolbarAction, that fixes #74817 as well.

CCMAIL:74817-done@bugs.kde.org


  M +20 -0     kaddressbookmain.cpp   1.42
  M +2 -0      kaddressbookmain.h   1.25
  M +2 -1      kaddressbookui.rc   1.46


--- kdepim/kaddressbook/kaddressbookmain.cpp  #1.41:1.42
@@ -22,4 +22,5 @@
 */
 
+#include <kedittoolbar.h>
 #include <kkeydialog.h>
 #include <klocale.h>
@@ -114,4 +115,6 @@ void KAddressBookMain::initActions()
   action = KStdAction::keyBindings( this, SLOT( configureKeyBindings() ), actionCollection() );
   action->setWhatsThis( i18n( "You will be presented with a dialog, where you can configure the application wide shortcuts." ) );
+
+  KStdAction::configureToolbars( this, SLOT( configureToolbars() ), actionCollection() );
 }
 
@@ -121,3 +124,20 @@ void KAddressBookMain::configureKeyBindi
 }
 
+void KAddressBookMain::configureToolbars()
+{
+  saveMainWindowSettings( KGlobal::config(), "MainWindow" );
+
+  KEditToolbar edit( factory() );
+  connect( &edit, SIGNAL( newToolbarConfig() ),
+           this, SLOT( slotNewToolbarConfig() ) );
+
+  edit.exec();
+}
+
+void KAddressBookMain::newToolbarConfig()
+{
+  createGUI();
+  applyMainWindowSettings( KGlobal::config(), "MainWindow" );
+}
+
 #include "kaddressbookmain.moc"

--- kdepim/kaddressbook/kaddressbookmain.h  #1.24:1.25
@@ -79,4 +79,6 @@ class KAddressBookMain : public KMainWin
   private slots:
     void configureKeyBindings();
+    void configureToolbars();
+    void newToolbarConfig();
 
   private:

--- kdepim/kaddressbook/kaddressbookui.rc  #1.45:1.46
@@ -1,4 +1,4 @@
 <!DOCTYPE kpartgui>
-<kpartgui name="kaddressbook" version="11">
+<kpartgui name="kaddressbook" version="12">
 
   <MenuBar>
@@ -59,4 +59,5 @@
       <Separator/>
       <Action name="options_configure_keybinding"/>
+      <Action name="options_configure_toolbars"/>
       <Action name="options_configure"/>
       <Merge name="configure_merge"/>


Comment 2 Tobias Koenig 2009-08-05 16:04:57 UTC
The development of the old KAddressBook will be discontinued for KDE 4.4.
Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product.