[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdevelop/src
From:       Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date:       2005-02-09 0:22:41
Message-ID: 20050209002241.ECEDB1D142 () office ! kde ! org
[Download RAW message or body]

CVS commit by dagerbo: 

This should let the toolbars retain their position and visibility state when the
toolbar configuration has changed. It also seems to cure the crash that always
came on exit after the toolbars had been changed.

There are a number of issues left with the toolbars. Toolbars created or populated
from plugins are especially troublesome.


  M +10 -7     newmainwindow.cpp   1.35
  M +1 -0      newmainwindow.h   1.14


--- kdevelop/src/newmainwindow.cpp  #1.34:1.35
@@ -200,12 +200,15 @@ void NewMainWindow::init() {
 void NewMainWindow::configureToolbars( )
 {
-        kdDebug() << k_funcinfo << endl;
-        
+        saveMainWindowSettings( KGlobal::config(), "MainWindow" );
         KEditToolbar dlg( factory() );
-        if ( dlg.exec() )
-        {
+        connect( &dlg, SIGNAL(newToolbarConfig()), this, SLOT(slotNewToolbarConfig()) );
+        dlg.exec();
+}
+
+void NewMainWindow::slotNewToolbarConfig( )
+{
                 setupWindowMenu();
-                createGUI( PartController::getInstance()->activePart() );
-        }
+        m_pMainWindowShare->slotGUICreated( PartController::getInstance()->activePart() );
+        applyMainWindowSettings( KGlobal::config(), "MainWindow" );
 }
 

--- kdevelop/src/newmainwindow.h  #1.13:1.14
@@ -101,4 +101,5 @@ private slots:
   void configureToolbars();
   void setupWindowMenu();
+  void slotNewToolbarConfig();
 
 //  void loadMDISettings();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic