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.

encodingplugin.h 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /***************************************************************************
  2. encodingplugin.h - description
  3. -------------------
  4. begin : Tue Jul 06 2004
  5. copyright : (C) 2004 by Dominik Seichter
  6. email : domseichter@web.de
  7. ***************************************************************************/
  8. /***************************************************************************
  9. * *
  10. * This program is free software; you can redistribute it and/or modify *
  11. * it under the terms of the GNU General Public License as published by *
  12. * the Free Software Foundation; either version 2 of the License, or *
  13. * (at your option) any later version. *
  14. * *
  15. ***************************************************************************/
  16. #ifndef _ENCODINGPLUGIN_H_
  17. #define _ENCODINGPLUGIN_H_
  18. #include "batchrenamer.h"
  19. #include "pluginloader.h"
  20. #include "plugin.h"
  21. #include "helpdialog.h"
  22. #include "fileoperation.h"
  23. class KComboBox;
  24. class TQCheckBox;
  25. class EncodingPlugin : public Plugin {
  26. Q_OBJECT
  27. public:
  28. const TQString getName() const;
  29. const TQString getAccelName() const;
  30. const int type() const;
  31. bool checkError();
  32. void drawInterface( TQWidget* w, TQVBoxLayout* l );
  33. void fillStructure();
  34. TQString processFile( BatchRenamer*, int, TQString token, int );
  35. void finished();
  36. const TQPixmap getIcon() const;
  37. private slots:
  38. void enableControls();
  39. private:
  40. void setLocale( KComboBox* combo );
  41. FileOperation fop;
  42. TQString m_input_codec;
  43. TQString m_output_codec;
  44. TQString m_locale_codec;
  45. int mib_input;
  46. int mib_output;
  47. TQCheckBox* checkInput;
  48. TQCheckBox* checkOutput;
  49. KComboBox* comboInput;
  50. KComboBox* comboOutput;
  51. };
  52. #endif // _ENCODINGPLUGIN_H_