[Kde-imaging] [Bug 132982] Batch rename limited, should allow renaming by patterns

tomas vasko at truth.sk
Mon Oct 22 14:14:36 CEST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=132982         




------- Additional Comments From vasko truth sk  2007-10-22 14:14 -------
well, I like it and would suggest something like this for us with a bad memory:

--- renameimageswidget.cpp.old  2007-10-22 14:04:35.000000000 +0200
+++ renameimageswidget.cpp      2007-10-22 14:08:28.000000000 +0200
 @ -41,6 +41,7  @
 #include <qpopupmenu.h>
 #include <qregexp.h>
 #include <qdir.h>
+#include <qtooltip.h>

 #include <libkipi/interface.h>
 #include <libkipi/imageinfo.h>
 @ -94,6 +95,21  @
             SLOT(slotOptionsChanged()));
     connect(m_addFileNameCheck, SIGNAL(toggled(bool)),
             SLOT(slotOptionsChanged()));
+       QToolTip::add(m_useExtraSymbolsCheck,
+                       "[e] - extension (small one - after last '.')\n"
+                       "[e-] - extension lower case\n"
+                       "[e+] extension upper case\n"
+                       "[i] - sequence number - no leading zeros\n"
+                       "[i:4] - sequence number in 4 digit with leading zeros format\n"
+                       "[n] - original file name\n"
+                       "[n+] - original file name upper case\n"
+                       "[n-] - original file name lower case\n"
+                       "[n:5..-2] - substring of original filename from char 5 to second from the end\n"
+                       "[n+:..5] - whole name (base + extension, characters from 1 to 5)\n"
+                       "[a] - album name\n"
+                       "[p+] - absolute path (uppercase)\n"
+                       "[B:4..-2] - base name (big one - all before last ',', from 4-th to one before last characters)\n"
+                       "[b-:-3..] - base name (small one - all before first '.', last 3 characters)");
     connect(m_useExtraSymbolsCheck, SIGNAL(toggled(bool)),
             SLOT(slotOptionsChanged()));
     connect(m_addFileDateCheck, SIGNAL(toggled(bool)),


More information about the Kde-imaging mailing list