2008-04-19 08:31:50 -07:00
|
|
|
#ifndef MOZQWIDGET_H
|
|
|
|
#define MOZQWIDGET_H
|
|
|
|
|
|
|
|
#include <qwidget.h>
|
2008-04-19 08:37:55 -07:00
|
|
|
#include "nsIWidget.h"
|
2008-04-19 08:31:50 -07:00
|
|
|
|
|
|
|
class QEvent;
|
2008-04-19 08:37:51 -07:00
|
|
|
class nsWindow;
|
2008-04-19 08:31:50 -07:00
|
|
|
|
|
|
|
class MozQWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2008-04-19 08:37:51 -07:00
|
|
|
MozQWidget(nsWindow* receiver, QWidget *parent,
|
2008-04-19 08:31:50 -07:00
|
|
|
const char *name, int f);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Mozilla helper.
|
|
|
|
*/
|
|
|
|
void setModal(bool);
|
2008-04-19 08:37:55 -07:00
|
|
|
bool SetCursor(nsCursor aCursor);
|
2008-04-19 08:31:50 -07:00
|
|
|
void dropReciever() { mReceiver = 0x0; };
|
2008-04-19 08:37:51 -07:00
|
|
|
nsWindow* getReciever() { return mReceiver; };
|
2008-04-19 08:31:50 -07:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool event(QEvent *ev);
|
|
|
|
private:
|
2008-04-19 08:37:51 -07:00
|
|
|
nsWindow *mReceiver;
|
2008-04-19 08:31:50 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|