summaryrefslogtreecommitdiffstats
path: root/kppp/loginterm.h
blob: 0940381c63db38213a80392835438f24db41c24f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef _LOGINTERM_H_
#define _LOGINTERM_H_

#include <tqdialog.h>
#include <tqmultilineedit.h>
#include <tqapplication.h>
#include <tqtimer.h>

class LoginMultiLineEdit : public TQMultiLineEdit {

  Q_OBJECT
  TQ_OBJECT

public:

  LoginMultiLineEdit(TQWidget *tqparent, const char *name);
  ~LoginMultiLineEdit();

  void keyPressEvent(TQKeyEvent *k);
  void insertChar(unsigned char c);
  void myreturn();
  void mynewline();

public slots:
  void readChar(unsigned char);
};


class LoginTerm : public TQDialog {
  Q_OBJECT
  TQ_OBJECT
public:
  LoginTerm(TQWidget *tqparent, const char *name);

  bool pressedContinue();

public slots:
  void cancelbutton();
  void continuebutton();

private:
  LoginMultiLineEdit *text_window;
  TQPushButton *cancel_b;
  TQPushButton *continue_b;

  bool cont;
};

#endif