[Fwd: kdevelop.cpp]
John Birch
jbb at kdevelop.de
Wed Jun 28 04:32:20 UTC 2000
On Wed, 28 Jun 2000, you wrote:
> Falk Brettschneider wrote:
> > Hi,
> >
> > John wrote:
> > > > It will call only 3 commands on the main GUI control:
> > > > pGUIControl->embedToolViewInGUI(m_pVAR,...hints...);
> > > > pGUIControl->embedToolViewInGUI(m_pBreakpoints,...hints...);
> > > > pGUIControl->embedToolViewInGUI(m_pFrameStack,...hints...);
> > > > // finished.
> > >
> > > Hmm. This is in the part?
> >
> > Yes.
>
> Well, forget about init1 and init2. That init1 I wrote about must be called
> from the loader...
>
> So better is:
> AnyPluginLoader::loadPlugin(..)
> {
> ...
> cconnect(pPlugin,SIGNAL(widgetCreated(QWidget*,
> ...hints...),pKDevelop,SLOT(slotEmbedToolViewInGUI(QWidget*,...hints...))
> ); ...
> }}
>
> KDebugPart::init()
> {
> ...
> eemit widgetCreated(m_pVAR,...hints...);
> emit widgetCreated(m_pBreakpoints,...hints...);
> emit widgetCreated(m_pFrameStack,...hints...);
> ...
> }}
>
> KDevelop::slotEmbedToolViewInGUI(QWidget* w, ...hints...)
> {
> ...
> [interpretation of hints]
> ...
> ddockbaseXYZ->setWidget(w);
> ...
> }}
This is far better :-))
jbb
More information about the KDevelop-devel
mailing list