Docking my windows
F@lk Brettschneider
falk.brettschneider at gmx.de
Mon Nov 25 20:48:44 GMT 2002
Hi Tim!
Tim Aidley wrote:
> Falk Brettschneider wrote:
>
>> Because it resets the docking state, additionally.
>> To do only the reset, close KDevelop, remove the docking section from
>> $HOME/.kde/share/config/kdeveloprc and restart KDevelop. ;)
>>
>>
> Out of interest, what is the proper way of going about this? is
> editing the kdeveloprc file the only way to change the docking state?
The docking state is stored in kdeveloprc when KDevelop closes, and
restored from there when KDevelop starts.
KDockMainWindow::writeDockConfig(), KDockMainWindow::readDockConfig().
The problem you had (some views are docked to desktop) is a bug that
rarely and spontaneously happens, hard to fix so to speak. You know
KDockMainWindow::readDockConfig() creates the dockwidgets as toplevel
widgets and calls KDockWidget::manualDock(KDockWidget* targetWidget,
...) to dock it to another dockwidget. If the target dockwidget doesn't
allow docking because of its own state, that manualDock(...) will fail
and the dockwidget remains toplevel. This results in that strange broken
state... The same problem will meet us from time to time in KDevelop-3
since the mechanism is the same for the QextMDI-based user-interface modes.
Anyway, using KDevelop-2.1, if you switch the GUI modes or you call the
KDevelop Setup wizard, it removes the docking section in kdeveloprc, so
that KDockMainWindow::readDockConfig() wont find a thing there and just
uses the default docking which is hard-wired in class CKDevelop.
Happy fixing ;-)
Ciao
F at lk
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list