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.

myinputdialog.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. public:
  30. MyInputDialog( TQString filename, bool revertEnabled = true, TQWidget* parent = 0 );
  31. ~MyInputDialog();
  32. TQString filename() const;
  33. inline void setInputFilename( const TQString s );
  34. enum returnCodes {
  35. OK,
  36. CANCEL,
  37. USE_KRENAME
  38. };
  39. private slots:
  40. /** Use the file name generated by KRename....
  41. */
  42. void krename(); // ????? :-)
  43. void slotFilename();
  44. void accept();
  45. void reject();
  46. private:
  47. TQLabel* TextLabel1;
  48. KLineEdit* text;
  49. KPushButton* buttonKrename;
  50. KPushButton* buttonFilename;
  51. KPushButton* buttonOk;
  52. KPushButton* buttonCancel;
  53. TQString m_oldfilename;
  54. protected:
  55. TQVBoxLayout* MyInputDialogLayout;
  56. TQHBoxLayout* Layout;
  57. };
  58. void MyInputDialog::setInputFilename( const TQString s )
  59. {
  60. m_oldfilename = s;
  61. }
  62. #endif // MYINPUTDIALOG_H