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.

replacedialog.h 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /***************************************************************************
  2. replacedialog.h - description
  3. -------------------
  4. begin : Sat Aug 18 2001
  5. copyright : (C) 2001 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 REPLACEDIALOG_H
  17. #define REPLACEDIALOG_H
  18. // QT includes
  19. #include <kdialogbase.h>
  20. #include <tqvaluelist.h>
  21. // Own includes
  22. #include "batchrenamer.h"
  23. class TQCheckBox;
  24. class TQGridLayout;
  25. class TQGridLayout;
  26. class TQLabel;
  27. class TQLineEdit;
  28. class KPushButton;
  29. class TQListViewItem;
  30. class TDEListView;
  31. class ReplaceDialog : public KDialogBase
  32. {
  33. Q_OBJECT
  34. public:
  35. ReplaceDialog( TQValueList<replacestrings> & r, TQWidget* parent = 0 );
  36. ~ReplaceDialog();
  37. TQValueList<replacestrings> getList();
  38. private slots:
  39. void add();
  40. void moveFocus();
  41. void remove();
  42. void invokeRegEdit();
  43. void enableControls();
  44. void slotEdit();
  45. private:
  46. void reset();
  47. TQLabel* TextLabel1;
  48. TQLineEdit* text2;
  49. TQLabel* TextLabel2;
  50. TQLineEdit* text1;
  51. TDEListView* list;
  52. TQCheckBox* checkReg;
  53. KPushButton* buttonAdd;
  54. KPushButton* buttonRemove;
  55. KPushButton* buttonEdit;
  56. KPushButton* buttonRegEdit;
  57. TQString encode( TQString s );
  58. TQString decode( TQString s );
  59. protected:
  60. void resizeEvent( TQResizeEvent* e );
  61. TQGridLayout* ReplaceDialogLayout;
  62. };
  63. #endif // REPLACEDIALOG_H