|
|
|
@ -28,8 +28,6 @@ namespace NL3D
|
|
|
|
|
class UTextContext;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace GUIEditor
|
|
|
|
|
{
|
|
|
|
|
/// Nel 3D interface to Qt
|
|
|
|
|
class Nel3DWidget : public QWidget
|
|
|
|
|
{
|
|
|
|
@ -38,7 +36,7 @@ namespace GUIEditor
|
|
|
|
|
Nel3DWidget( QWidget *parent = NULL );
|
|
|
|
|
virtual ~Nel3DWidget();
|
|
|
|
|
|
|
|
|
|
virtual void init();
|
|
|
|
|
void init();
|
|
|
|
|
void createTextContext( std::string fontFile );
|
|
|
|
|
|
|
|
|
|
NL3D::UDriver* getDriver() const{ return driver; }
|
|
|
|
@ -58,18 +56,18 @@ namespace GUIEditor
|
|
|
|
|
void showEvent( QShowEvent *evnt );
|
|
|
|
|
|
|
|
|
|
#if defined(NL_OS_WINDOWS)
|
|
|
|
|
virtual bool winEvent( MSG *message, long *result );
|
|
|
|
|
bool winEvent( MSG *message, long *result );
|
|
|
|
|
#elif defined(NL_OS_MAC)
|
|
|
|
|
virtual bool macEvent( EventHandlerCallRef caller, EventRef event );
|
|
|
|
|
bool macEvent( EventHandlerCallRef caller, EventRef event );
|
|
|
|
|
#elif defined(NL_OS_UNIX)
|
|
|
|
|
virtual bool x11Event( XEvent *event );
|
|
|
|
|
bool x11Event( XEvent *event );
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
NL3D::UDriver *driver;
|
|
|
|
|
NL3D::UTextContext *textContext;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|