/****************************************************************************
** $Id: qxt.h,v 1.6 1999/02/18 12:00:57 warwick 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 {
Q_OBJECT
void init();
public:
QXtApplication(int& argc, char** argv,
const char* appclass=0,
XrmOptionDescRec *options=0, int num_options=0,
const char** resources=0);
QXtApplication(Display*);
~QXtApplication();
bool x11EventFilter(XEvent*);
};
class QXtWidget : public QWidget {
Q_OBJECT
Widget xtw;
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
);
public:
QXtWidget(const char* name, Widget parent, bool managed=FALSE);
QXtWidget(const char* name, WidgetClass widget_class,
QXtWidget *parent=0, ArgList args=0, Cardinal num_args=0,
bool managed=FALSE);
QXtWidget(QWidget *parent, const char* name);
~QXtWidget();
Widget xtWidget() const { return xtw; }
void setGeometry( int x, int y, int w, int h );
void setGeometry( const QRect & );
protected:
bool x11Event( XEvent* );
void leaveEvent(QEvent*);
};
#endif
| Copyright © 1999 Troll Tech | Trademarks | Qt version 2.00
|