Subversion Repositories tpanel

Rev

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

Rev 71 Rev 111
Line 1... Line 1...
1
/*
1
/*
2
 * Copyright (C) 2021 by Andreas Theofilu <andreas@theosys.at>
2
 * Copyright (C) 2021, 2022 by Andreas Theofilu <andreas@theosys.at>
3
 *
3
 *
4
 * This program is free software; you can redistribute it and/or modify
4
 * This program is free software; you can redistribute it and/or modify
5
 * it under the terms of the GNU General Public License as published by
5
 * it under the terms of the GNU General Public License as published by
6
 * the Free Software Foundation; either version 3 of the License, or
6
 * the Free Software Foundation; either version 3 of the License, or
7
 * (at your option) any later version.
7
 * (at your option) any later version.
Line 95... Line 95...
95
        ~TQKeyboard();
95
        ~TQKeyboard();
96
 
96
 
97
        void doResize();
97
        void doResize();
98
        void setPrivate(bool mode) { mPrivate = mode; }
98
        void setPrivate(bool mode) { mPrivate = mode; }
99
        void setScaleFactor(double sf) { mScaleFactor = sf; }
99
        void setScaleFactor(double sf) { mScaleFactor = sf; }
-
 
100
        void setMaxLength(int len) { mMaxLen = len; }
100
        std::string& getText() { return mText; }
101
        std::string& getText() { return mText; }
-
 
102
        void setString(const std::string& str);
101
 
103
 
102
    private slots:
104
    private slots:
103
        void keyA() { setKey(Ui::KEY_A); }
105
        void keyA() { setKey(Ui::KEY_A); }
104
        void keyB() { setKey(Ui::KEY_B); }
106
        void keyB() { setKey(Ui::KEY_B); }
105
        void keyC() { setKey(Ui::KEY_C); }
107
        void keyC() { setKey(Ui::KEY_C); }
Line 166... Line 168...
166
        bool mCaps{false};          // Key CAPSLOCK is pressed
168
        bool mCaps{false};          // Key CAPSLOCK is pressed
167
        bool mGr{false};            // Key AltGR is pressed
169
        bool mGr{false};            // Key AltGR is pressed
168
        bool mPrivate{false};       // TRUE = private mode. Only * are showed.
170
        bool mPrivate{false};       // TRUE = private mode. Only * are showed.
169
        double mScaleFactor{0.0};   // The scale factor if we are on a mobile device
171
        double mScaleFactor{0.0};   // The scale factor if we are on a mobile device
170
        std::string mText;          // The typed text.
172
        std::string mText;          // The typed text.
-
 
173
        int mMaxLen{0};             // If >0 then this is the maximum number of chars
171
};
174
};
172
 
175
 
173
#endif // TQKEYBOARD_H
176
#endif // TQKEYBOARD_H