This is the verbatim text of the qlined.h include file. It is is provided only for illustration; the copyright remains with Troll Tech.


/**********************************************************************
** $Id: qlined.h,v 1.12 1995/06/30 14:08:12 eiriken Exp $
**
** Definition of QLineEdit widget class
**
** Author  : Eirik Eng
** Created : 941011
**
** Copyright (C) 1994,1995 by Troll Tech AS.  All rights reserved.
**
***********************************************************************/

#ifndef QLINED_H
#define QLINED_H

#include "qwidget.h"
#include "qstring.h"


class QLineEdit : public QWidget
{
    Q_OBJECT
public:
    QLineEdit( QWidget *parent=0, const char *name=0 );
   ~QLineEdit();

    char       *text() const;
    void        setMaxLength( int );
    int         maxLength()     const;

public slots:
    void        setText( const char * );

signals:
    void        textChanged( char * );
    void        returnPressed();

protected:
    void        mousePressEvent( QMouseEvent * );
    void        keyPressEvent( QKeyEvent * );
    void        focusInEvent( QFocusEvent * );
    void        focusOutEvent( QFocusEvent * );
    void        paintEvent( QPaintEvent * );
    void        timerEvent( QTimerEvent * );
    void        resizeEvent( QResizeEvent * );

private:
    void        paint( bool frame = FALSE );
    void        pixmapPaint();
    void        paintText( QPainter *, const QSize &, bool frame = FALSE );
    void        cursorLeft();
    void        cursorRight();
    void        backspace();
    void        del();
    void        home();
    void        end();

    QString     tbuf;
    QPixmap    *pm;
    uint        cursorPos;
    uint        offset;
    uint        maxLen;
    uint        cursorOn        : 1;
};


#endif // QLINED_H


Generated at 16:17, 1995/06/30 by the webmaster at Troll Tech