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.

80 lines
2.3KB

  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 KListView;
  31. class ReplaceDialog : public KDialogBase
  32. {
  33. Q_OBJECT
  34. TQ_OBJECT
  35. public:
  36. ReplaceDialog( TQValueList<replacestrings> & r, TQWidget* parent = 0 );
  37. ~ReplaceDialog();
  38. TQValueList<replacestrings> getList();
  39. private slots:
  40. void add();
  41. void moveFocus();
  42. void remove();
  43. void invokeRegEdit();
  44. void enableControls();
  45. void slotEdit();
  46. private:
  47. void reset();
  48. TQLabel* TextLabel1;
  49. TQLineEdit* text2;
  50. TQLabel* TextLabel2;
  51. TQLineEdit* text1;
  52. KListView* list;
  53. TQCheckBox* checkReg;
  54. KPushButton* buttonAdd;
  55. KPushButton* buttonRemove;
  56. KPushButton* buttonEdit;
  57. KPushButton* buttonRegEdit;
  58. TQString encode( TQString s );
  59. TQString decode( TQString s );
  60. protected:
  61. void resizeEvent( TQResizeEvent* e );
  62. TQGridLayout* ReplaceDialogLayout;
  63. };
  64. #endif // REPLACEDIALOG_H