1 /**************************************************************************** 2 ** 3 ** DQt - D bindings for the Qt Toolkit 4 ** 5 ** GNU Lesser General Public License Usage 6 ** This file may be used under the terms of the GNU Lesser 7 ** General Public License version 3 as published by the Free Software 8 ** Foundation and appearing in the file LICENSE.LGPL3 included in the 9 ** packaging of this file. Please review the following information to 10 ** ensure the GNU Lesser General Public License version 3 requirements 11 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 12 ** 13 ****************************************************************************/ 14 module qt.widgets.keysequenceedit; 15 extern(C++): 16 17 import qt.config; 18 import qt.core.coreevent; 19 import qt.core.namespace; 20 import qt.gui.event; 21 import qt.gui.keysequence; 22 import qt.helpers; 23 import qt.widgets.widget; 24 25 /+ QT_REQUIRE_CONFIG(keysequenceedit); +/ 26 27 28 extern(C++, class) struct QKeySequenceEditPrivate; 29 class /+ Q_WIDGETS_EXPORT +/ QKeySequenceEdit : QWidget 30 { 31 mixin(Q_OBJECT); 32 /+ Q_PROPERTY(QKeySequence keySequence READ keySequence WRITE setKeySequence NOTIFY keySequenceChanged USER true) +/ 33 34 public: 35 /+ explicit +/this(QWidget parent = null); 36 /+ explicit +/this(ref const(QKeySequence) keySequence, QWidget parent = null); 37 ~this(); 38 39 final QKeySequence keySequence() const; 40 41 public /+ Q_SLOTS +/: 42 @QSlot final void setKeySequence(ref const(QKeySequence) keySequence); 43 @QSlot final void clear(); 44 45 /+ Q_SIGNALS +/public: 46 @QSignal final void editingFinished(); 47 @QSignal final void keySequenceChanged(ref const(QKeySequence) keySequence); 48 49 protected: 50 this(ref QKeySequenceEditPrivate d, QWidget parent, /+ Qt:: +/qt.core.namespace.WindowFlags f); 51 52 override bool event(QEvent ); 53 override void keyPressEvent(QKeyEvent ); 54 override void keyReleaseEvent(QKeyEvent ); 55 override void timerEvent(QTimerEvent ); 56 57 private: 58 /+ Q_DISABLE_COPY(QKeySequenceEdit) +/ 59 /+ Q_DECLARE_PRIVATE(QKeySequenceEdit) +/ 60 } 61