[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdevelop/parts
From: Jens Dagerbo <jens.dagerbo () swipnet ! se>
Date: 2004-04-14 1:43:47
Message-ID: 20040414014347.B5D539A01 () office ! kde ! org
[Download RAW message or body]
CVS commit by dagerbo:
Updated to work with the new KDevPartController interface
M +5 -2 closer/closer_part.cpp 1.8
M +1 -1 ctags2/ctags2_part.cpp 1.2
M +1 -1 diff/diffpart.cpp 1.31
--- kdevelop/parts/closer/closer_part.cpp #1.7:1.8
@@ -60,4 +60,5 @@ void CloserPart::openDialog()
}
+// @todo use partcontroller method
KURL::List CloserPart::openFiles()
{
@@ -78,4 +79,5 @@ KURL::List CloserPart::openFiles()
}
+// @todo use partcontroller method
void CloserPart::closeFiles( KURL::List const & fileList )
{
@@ -85,5 +87,6 @@ void CloserPart::closeFiles( KURL::List
if ( KParts::ReadOnlyPart * ro_part = partForURL( *it ) )
{
- partController()->closePartForWidget( ro_part->widget() );
+// partController()->closePartForWidget( ro_part->widget() );
+ partController()->closePart( ro_part );
}
++it;
@@ -91,5 +94,5 @@ void CloserPart::closeFiles( KURL::List
}
-// reimplemented from PartController::partForURL to avoid linking
+// @todo use partcontroller method
KParts::ReadOnlyPart * CloserPart::partForURL( KURL const & url )
{
--- kdevelop/parts/ctags2/ctags2_part.cpp #1.1:1.2
@@ -141,5 +141,5 @@ int CTags2Part::getFileLineFromPattern(
{
// if the file is open - get the line from the editor buffer
- if ( KTextEditor::EditInterface * ei = \
dynamic_cast<KTextEditor::EditInterface*>( partController()->findOpenDocument( url ) \
) ) + if ( KTextEditor::EditInterface * ei = \
dynamic_cast<KTextEditor::EditInterface*>( partController()->partForURL( url ) ) ) {
kdDebug() << "the file is open - get the line from the editor \
buffer" << endl;
--- kdevelop/parts/diff/diffpart.cpp #1.30:1.31
@@ -117,5 +117,5 @@ void DiffPart::contextMenu( QPopupMenu*
if ( !rw_part ) return;
- if ( rw_part->isModified() || partController()->isDirty( rw_part ) )
+ if ( partController()->documentState( rw_part->url() ) != Clean )
{
int id = popup->insertItem( i18n( "Difference to disk file" ),
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic