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