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.

coorddialog.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /***************************************************************************
  2. coorddialog.h - description
  3. -------------------
  4. begin : Die Feb 4 2003
  5. copyright : (C) 2003 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 COORDDIALOG_H
  17. #define COORDDIALOG_H
  18. #include <kdialogbase.h>
  19. #include <klineedit.h>
  20. class TQKeyEvent;
  21. class DSLineEdit : public KLineEdit {
  22. Q_OBJECT
  23. TQ_OBJECT
  24. public:
  25. DSLineEdit( TQWidget* tqparent = 0, const char* name = 0 );
  26. signals:
  27. void changed();
  28. protected:
  29. void keyPressEvent( TQKeyEvent* e );
  30. void mousePressEvent( TQMouseEvent* e );
  31. };
  32. class TQCheckBox;
  33. class TQLabel;
  34. class TQString;
  35. /* The name of this class was a very bad choice.
  36. * CoordDialog is an abreviation vor Coordinate Dialog,
  37. * because this dialog is ought to be for selecting
  38. * the coordinates of a filename using an [x;y] token.
  39. */
  40. class CoordDialog : public KDialogBase {
  41. Q_OBJECT
  42. TQ_OBJECT
  43. public:
  44. CoordDialog( const TQString & file, TQWidget *_parent=0, const char *name=0);
  45. ~CoordDialog();
  46. TQString coords();
  47. static bool m_inversion;
  48. private slots:
  49. void updateCommand();
  50. void resetText();
  51. private:
  52. TQString m_file;
  53. TQString m_command;
  54. DSLineEdit* filename;
  55. TQCheckBox* checkInvert;
  56. TQLabel* preview;
  57. };
  58. #endif