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 <tdeapplication.h>
  25. #include <kiconloader.h>
  26. #include <tdelocale.h>
  27. #include <kcombobox.h>
  28. // #include <kdebug.h>
  29. /**
  30. @author Dominik Seichter
  31. */
  32. class TranslitPlugin : public Plugin {
  33. Q_OBJECT
  34. public:
  35. const TQString getName() const;
  36. const TQString getAccelName() const;
  37. const int type() const;
  38. const TQPixmap getIcon() const;
  39. void drawInterface( TQWidget* w, TQVBoxLayout* l );
  40. void finished();
  41. bool checkError();
  42. void fillStructure();
  43. TQString processFile( BatchRenamer*, int, TQString token, int );
  44. TranslitPlugin();
  45. protected:
  46. TQString translit(const TQString &);
  47. typedef TQMap<TQString, TQString> TranslitMap;
  48. TranslitMap m_mapFromUTF8;
  49. static const TQString m_strUtf8[];
  50. static const TQString m_strEngl[];
  51. };
  52. #endif