~ubuntu-branches/ubuntu/quantal/linpsk/quantal

« back to all changes in this revision

Viewing changes to linpsk/ctxwindow.h

  • Committer: Bazaar Package Importer
  • Author(s): Bruce Walker
  • Date: 2002-02-06 11:43:38 UTC
  • Revision ID: james.westby@ubuntu.com-20020206114338-xqmjmhh01lpjm0g4
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          ctxwindow.h  -  description
 
3
                             -------------------
 
4
    begin                : Sun Mar 5 2000
 
5
    copyright            : (C) 2000 by Volker Schroer
 
6
    email                : DL1KSV@gmx.de
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *   based on the work of Moe Wheatley, AE4JY                              *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef CTXWINDOW_H
 
19
#define CTXWINDOW_H
 
20
 
 
21
 
 
22
 
 
23
#include <qmultilineedit.h>
 
24
#include <qkeycode.h>
 
25
#include <qapplication.h>
 
26
#include <qbuttongroup.h>
 
27
#include <ctype.h>
 
28
#include "constants.h"
 
29
#include  "parameter.h"
 
30
 
 
31
extern Parameter settings;
 
32
 
 
33
/**TX Window
 
34
  *@author Volker Schroer
 
35
  */
 
36
 
 
37
class CTxwindow : public QMultiLineEdit  {
 
38
  Q_OBJECT
 
39
public:
 
40
        CTxwindow(QWidget *parent=0, const char *name=0);
 
41
        ~CTxwindow();
 
42
        void setMaxLine(int count=0);
 
43
        void setMaxVisible(int count=0);
 
44
        int getTxChar(void);
 
45
        int insertTxChar(const char *,int);
 
46
        void insertCntrlChar(int);
 
47
        bool TxBufferisEmpty();
 
48
private:
 
49
        int maxline;
 
50
        int visible;
 
51
        int akt_line;
 
52
        int akt_col;
 
53
        int txbuffer[TXBUFFER_LENGTH];
 
54
  unsigned int inpos;
 
55
        unsigned int outpos;
 
56
        unsigned int filled;
 
57
protected:
 
58
        void keyPressEvent(QKeyEvent *e);
 
59
signals:
 
60
        
 
61
};
 
62
 
 
63
#endif