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

List:       kde-devel
Subject:    Re: Plugin interface
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-06-10 17:34:51
[Download RAW message or body]

On Sunday 10 June 2001 00:45, Anatoli Gorchetchnikov wrote:
> On Saturday 09 June 2001 04:31 pm, David Faure wrote:
> > > I tried to follow chapter 12 in "KDE 2.0 dev-t" to create
> > > plugin to my kpart. Well, everything is fine, except the 
> > > plugin interface is not merged with the part interface. I
> > > put plugin_cfrnav.rc in /kmazepart/partplugins
> > It's kpartplugins.
> 
> :) I should have guessed...

So you're using kpartplugins ?

> I attached XML files. I know that now it reads the plugin rc 
> file (because it complains if there are errors there) but two 
> additional items in View and extra menu still don't show up.
> 
> The code that calls it is standard:
> 
> KLibFactory*factory=KLibLoader::self()->factory("libkinnessmaze");
> 
> if(factory)
>     m_modepart = (T_ProjectPart*)factory->create(this,
>                      "libkinnessmaze", "KParts::ReadWritePart" );
> else
>     kdFatal()<<"No libkinnessmaze found !\n";
> 
> setCentralWidget(m_modepart->widget());
> createGUI(m_modepart);
> m_modepart->readConfig();

Hmm, okay, but that's not where the problem might be.
The part's instance name must be kmazepart (is it) ?
What's your setXMLFile call in the part ?

If you enable the debug area 1000, do you see "found Plugin ....." ?

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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