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. public:
  24. DSLineEdit( TQWidget* parent = 0, const char* name = 0 );
  25. signals:
  26. void changed();
  27. protected:
  28. void keyPressEvent( TQKeyEvent* e );
  29. void mousePressEvent( TQMouseEvent* e );
  30. };
  31. class TQCheckBox;
  32. class TQLabel;
  33. class TQString;
  34. /* The name of this class was a very bad choice.
  35. * CoordDialog is an abreviation vor Coordinate Dialog,
  36. * because this dialog is ought to be for selecting
  37. * the coordinates of a filename using an [x;y] token.
  38. */
  39. class CoordDialog : public KDialogBase {
  40. Q_OBJECT
  41. public:
  42. CoordDialog( const TQString & file, TQWidget *_parent=0, const char *name=0);
  43. ~CoordDialog();
  44. TQString coords();
  45. static bool m_inversion;
  46. private slots:
  47. void updateCommand();
  48. void resetText();
  49. private:
  50. TQString m_file;
  51. TQString m_command;
  52. DSLineEdit* filename;
  53. TQCheckBox* checkInvert;
  54. TQLabel* preview;
  55. };
  56. #endif