sharing code of main.cpp / main_internal.cpp

Milian Wolff mail at milianw.de
Fri May 7 00:03:25 UTC 2010


On Friday 07 May 2010 01:45:23 Milian Wolff wrote:
> Hey there,
> 
> I'm in the process of bringing session support to Quanta. I noticed that I
> have to copy essentially _all_ of main.cpp and main_internal.cpp, sed
> 's/kdevelop/quanta/g' and alter the KAboutData...
> 
> Could we share code here?
> 
> Or is this considered too specific for an IDE and just coincidence that
> Quanta needs the same that KDev has?

Another point for it: The SessionController currently tries to do this:


    void newSession()
    {
        Session* session = new Session( QUuid::createUuid() );
        
        KProcess::startDetached(QFileInfo(QApplication::applicationFilePath()).path() 
+ "/kdevelop", QStringList() << "-s" << session->id().toString() << 
standardArguments());
        delete session;

which of course fails for Quanta. I thought about putting that path into the 
ShellExtension, what do you think? Would of course require that the session 
arguments are the same...

Input?
-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20100507/03ed9447/attachment-0001.sig>


More information about the KDevelop-devel mailing list