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.

61 lines
1.9KB

  1. /**************************************************************************
  2. undodialog.h - description
  3. -------------------
  4. begin : Mon Mai 27 20:08:19 CEST 2002
  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 UNDODIALOG_H
  17. #define UNDODIALOG_H
  18. #include <kdialogbase.h>
  19. class KPushButton;
  20. class KProcess;
  21. class KTextBrowser;
  22. class KURLRequester;
  23. class TQVBoxLayout;
  24. class TQHBoxLayout;
  25. class TQGridLayout;
  26. class TQLabel;
  27. class UndoDialog : public KDialogBase
  28. {
  29. Q_OBJECT
  30. TQ_OBJECT
  31. public:
  32. UndoDialog( TQWidget* parent = 0 );
  33. ~UndoDialog();
  34. void setUndoScript( const TQString & filename );
  35. public slots:
  36. void start();
  37. private slots:
  38. void receive( KProcess*, char* buffer, int len );
  39. void receiveErr( KProcess*, char* buffer, int len );
  40. void finished( KProcess* p );
  41. void enableControls();
  42. private:
  43. TQLabel* TextLabel1;
  44. KURLRequester* scriptname;
  45. TQLabel* TextLabel2;
  46. KTextBrowser* browser;
  47. protected:
  48. TQVBoxLayout* UndoDialogLayout;
  49. };
  50. #endif // UNDODIALOG_H