Qt logo


This is the verbatim text of the qxt.h include file. It is provided only for illustration; the copyright remains with Troll Tech.
** $Id: qxt.h,v 1999/07/02 23:07:01 ettrich Exp $
** Definition of Qt extension classes for Xt/Motif support.
** Created : 980107
** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
** This file is part of Troll Tech's internal development tree for Qt.
** This header text will be replaced by an appropriate text by the
** mkdist script which generates external distributions.
** If you are using the Qt Professional Edition or the Qt Free Edition,
** please notify Troll Tech at <info@troll.no> if you see this text.
** To Troll Tech developers: This header was generated by the script
** fixcopyright-int. It has the same number of text lines as the free
** and professional editions to avoid line number inconsistency.

#ifndef QXT_H
#define QXT_H

#include <qapplication.h>
#include <qwidget.h>
#include <X11/Intrinsic.h>

class QXtApplication : public QApplication {
    void init();
    QXtApplication(int& argc, char** argv,
        const char* appclass=0,
        XrmOptionDescRec *options=0, int num_options=0,
        const char** resources=0);

class QXtWidget : public QWidget {
    Widget xtw;
    Widget xtparent;
    bool   need_reroot;
    void init(const char* name, WidgetClass widget_class,
                    Widget parent, QWidget* qparent,
                    ArgList args, Cardinal num_args,
                    bool managed);
    friend void qwidget_realize(
        Widget                widget,
        XtValueMask*          mask,
        XSetWindowAttributes* attributes
    QXtWidget(const char* name, Widget parent, bool managed=FALSE);
    QXtWidget(const char* name, WidgetClass widget_class,
              QWidget *parent=0, ArgList args=0, Cardinal num_args=0,
              bool managed=FALSE);

    Widget xtWidget() const { return xtw; }
    bool isActiveWindow() const;

    void enterEvent(QEvent*);
    void leaveEvent(QEvent*);
    void focusInEvent( QFocusEvent * );
    void focusOutEvent( QFocusEvent * );
    void moveEvent( QMoveEvent* );
    void resizeEvent( QResizeEvent* );


Copyright 1999 Troll TechTrademarks
Qt version 2.0.2