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.

76 lines
2.2KB

  1. /***************************************************************************
  2. myinputdialog.h - description
  3. -------------------
  4. begin : Mit Apr 01 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 MYINPUTDIALOG_H
  17. #define MYINPUTDIALOG_H
  18. #include <tqdialog.h>
  19. class TQVBoxLayout;
  20. class TQHBoxLayout;
  21. class TQGridLayout;
  22. class KLineEdit;
  23. class KPushButton;
  24. class TQLabel;
  25. class TQString;
  26. class MyInputDialog : public TQDialog
  27. {
  28. Q_OBJECT
  29. TQ_OBJECT
  30. public:
  31. MyInputDialog( TQString filename, bool revertEnabled = true, TQWidget* parent = 0 );
  32. ~MyInputDialog();
  33. TQString filename() const;
  34. inline void setInputFilename( const TQString s );
  35. enum returnCodes {
  36. OK,
  37. CANCEL,
  38. USE_KRENAME
  39. };
  40. private slots:
  41. /** Use the file name generated by KRename....
  42. */
  43. void krename(); // ????? :-)
  44. void slotFilename();
  45. void accept();
  46. void reject();
  47. private:
  48. TQLabel* TextLabel1;
  49. KLineEdit* text;
  50. KPushButton* buttonKrename;
  51. KPushButton* buttonFilename;
  52. KPushButton* buttonOk;
  53. KPushButton* buttonCancel;
  54. TQString m_oldfilename;
  55. protected:
  56. TQVBoxLayout* MyInputDialogLayout;
  57. TQHBoxLayout* Layout;
  58. };
  59. void MyInputDialog::setInputFilename( const TQString s )
  60. {
  61. m_oldfilename = s;
  62. }
  63. #endif // MYINPUTDIALOG_H