[Qt-interest] Dependency between CppEditor and CppToolsPlugin / Need Advise in adding functionality
variadic.template
variadic.template at googlemail.com
Mon Dec 28 13:41:07 CET 2009
Hi,
something i'm really missing in qtcreator (and all other cpp-editors i'm
using) is
a "create method-body for method-declaration"-function. For example:
file class.h:
class foo
{
public:
void x(); // now trigger "createMethodBody"
};
-> class.cpp
creates automagically the empty method body and moves the cursor into it
void foo::x()
{
}
As i didn't see a request for this, i started to try it by myself. I
created
a "createMethodBody"-method in CppEditor, as it seems like the right place
for
this to me.
There I need to find the corresponding cpp-file of the current headerfile.
As this is already done in the "correspondingHeaderOrSource"-method in
CppToolsPlugin, i tried to call it by
CppTools::Internal::CppToolsPlugin::instance()->correspondingHeaderOrSource(file()->fileName());
Now, when starting my own-build qtcreator, I get an error like
"The Plugin can not be loaded because of unsatisfied dependencies:
CppEditor
[...]
The Library .../libCppEditor.so can not be loaded, undefined symbol _
ZN8CppTools8Internal14CppToolsPlugin10m_instanceE"
There's no need of explaining as I understand and see the problem, but I
have
no idea how to resolve it in a way that don't break the design of
qtcreator.
I'm open for suggestions.
Regards,
Hendrik
More information about the Qt-interest-old
mailing list