#ifndef KEYPAD_H
#define KEYPAD_H

#include "ui_keypad.h"

class Keypad : public QDialog
{
    Q_OBJECT

public:
    explicit Keypad(const QString &caption=QString(),
                    const QString &value=QString(),
                    QLineEdit::EchoMode echoMode=QLineEdit::Normal,
                    QWidget *parent = 0);
    QString value();

protected:
    void changeEvent(QEvent *e);

protected slots:
    void slotClicked();
    void slotClicked(bool toggled);

private:
    Ui::Keypad ui;

signals:
    void value(const QString&) const;

};

#endif // KEYPAD_H
