OSDN Git Service

upgrade to 3.6.1
[jnethack/source.git] / win / Qt4 / qt4streq.h
1 // Copyright (c) Warwick Allison, 1999.
2 // Qt4 conversion copyright (c) Ray Chason, 2012-2014.
3 // NetHack may be freely redistributed.  See license for details.
4
5 // qt4streq.h -- string requestor
6
7 #ifndef QT4STREQ_H
8 #define QT4STREQ_H
9
10 #include "qt4line.h"
11
12 namespace nethack_qt4 {
13
14 class NetHackQtStringRequestor : QDialog {
15 private:
16         QLabel prompt;
17         NetHackQtLineEdit input;
18         QPushButton* okay;
19         QPushButton* cancel;
20
21 public:
22         NetHackQtStringRequestor(QWidget *parent, const char* p,const char* cancelstr="Cancel");
23         void SetDefault(const char*);
24         bool Get(char* buffer, int maxchar=80);
25         virtual void resizeEvent(QResizeEvent*);
26 };
27
28 } // namespace nethack_qt4
29
30 #endif