// Copyright (c) Warwick Allison, 1999. // Qt4 conversion copyright (c) Ray Chason, 2012-2014. // NetHack may be freely redistributed. See license for details. // qt_xcmd.h -- extended command widget #ifndef QT4XCMD_H #define QT4XCMD_H namespace nethack_qt_ { class NetHackQtExtCmdRequestor : public QDialog { Q_OBJECT protected: virtual void keyPressEvent(QKeyEvent *event); public: NetHackQtExtCmdRequestor(QWidget *parent); int get(); private: QLabel *prompt; QVector buttons; void enableButtons(); private slots: void cancel(); }; } // namespace nethack_qt_ #endif