|
|
@ -21,8 +21,7 @@
|
|
|
|
#include "nel/3d/driver_user.h"
|
|
|
|
#include "nel/3d/driver_user.h"
|
|
|
|
#include "nel/misc/rgba.h"
|
|
|
|
#include "nel/misc/rgba.h"
|
|
|
|
#include "nel/misc/path.h"
|
|
|
|
#include "nel/misc/path.h"
|
|
|
|
#include "nel/misc/event_listener.h"
|
|
|
|
//#include "nel/misc/event_listener.h"
|
|
|
|
#include "nel/gui/event_listener.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef NL_OS_WINDOWS
|
|
|
|
#ifdef NL_OS_WINDOWS
|
|
|
|
#include <Windows.h>
|
|
|
|
#include <Windows.h>
|
|
|
@ -42,7 +41,6 @@ namespace GUIEditor
|
|
|
|
// so that we can render the widget normally ourselves, without the image
|
|
|
|
// so that we can render the widget normally ourselves, without the image
|
|
|
|
// disappearing when a widget is resized or shown on top of us
|
|
|
|
// disappearing when a widget is resized or shown on top of us
|
|
|
|
setAttribute( Qt::WA_PaintOnScreen, true );
|
|
|
|
setAttribute( Qt::WA_PaintOnScreen, true );
|
|
|
|
eventListener = NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Nel3DWidget::~Nel3DWidget()
|
|
|
|
Nel3DWidget::~Nel3DWidget()
|
|
|
@ -59,7 +57,6 @@ namespace GUIEditor
|
|
|
|
delete driver;
|
|
|
|
delete driver;
|
|
|
|
driver = NULL;
|
|
|
|
driver = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
delete eventListener;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Nel3DWidget::init()
|
|
|
|
void Nel3DWidget::init()
|
|
|
@ -69,8 +66,6 @@ namespace GUIEditor
|
|
|
|
driver = NL3D::UDriver::createDriver( 0, false, 0 );
|
|
|
|
driver = NL3D::UDriver::createDriver( 0, false, 0 );
|
|
|
|
driver->setMatrixMode2D11();
|
|
|
|
driver->setMatrixMode2D11();
|
|
|
|
driver->setDisplay( winId(), NL3D::UDriver::CMode( width(), height(), 32, true ) );
|
|
|
|
driver->setDisplay( winId(), NL3D::UDriver::CMode( width(), height(), 32, true ) );
|
|
|
|
eventListener = new NLGUI::CEventListener();
|
|
|
|
|
|
|
|
eventListener->addToServer( &driver->EventServer );
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Nel3DWidget::createTextContext( std::string fontFile )
|
|
|
|
void Nel3DWidget::createTextContext( std::string fontFile )
|
|
|
|