aboutsummaryrefslogtreecommitdiff
path: root/databases/kbibtex/files
diff options
context:
space:
mode:
authorMarkus Brueffer <markus@FreeBSD.org>2007-10-29 23:21:22 +0000
committerMarkus Brueffer <markus@FreeBSD.org>2007-10-29 23:21:22 +0000
commit81482b1e379d1d06b595bcbfa4c6084775108913 (patch)
tree26e8ddab3c59718f1bea79a851187608c1ab5e1e /databases/kbibtex/files
parentcd8af7e5642909a76f32d81ddeeb94457a5dd5fe (diff)
downloadports-81482b1e379d1d06b595bcbfa4c6084775108913.tar.gz
ports-81482b1e379d1d06b595bcbfa4c6084775108913.zip
Update to version 0.2
Notes
Notes: svn path=/head/; revision=202371
Diffstat (limited to 'databases/kbibtex/files')
-rw-r--r--databases/kbibtex/files/patch-src-documentlistview.cpp41
-rw-r--r--databases/kbibtex/files/patch-src-documentwidget.cpp55
-rw-r--r--databases/kbibtex/files/patch-src-documentwidget.h12
-rw-r--r--databases/kbibtex/files/patch-src-fileimporter.h11
-rw-r--r--databases/kbibtex/files/patch-src-settings.cpp12
-rw-r--r--databases/kbibtex/files/patch-src-webquerypubmed.cpp10
6 files changed, 0 insertions, 141 deletions
diff --git a/databases/kbibtex/files/patch-src-documentlistview.cpp b/databases/kbibtex/files/patch-src-documentlistview.cpp
deleted file mode 100644
index b5012d453c37..000000000000
--- a/databases/kbibtex/files/patch-src-documentlistview.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-Index: src/documentlistview.cpp
-===================================================================
---- src/documentlistview.cpp (Revision 301)
-+++ src/documentlistview.cpp (Revision 302)
-@@ -221,10 +221,13 @@
- while ( it.current() )
- {
- DocumentListViewItem * kblvi = dynamic_cast<DocumentListViewItem*>( it.current() );
-- m_bibtexFile->deleteElement( kblvi->element() );
-- it++;
-- takeItem( kblvi );
-- delete ( kblvi );
-+ if ( kblvi->isVisible() )
-+ {
-+ m_bibtexFile->deleteElement( kblvi->element() );
-+ it++;
-+ takeItem( kblvi );
-+ delete ( kblvi );
-+ }
- }
-
- if ( above )
-@@ -246,7 +249,7 @@
- {
- DocumentListViewItem * kblvi = dynamic_cast<DocumentListViewItem*>( it.current() );
- BibTeX::Entry *entry = dynamic_cast<BibTeX::Entry*>( kblvi->element() );
-- if ( entry != NULL )
-+ if ( entry != NULL && kblvi->isVisible() )
- {
- if ( !refs.isEmpty() )
- refs.append( "," );
-@@ -621,7 +624,8 @@
- while ( it.current() )
- {
- DocumentListViewItem * kblvi = dynamic_cast<DocumentListViewItem*>( it.current() );
-- exporter->save( &buffer, kblvi->element() );
-+ if ( kblvi->isVisible() )
-+ exporter->save( &buffer, kblvi->element() );
- it++;
- }
- delete exporter;
diff --git a/databases/kbibtex/files/patch-src-documentwidget.cpp b/databases/kbibtex/files/patch-src-documentwidget.cpp
deleted file mode 100644
index 432ba33d16f8..000000000000
--- a/databases/kbibtex/files/patch-src-documentwidget.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
---- src/documentwidget.cpp.orig Thu Apr 5 02:18:55 2007
-+++ src/documentwidget.cpp Thu Apr 5 02:18:11 2007
-@@ -255,7 +255,11 @@
-
- updateFromGUI();
-
-- BibTeX::XSLTransform * transform = NULL;
-+ KStandardDirs * kstd = KGlobal::dirs();
-+ QString resPath = kstd->findResource( "data", "kbibtexpart/xslt/html.xsl" );
-+ BibTeX::XSLTransform *transform = NULL;
-+ if ( resPath != NULL )
-+ transform = new BibTeX::XSLTransform( resPath );
-
- BibTeX::FileExporter * exporter = NULL;
- switch ( format )
-@@ -471,13 +475,13 @@
- m_listViewElements->setFactory( factory, client );
- m_sourceView->setFactory( factory, client );
-
-+ m_viewDocumentActionMenu = dynamic_cast<KActionMenu*>( client->action( "view_document" ) );
- if ( m_viewDocumentActionMenu != NULL )
- connect( m_viewDocumentActionMenu->popupMenu(), SIGNAL( activated( int ) ), this, SLOT( slotViewDocument( int ) ) );
-
- m_copyReference = client->action( "edit_copyref" );
- m_find = client->action( "edit_find" );
- m_findNext = client->action( "edit_find_next" );
-- m_viewDocumentActionMenu = dynamic_cast<KActionMenu*>( client->action( "view_document" ) );
- m_listViewElements->setViewShowColumnsMenu( dynamic_cast<KActionMenu*>( client->action( "view_showcolumns" ) ) );
- m_searchWebsitesActionMenu = dynamic_cast<KActionMenu*>( client->action( "search_document_online" ) );
- }
-@@ -486,6 +490,7 @@
- {
- KPopupMenu * popup = m_viewDocumentActionMenu->popupMenu();
- popup->clear();
-+ m_viewDocumentActionMenuURLs.clear();
-
- BibTeX::Element * currentElement = NULL;
-
-@@ -517,6 +522,7 @@
- popup->insertItem( SmallIcon( "html" ), prettyURL );
- else
- popup->insertItem( prettyURL );
-+ m_viewDocumentActionMenuURLs.append( prettyURL );
- }
- m_viewDocumentActionMenu->setEnabled( TRUE );
- }
-@@ -908,7 +914,7 @@
-
- void DocumentWidget::slotViewDocument( int id )
- {
-- kapp->invokeBrowser( m_viewDocumentActionMenu->popupMenu() ->text( id ) );
-+ kapp->invokeBrowser( m_viewDocumentActionMenuURLs[ m_viewDocumentActionMenu->popupMenu() ->indexOf( id ) ] );
- }
-
- }
diff --git a/databases/kbibtex/files/patch-src-documentwidget.h b/databases/kbibtex/files/patch-src-documentwidget.h
deleted file mode 100644
index 0e2c863e85de..000000000000
--- a/databases/kbibtex/files/patch-src-documentwidget.h
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: src/documentwidget.h
-===================================================================
---- src/documentwidget.h (Revision 308)
-+++ src/documentwidget.h (Revision 310)
-@@ -106,6 +106,7 @@
- int m_newElementCounter;
- EditMode m_editMode;
- KActionMenu *m_viewDocumentActionMenu;
-+ QStringList m_viewDocumentActionMenuURLs;
- KActionMenu *m_searchWebsitesActionMenu;
- KAction *m_find;
- KAction *m_findNext;
diff --git a/databases/kbibtex/files/patch-src-fileimporter.h b/databases/kbibtex/files/patch-src-fileimporter.h
deleted file mode 100644
index 4823f7196052..000000000000
--- a/databases/kbibtex/files/patch-src-fileimporter.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/fileimporter.h.orig Mon Mar 26 20:15:05 2007
-+++ src/fileimporter.h Mon Mar 26 20:15:33 2007
-@@ -39,7 +39,7 @@
- ~FileImporter();
-
- File* load ( const QString& text );
-- virtual File* load( QIODevice *iodevice ) = NULL;
-+ virtual File* load( QIODevice *iodevice ) = 0;
-
- static bool guessCanDecode( const QString & ) { return FALSE; };
-
diff --git a/databases/kbibtex/files/patch-src-settings.cpp b/databases/kbibtex/files/patch-src-settings.cpp
deleted file mode 100644
index 205878def1d8..000000000000
--- a/databases/kbibtex/files/patch-src-settings.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -Naur kbibtex-0.1.5_orig/src/settings.cpp kbibtex-0.1.5/src/settings.cpp
---- src/settings.cpp 2006-10-03 21:14:45.000000000 +0200
-+++ src/settings.cpp 2007-02-27 13:20:13.000000000 +0100
-@@ -170,7 +170,7 @@
-
- config->setGroup( "SearchURLs" );
- int i = 1;
-- for ( QValueList<SearchURL*>::ConstIterator it = searchURLs.begin(); it != searchURLs.end(); ++it )
-+ for ( QValueList<SearchURL*>::ConstIterator it = searchURLs.begin(); it != searchURLs.end(); ++it, ++i )
- {
- config->writeEntry( QString( "SearchURLDescription%1" ).arg( i ), ( *it ) ->description );
- config->writeEntry( QString( "SearchURL%1" ).arg( i ), ( *it ) ->url );
diff --git a/databases/kbibtex/files/patch-src-webquerypubmed.cpp b/databases/kbibtex/files/patch-src-webquerypubmed.cpp
deleted file mode 100644
index eed9013cdab7..000000000000
--- a/databases/kbibtex/files/patch-src-webquerypubmed.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
---- src/webquerypubmed.cpp 2006-10-04 21:10:15.000000000 +0200
-+++ src/webquerypubmed.cpp 2007-02-27 13:44:16.000000000 +0100
-@@ -206,6 +206,7 @@
- doc.setContent( buffer );
- QDomElement docElem = doc.documentElement();
- ResultParser resultParser( m_listViewResults, doc.documentElement() );
-+ buffer->close();
-
- setEnabled( TRUE );
- QApplication::restoreOverrideCursor();