00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef PWENTRY_H
00028 #define PWENTRY_H
00029
00030 #include <qwidget.h>
00031 #include <qlineedit.h>
00032 #include <qlabel.h>
00033 #include <qgroupbox.h>
00034
00035 class PWEntry : public QWidget {
00036
00037 Q_OBJECT
00038
00039 public:
00040
00041 PWEntry( QWidget *parent=0, const char *name=0 );
00042 bool Consumed();
00043 void setConsumed();
00044 QString text();
00045 void setPrompt(const QString &);
00046
00047 public slots:
00048
00049 void setEchoModeNormal();
00050 void setEchoModePassword();
00051 void hide();
00052 void show();
00053
00054 signals:
00055
00056 void returnPressed();
00057
00058 protected:
00059
00060 void resizeEvent(QResizeEvent* qre);
00061 void focusInEvent( QFocusEvent *);
00062
00063 private:
00064
00065 QGroupBox *frame;
00066 QLineEdit *pw;
00067 QLabel *pl;
00068 bool isconsumed;
00069
00070 };
00071
00072 #endif