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

List:       koffice
Subject:    Re: Karbon & Krita 2Beta5 don't fit screen
From:       Thomas Zander <zander () kde ! org>
Date:       2007-11-21 17:08:38
Message-ID: 200711211808.47936.zander () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wednesday 21 November 2007 16:29:19 Boudewijn Rempt wrote:
> On Wednesday 21 November 2007, Thomas Zander wrote:
> > On Wednesday 21. November 2007 14:36:02 Boudewijn Rempt wrote:
> > > What we really need is an easy way to make dockers startup tabbed
> > > by default.
> >
> > What is wrong with the method I pasted elsewhere in this thread?
> > Really, if there are problems there I don't know them, so please do
> > write about them here!
>
> You are right, it is possible to start the dockers tabbed, although
> it's not particularly easy. 

I'm not following your description of the rest of the mail, I'm getting 
the impression you are solving a lot of problems I have no knowledge of 
existing...
Please tell me why your are doing things.

> A tricky bit is that the order of docker 
> creation determines the order of the dockers in the window. 

Why is that relevant for tabbing?

> So, in 
> KisView2::createGUI, I first have to remove the existing dock widgets
> from the layout, then create my dock widgets in the right order, then
> re-add the plugin dock widgets (although that doesn't make them show up
> again), and place them in the tabs. And then call show() on a docker in
> the first that I want to show by default -- because it's the last added
> docker in the last tab that's shown otherwise. 

Are you doing all this to make sure a particular docker is shown by 
default? (aka the active tab) I would expect Qt to persist this info.  If 
it doesn't then thats a bug that warrents inspection.

>     if (m_d->birdEyeBox != 0 && toolBox != 0) {
>         shell()->tabifyDockWidget(m_d->birdEyeBox, toolBox);
>     }
>
>     if (colorDocker != 0 && paletteDocker != 0 && strokeDocker != 0) {
>         shell()->tabifyDockWidget(colorDocker, paletteDocker);
>         shell()->tabifyDockWidget(paletteDocker, strokeDocker);
>     }

Right, this is the core of the stuff.
Naturally you are reproducing (and fighting!) a lot of code that is 
already in QMainWindow here for the plugins.
I'm not sure which problems you are facing and why you don't *just* have 
the above 3 calls, but I'm sure that if you explain that we can work 
together to make the koffice wide framework handle this more smoothly.

Thanks for digging into this!
-- 
Thomas Zander

[Attachment #5 (application/pgp-signature)]

____________________________________
koffice mailing list
koffice@kde.org
To unsubscribe please visit:
https://mail.kde.org/mailman/listinfo/koffice


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

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