![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community,
here is the log from the commit of package krename
checked in at Tue Mar 27 01:40:40 CEST 2007.
--------
--- KDE/krename/krename.changes 2006-12-04 16:24:59.000000000 +0100
+++ /mounts/work_src_done/STABLE/krename/krename.changes 2007-03-26 10:30:12.000000000 +0200
@@ -1,0 +2,12 @@
+Mon Mar 26 10:29:40 CEST 2007 - stbinner@suse.de
+
+- update to 3.0.14:
+ * Fixed a crash with plugin previews
+ * Fixed adding directories recursive when dropped from another application
+ * Added a unit test
+ * Fixed plugin tokens with additional arguments e.g. [date;dd-mm-yyyy]
+ * Fixed the seconds in the time [token]
+ * Corrected documentation of [user] and [group] tokens
+ * Patch by Otakar Trunecek to add Czech transliteration characters
+
+-------------------------------------------------------------------
Old:
----
krename-3.0.13.tar.bz2
New:
----
krename-3.0.14.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ krename.spec ++++++
--- /var/tmp/diff_new_pack.Dsy839/_old 2007-03-27 01:34:38.000000000 +0200
+++ /var/tmp/diff_new_pack.Dsy839/_new 2007-03-27 01:34:38.000000000 +0200
@@ -1,7 +1,7 @@
#
-# spec file for package krename (Version 3.0.13)
+# spec file for package krename (Version 3.0.14)
#
-# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@@ -15,7 +15,7 @@
License: GNU General Public License (GPL)
Group: System/Filesystems
Summary: A Batch Rename Application
-Version: 3.0.13
+Version: 3.0.14
Release: 1
URL: http://www.krename.net
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -70,7 +70,16 @@
/opt/kde3/share/icons/*
/opt/kde3/share/apps/konqueror
-%changelog -n krename
+%changelog
+* Mon Mar 26 2007 - stbinner@suse.de
+- update to 3.0.14:
+ * Fixed a crash with plugin previews
+ * Fixed adding directories recursive when dropped from another application
+ * Added a unit test
+ * Fixed plugin tokens with additional arguments e.g. [date;dd-mm-yyyy]
+ * Fixed the seconds in the time [token]
+ * Corrected documentation of [user] and [group] tokens
+ * Patch by Otakar Trunecek to add Czech transliteration characters
* Mon Dec 04 2006 - stbinner@suse.de
- update to 3.0.13:
* new Turkish translation
++++++ krename-3.0.13.tar.bz2 -> krename-3.0.14.tar.bz2 ++++++
++++ 19343 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/ChangeLog new/krename-3.0.14/ChangeLog
--- old/krename-3.0.13/ChangeLog 2006-12-02 15:06:44.000000000 +0100
+++ new/krename-3.0.14/ChangeLog 2007-03-06 13:23:22.000000000 +0100
@@ -114,11 +114,19 @@
Fixed a possible crash
German translation fixes by Frederik Schwarzer
Fixed drag and drop of files to KRename
- 3.0.13:
+ 3.0.13 (Release Date: 03.12.2006):
Emre Alada contributed a Turkish translation
Improved speed when a plugin token was not found
Fixed encoding plugin
Added commandline switch to specify the number of previewitems
+ 3.0.14:
+ Fixed a crash with plugin previews
+ Fixed adding directories recursive when dropped from another application
+ Added a unit test
+ Fixed plugin tokens with additional arguments e.g. [date;dd-mm-yyyy]
+ Fixed the seconds in the time [token]
+ Corrected documentation of [user] and [group] tokens
+ Patch by Otakar Trunecek to add Czech transliteration characters
Version 2.9
2.9.0 (Release Date 24.01.2004):
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/configure.in new/krename-3.0.14/configure.in
--- old/krename-3.0.13/configure.in 2006-12-02 15:14:18.000000000 +0100
+++ new/krename-3.0.14/configure.in 2007-03-25 18:55:41.000000000 +0200
@@ -40,7 +40,7 @@
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
-AM_INIT_AUTOMAKE(krename, 3.0.13) dnl searches for some needed programs
+AM_INIT_AUTOMAKE(krename, 3.0.14) dnl searches for some needed programs
KDE_SET_PREFIX
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/configure.in.in new/krename-3.0.14/configure.in.in
--- old/krename-3.0.13/configure.in.in 2006-12-02 15:08:27.000000000 +0100
+++ new/krename-3.0.14/configure.in.in 2007-01-06 18:03:38.000000000 +0100
@@ -1,3 +1,3 @@
#MIN_CONFIG(3.0)
-AM_INIT_AUTOMAKE(krename,3.0.13)
+AM_INIT_AUTOMAKE(krename,3.0.14)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/batchrenamer.cpp new/krename-3.0.14/krename/batchrenamer.cpp
--- old/krename-3.0.13/krename/batchrenamer.cpp 2006-12-02 13:51:50.000000000 +0100
+++ new/krename-3.0.14/krename/batchrenamer.cpp 2007-01-08 12:29:53.000000000 +0100
@@ -52,6 +52,7 @@
using namespace KIO;
BatchRenamer::BatchRenamer()
+ : m_index( 0 )
{
plug = PluginLoader::instance();
m_counter_index = 0;
@@ -146,7 +147,6 @@
* better one please tell me about it!
*/
-
doEscape( oldname );
/*
* Call here all functions that handle
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/dateplugin.cpp new/krename-3.0.14/krename/dateplugin.cpp
--- old/krename-3.0.13/krename/dateplugin.cpp 2005-01-12 22:55:52.000000000 +0100
+++ new/krename-3.0.14/krename/dateplugin.cpp 2007-01-08 12:59:53.000000000 +0100
@@ -79,7 +79,7 @@
else if( token == "day" )
return tmp.sprintf("%0*i", 2, d.day() );
else if( token == "time" )
- return QString( "%1-%2-%3" ).arg( t.hour() ).arg( tmp.sprintf("%0*i", 2, t.minute() ) ).arg( tmp.sprintf("%0*i", 2, t.second() ) );
+ return QString( "%1-%2-%3" ).arg( t.hour() ).arg( QString().sprintf("%0*i", 2, t.minute() ) ).arg( QString().sprintf("%0*i", 2, t.second() ) );
else if( token == "hour" )
return tmp.sprintf("%0*i", 2, t.hour() );
else if( token == "minute" )
@@ -140,8 +140,8 @@
list.append( "[hour];;" + i18n("Insert the current hour as number") );
list.append( "[minute];;" + i18n("Insert the current minute as number") );
list.append( "[second];;" + i18n("Insert the current second as number") );
- list.append( "[user];;" + i18n("Insert your username") );
- list.append( "[group];;" + i18n("Insert your groupname") );
+ list.append( "[user];;" + i18n("Owner of the file") );
+ list.append( "[group];;" + i18n("Owning group of the file") );
list.append( "[creationdate];;" + i18n("Insert the files creation date"));
list.append( "[creationdate;yyyy-MM-dd];;" + i18n("Insert the formatted file creation date") );
list.append( "[modificationdate];;" + i18n("Insert the files modification date"));
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/encodingplugin.cpp new/krename-3.0.14/krename/encodingplugin.cpp
--- old/krename-3.0.13/krename/encodingplugin.cpp 2006-12-02 14:06:43.000000000 +0100
+++ new/krename-3.0.14/krename/encodingplugin.cpp 2006-12-08 20:02:37.000000000 +0100
@@ -130,7 +130,7 @@
comboInput->setEnabled( !checkInput->isChecked() );
comboOutput->setEnabled( !checkOutput->isChecked() );
- updatePreview();
+ //updatePreview();
}
void EncodingPlugin::setLocale( KComboBox* combo )
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/kmylistbox.cpp new/krename-3.0.14/krename/kmylistbox.cpp
--- old/krename-3.0.13/krename/kmylistbox.cpp 2006-08-12 18:40:16.000000000 +0200
+++ new/krename-3.0.14/krename/kmylistbox.cpp 2006-12-30 21:58:18.000000000 +0100
@@ -124,7 +124,7 @@
if( file.isDir() ) {
if( autoadd )
- addDir( f, "*", false, false );
+ addDir( f, "*", false, true );
return false;
}
Files old/krename-3.0.13/krename/krename and new/krename-3.0.14/krename/krename differ
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/krenameimpl.cpp new/krename-3.0.14/krename/krenameimpl.cpp
--- old/krename-3.0.13/krename/krenameimpl.cpp 2006-12-02 15:05:29.000000000 +0100
+++ new/krename-3.0.14/krename/krenameimpl.cpp 2007-01-18 17:02:27.000000000 +0100
@@ -600,6 +600,7 @@
help.append( "\\\\;;" + i18n("Insert '\\\\'") );
help.append( "\\[;;" + i18n("Insert '['") );
help.append( "\\];;" + i18n("Insert ']'") );
+ help.append( "\\#;;" + i18n("Insert '#'") );
helpDialogData->add( i18n("Special Characters:" ), &help, SmallIcon("krename") );
/*
@@ -899,7 +900,7 @@
(*it)->check = new QCheckBox( i18n("&Use this plugin"), parent );
connect( (*it)->check, SIGNAL( clicked() ), this, SLOT( pluginHelpChanged() ) );
- connect( (*it)->plugin, SIGNAL( previewChanged() ), this, SLOT( updatePreview() ) );
+ connect( (*it)->plugin, SIGNAL( previewChanged( Plugin* ) ), this, SLOT( updatePluginPreview( Plugin* ) ) );
Layout->addWidget( (*it)->check );
(*it)->plugin->drawInterface( g, gLayout );
@@ -1014,8 +1015,6 @@
config->setGroup("FileExtension");
config->writeEntry("FileExtensionCombo", comboExtension->currentItem() );
- config->sync();
-
// save the configuration
saveConfig();
@@ -1210,6 +1209,19 @@
return RENAME;
}
+void KRenameImpl::updatePluginPreview( Plugin* p )
+{
+ QPtrListIteratorPluginLoader::PluginLibrary it( plugin->libs ); // iterator for dict
+ while ( it.current() ) {
+ if( (*it)->plugin == p && (*it)->usePlugin ) {
+ updatePreview();
+ return;
+ }
+
+ ++it;
+ }
+}
+
void KRenameImpl::updatePreview()
{
// is there a number in the filename or extension
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/krenameimpl.h new/krename-3.0.14/krename/krenameimpl.h
--- old/krename-3.0.13/krename/krenameimpl.h 2006-12-02 15:03:51.000000000 +0100
+++ new/krename-3.0.14/krename/krenameimpl.h 2006-12-08 20:12:24.000000000 +0100
@@ -39,6 +39,7 @@
class KIntNumInput;
class MyHelpCombo;
class MyLabel;
+class Plugin;
class PluginLoader;
class QButtonGroup;
class QCheckBox;
@@ -151,7 +152,12 @@
void slotEasy2();
void slotEasy3();
void slotEasy4();
-
+
+ /** Update the preview only if the passed
+ * plugin is enabled for use.
+ */
+ void updatePluginPreview( Plugin* p );
+
private:
static int numRealTimePreview;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/main.cpp new/krename-3.0.14/krename/main.cpp
--- old/krename-3.0.13/krename/main.cpp 2006-12-02 15:00:18.000000000 +0100
+++ new/krename-3.0.14/krename/main.cpp 2007-01-08 12:07:28.000000000 +0100
@@ -53,7 +53,7 @@
"Testing, bug fixes and feature request are as welcome\n"
"as financial support (everybody needs money ;)\nSee help files for details.\n" ),
KAboutData::License_GPL, "KRename Build:" __DATE__ " " __TIME__
- , "(c) 2001-2006, Dominik Seichter\n",
+ , "(c) 2001-2007, Dominik Seichter\n",
"http://www.krename.net", "domseichter@web.de" );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/plugin.h new/krename-3.0.14/krename/plugin.h
--- old/krename-3.0.13/krename/plugin.h 2006-12-02 14:03:09.000000000 +0100
+++ new/krename-3.0.14/krename/plugin.h 2006-12-08 20:06:56.000000000 +0100
@@ -55,14 +55,14 @@
virtual const QStringList getKeys() const;
signals:
- void previewChanged();
+ void previewChanged( Plugin* plugin );
protected slots:
// call this method when your plugin settings changed
// in a way, that KRename should update its preview
void updatePreview()
{
- emit previewChanged();
+ emit previewChanged( this );
}
protected:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/krename-3.0.13/krename/pluginloader.cpp new/krename-3.0.14/krename/pluginloader.cpp
--- old/krename-3.0.13/krename/pluginloader.cpp 2006-09-23 17:40:45.000000000 +0200
+++ new/krename-3.0.14/krename/pluginloader.cpp 2007-01-08 12:29:24.000000000 +0100
@@ -132,7 +132,7 @@
QMap
participants (1)
-
root@Hilbert.suse.de