diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-22 18:35:24 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-22 18:35:24 +0000 |
commit | aec5a842670a66ff24572847d35375a31c0b379e (patch) | |
tree | 465d7790602658d86ab031788852bf3dbdc96691 /krename/coorddialog.h | |
download | krename-aec5a842670a66ff24572847d35375a31c0b379e.tar.gz krename-aec5a842670a66ff24572847d35375a31c0b379e.zip |
Added KDE3 version of krename
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krename@1094420 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'krename/coorddialog.h')
-rw-r--r-- | krename/coorddialog.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/krename/coorddialog.h b/krename/coorddialog.h new file mode 100644 index 0000000..e8e5be3 --- /dev/null +++ b/krename/coorddialog.h @@ -0,0 +1,70 @@ +/*************************************************************************** + coorddialog.h - description + ------------------- + begin : Die Feb 4 2003 + copyright : (C) 2003 by Dominik Seichter + email : domseichter@web.de + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef COORDDIALOG_H +#define COORDDIALOG_H + +#include <kdialogbase.h> +#include <klineedit.h> + +class QKeyEvent; +class DSLineEdit : public KLineEdit { + Q_OBJECT + public: + DSLineEdit( QWidget* parent = 0, const char* name = 0 ); + + signals: + void changed(); + + protected: + void keyPressEvent( QKeyEvent* e ); + void mousePressEvent( QMouseEvent* e ); +}; + +class QCheckBox; +class QLabel; +class QString; + +/* The name of this class was a very bad choice. + * CoordDialog is an abreviation vor Coordinate Dialog, + * because this dialog is ought to be for selecting + * the coordinates of a filename using an [x;y] token. + */ +class CoordDialog : public KDialogBase { + Q_OBJECT + public: + CoordDialog( const QString & file, QWidget *_parent=0, const char *name=0); + ~CoordDialog(); + + QString coords(); + + static bool m_inversion; + + private slots: + void updateCommand(); + void resetText(); + + private: + QString m_file; + QString m_command; + + DSLineEdit* filename; + QCheckBox* checkInvert; + QLabel* preview; +}; + +#endif |