class viewer question

Escuder Nicolas n.escuder at intra-links.com
Wed Apr 13 10:00:13 UTC 2005


Hello,

 

I'm making change to language php support and i have an question on
classview about the function insertFile

 

When I read an php file I parse the require / include file and want them to
be in classViewer, actually i must add it to the project but if a VCS is
present

The VCS System ask for add the file to the repository i don't want this.

 

With the change after we can add file to the codeModel for seeing it in
classview but not in the project this is the best solution for the project.

 

1/ Is this change bad for other language support?

 

2/ the line : fn =
URLUtil::relativePathToFile(m_part->project()->projectDirectory(), fn);

    Is not necessary i think this can be an option for class view
presentation.

 

I hope you understand what I say, my English is not very good ;o)

 

 

--- /tmp/kdevelop-3.2.0/parts/classview/classviewwidget.cpp     2005-02-23
11:53:18.000000000 +0100

+++ classviewwidget.cpp 2005-04-13 09:59:33.000000000 +0200

@@ -166,15 +166,13 @@

 void ClassViewWidget::insertFile( const QString& fileName )

 {

     QString fn = URLUtil::canonicalPath( fileName );

-    if( !m_part->project()->isProjectFile(fn) )

-       return;

     //kdDebug() << "======================== insertFile(" << fn << ")" <<
endl;

 

     FileDom dom = m_part->codeModel()->fileByName( fn );

     if( !dom )

        return;

 

-    fn = m_part->project()->relativeProjectFile( fn );

+    fn = URLUtil::relativePathToFile(m_part->project()->projectDirectory(),
fn);

     QStringList path;

 

     switch( viewMode() )

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20050413/3b693552/attachment.html>


More information about the KDevelop-devel mailing list