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.

commandplugin.h 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /***************************************************************************
  2. commandplugin.h - description
  3. -------------------
  4. begin : Son Jan 5 2003
  5. copyright : (C) 2003 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 COMMANDPLUGIN_H
  17. #define COMMANDPLUGIN_H
  18. #include "batchrenamer.h"
  19. #include "pluginloader.h"
  20. #include "plugin.h"
  21. #include "helpdialog.h"
  22. class TQCheckBox;
  23. class KLineEdit;
  24. class TDEListBox;
  25. class KPushButton;
  26. class CommandPlugin : public Plugin {
  27. Q_OBJECT
  28. public:
  29. const TQString getName() const;
  30. const TQString getAccelName() const;
  31. const int type() const;
  32. bool checkError();
  33. void drawInterface( TQWidget* w, TQVBoxLayout* l );
  34. void fillStructure();
  35. TQString processFile( BatchRenamer*, int, TQString token, int );
  36. void finished();
  37. bool alwaysUsed() const { return false; }
  38. const TQPixmap getIcon() const;
  39. private slots:
  40. void add();
  41. void remove();
  42. void exec();
  43. private:
  44. KLineEdit* commandline;
  45. TQCheckBox* checkNoBlock;
  46. TDEListBox* list;
  47. KPushButton* buttonAdd;
  48. KPushButton* buttonRemove;
  49. TQString command;
  50. bool noblock;
  51. };
  52. #endif