KRename – powerful batch renamer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.3KB

  1. //
  2. // C++ Interface: translitplugin
  3. //
  4. // Description:
  5. //
  6. //
  7. // Author: Dominik Seichter <domseichter@web.de>, (C) 2005
  8. //
  9. // Copyright: See COPYING file that comes with this distribution
  10. //
  11. //
  12. #ifndef TRANSLITPLUGIN_H
  13. #define TRANSLITPLUGIN_H
  14. #include "plugin.h"
  15. #include "pluginloader.h"
  16. #include "batchrenamer.h"
  17. // QT includes
  18. #include <tqlabel.h>
  19. #include <tqlayout.h>
  20. #include <tqtextcodec.h>
  21. #include <tqvgroupbox.h>
  22. #include <tqcheckbox.h>
  23. // KDE includes
  24. #include <kapplication.h>
  25. #include <kiconloader.h>
  26. #include <klocale.h>
  27. #include <kcombobox.h>
  28. // #include <kdebug.h>
  29. /**
  30. @author Dominik Seichter
  31. */
  32. class TranslitPlugin : public Plugin {
  33. Q_OBJECT
  34. TQ_OBJECT
  35. public:
  36. const TQString getName() const;
  37. const TQString getAccelName() const;
  38. const int type() const;
  39. const TQPixmap getIcon() const;
  40. void drawInterface( TQWidget* w, TQVBoxLayout* l );
  41. void finished();
  42. bool checkError();
  43. void fillStructure();
  44. TQString processFile( BatchRenamer*, int, TQString token, int );
  45. TranslitPlugin();
  46. protected:
  47. TQString translit(const TQString &);
  48. typedef TQMap<TQString, TQString> TranslitMap;
  49. TranslitMap m_mapFromUTF8;
  50. static const TQString m_strUtf8[];
  51. static const TQString m_strEngl[];
  52. };
  53. #endif