Subversion Repositories tpanel

Rev

Rev 65 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 65 Rev 71
Line 18... Line 18...
18
#ifndef TQKEYPAD_H
18
#ifndef TQKEYPAD_H
19
#define TQKEYPAD_H
19
#define TQKEYPAD_H
20
 
20
 
21
#include <QDialog>
21
#include <QDialog>
22
 
22
 
-
 
23
#include "tsystemsound.h"
-
 
24
 
23
namespace Ui
25
namespace Ui
24
{
26
{
25
    class TQKeypad;
27
    class TQKeypad;
26
 
28
 
27
    typedef enum KEYSP_t
29
    typedef enum KEYSP_t
Line 43... Line 45...
43
        KEYP_Komma,
45
        KEYP_Komma,
44
        KEYP_DoubleDot
46
        KEYP_DoubleDot
45
    }KEYSP_t;
47
    }KEYSP_t;
46
}
48
}
47
 
49
 
48
class TQKeypad : public QDialog
50
class TQKeypad : public QDialog, TSystemSound
49
{
51
{
50
    Q_OBJECT
52
    Q_OBJECT
51
 
53
 
52
    public:
54
    public:
53
        explicit TQKeypad(const std::string& init, const std::string& prompt, QWidget *parent = nullptr, bool priv=false);
55
        explicit TQKeypad(const std::string& init, const std::string& prompt, QWidget *parent = nullptr, bool priv=false);
Line 83... Line 85...
83
        Ui::TQKeypad *ui{nullptr};
85
        Ui::TQKeypad *ui{nullptr};
84
 
86
 
85
        bool mPrivate{false};       // TRUE = private mode. Only * is showed.
87
        bool mPrivate{false};       // TRUE = private mode. Only * is showed.
86
        double mScaleFactor{0.0};   // The scale factor if we are on a mobile device
88
        double mScaleFactor{0.0};   // The scale factor if we are on a mobile device
87
        std::string mText;          // The typed text.
89
        std::string mText;          // The typed text.
-
 
90
        std::string mSound;         // Path and name to a sound file played on every key press.
88
};
91
};
89
 
92
 
90
#endif // TQKEYPAD_H
93
#endif // TQKEYPAD_H