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.

mydirplugin.h 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /***************************************************************************
  2. mydirplugin.h - description
  3. -------------------
  4. begin : Tue Jan 29 2002
  5. copyright : (C) 2002 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 MYDIRPLUGIN_H
  17. #define MYDIRPLUGIN_H
  18. #include "batchrenamer.h"
  19. #include "pluginloader.h"
  20. #include "plugin.h"
  21. #include "helpdialog.h"
  22. class TQDir;
  23. class TQHBoxLayout;
  24. class TQGroupBox;
  25. class TQLineEdit;
  26. class TQPushButton;
  27. class TQSpinBox;
  28. class TQString;
  29. class TQVBoxLayout;
  30. class TQWidget;
  31. class MyDirPlugin : public Plugin {
  32. Q_OBJECT
  33. public:
  34. const TQString getName() const;
  35. const TQString getAccelName() const;
  36. const int type() const;
  37. bool checkError();
  38. void drawInterface( TQWidget* w, TQVBoxLayout* l );
  39. void fillStructure();
  40. TQString processFile( BatchRenamer*, int, TQString token, int );
  41. void finished();
  42. const TQPixmap getIcon() const;
  43. private slots:
  44. void chooseDir();
  45. protected:
  46. int fpd; // files per dir
  47. int filecounter;
  48. int dircounter;
  49. TQString dir;
  50. TQString curdir;
  51. TQDir* d;
  52. TQLineEdit* outputdir;
  53. TQPushButton* buttonDir;
  54. TQSpinBox* spinFiles;
  55. TQSpinBox* spinStart;
  56. TQGroupBox* groupOutput;
  57. TQHBoxLayout* groupOutputLayout;
  58. TQGroupBox* groupNumber;
  59. TQHBoxLayout* groupNumberLayout;
  60. };
  61. #endif