forked from teamnwah/openmw-tes3coop
temporarily disable OGRE-integration in OpenCS (need to sort out path problem first)
This commit is contained in:
parent
fe34c9cf1f
commit
b19b277f18
3 changed files with 21 additions and 1 deletions
|
@ -210,6 +210,8 @@ int CS::Editor::run()
|
||||||
if (mLocal.empty())
|
if (mLocal.empty())
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
// temporarily disable OGRE-integration (need to fix path problem first)
|
||||||
|
#if 0
|
||||||
// TODO: setting
|
// TODO: setting
|
||||||
Ogre::Root::getSingleton().setRenderSystem(Ogre::Root::getSingleton().getRenderSystemByName("OpenGL Rendering Subsystem"));
|
Ogre::Root::getSingleton().setRenderSystem(Ogre::Root::getSingleton().getRenderSystemByName("OpenGL Rendering Subsystem"));
|
||||||
|
|
||||||
|
@ -223,6 +225,7 @@ int CS::Editor::run()
|
||||||
params.insert(std::make_pair("hidden", "true"));
|
params.insert(std::make_pair("hidden", "true"));
|
||||||
Ogre::RenderWindow* hiddenWindow = Ogre::Root::getSingleton().createRenderWindow("InactiveHidden", 1, 1, false, ¶ms);
|
Ogre::RenderWindow* hiddenWindow = Ogre::Root::getSingleton().createRenderWindow("InactiveHidden", 1, 1, false, ¶ms);
|
||||||
hiddenWindow->setActive(false);
|
hiddenWindow->setActive(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
mStartup.show();
|
mStartup.show();
|
||||||
|
|
||||||
|
|
|
@ -44,8 +44,11 @@ int main(int argc, char *argv[])
|
||||||
// SceneWidget destructor will delete the created render window, which would be called _after_ Root has shut down :(
|
// SceneWidget destructor will delete the created render window, which would be called _after_ Root has shut down :(
|
||||||
|
|
||||||
Application mApplication (argc, argv);
|
Application mApplication (argc, argv);
|
||||||
|
// temporarily disable OGRE-integration (need to fix path problem first)
|
||||||
|
#if 0
|
||||||
OgreInit::OgreInit ogreInit;
|
OgreInit::OgreInit ogreInit;
|
||||||
ogreInit.init("./opencsOgre.log"); // TODO log path?
|
ogreInit.init("./opencsOgre.log"); // TODO log path?
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
QDir dir(QCoreApplication::applicationDirPath());
|
QDir dir(QCoreApplication::applicationDirPath());
|
||||||
|
|
|
@ -43,12 +43,26 @@ toolbar->addTool (new SceneToolMode (toolbar));
|
||||||
toolbar->addTool (new SceneToolMode (toolbar));
|
toolbar->addTool (new SceneToolMode (toolbar));
|
||||||
layout2->addWidget (toolbar, 0);
|
layout2->addWidget (toolbar, 0);
|
||||||
|
|
||||||
|
// temporarily disable OGRE-integration (need to fix path problem first)
|
||||||
|
#if 0
|
||||||
CSVRender::SceneWidget* sceneWidget = new CSVRender::SceneWidget(this);
|
CSVRender::SceneWidget* sceneWidget = new CSVRender::SceneWidget(this);
|
||||||
|
|
||||||
layout2->addWidget (sceneWidget, 1);
|
layout2->addWidget (sceneWidget, 1);
|
||||||
|
|
||||||
layout->insertLayout (0, layout2, 1);
|
layout->insertLayout (0, layout2, 1);
|
||||||
|
#endif
|
||||||
|
/// \todo replace with rendering widget
|
||||||
|
QPalette palette2 (palette());
|
||||||
|
palette2.setColor (QPalette::Background, Qt::white);
|
||||||
|
QLabel *placeholder = new QLabel ("Here goes the 3D scene", this);
|
||||||
|
placeholder->setAutoFillBackground (true);
|
||||||
|
placeholder->setPalette (palette2);
|
||||||
|
placeholder->setAlignment (Qt::AlignHCenter);
|
||||||
|
|
||||||
|
layout2->addWidget (placeholder, 1);
|
||||||
|
|
||||||
|
layout->insertLayout (0, layout2, 1);
|
||||||
|
|
||||||
|
|
||||||
CSVFilter::FilterBox *filterBox = new CSVFilter::FilterBox (document.getData(), this);
|
CSVFilter::FilterBox *filterBox = new CSVFilter::FilterBox (document.getData(), this);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue