#include <pqServerResource.h>
#include <pqServerConnectReaction.h>
#include <pqPluginManager.h>
+#include <pqVCRToolbar.h>
+#include <pqAnimationScene.h>
+#include <pqServerManagerModel.h>
+#include <pqAnimationTimeToolbar.h>
//#include <PVViewer_EngineWrapper.h>
}
}
}
+ fixAnimationScene();
+
+}
+
+/**
+ * Little trick to force the proper update of the timesteps/time range when the module is initialized.
+ * This is otherwise not properly working when PARAVIS is activated after a PVViewer has already been
+ * instanciated.
+ */
+void PVGUI_Module::fixAnimationScene()
+{
+ pqServer* server = pqActiveObjects::instance().activeServer();
+ pqApplicationCore * app = pqApplicationCore::instance();
+ pqPipelineSource * src = app->getObjectBuilder()->createSource(QString("sources"), QString("TimeSource"),server);
+ app->getObjectBuilder()->destroy(src);
}
void PVGUI_Module::onStartProgress()
inline static pqPVApplicationCore * GetPVApplication();
virtual CAM_DataModel* createDataModel();
+ void fixAnimationScene();
public slots:
//void onImportFromVisu(QString theEntry);
void PVGUI_Module::pvCreateToolBars()
{
SUIT_Desktop* desk = application()->desktop();
- pqParaViewMenuBuilders::buildToolbars(*desk);
+// pqParaViewMenuBuilders::buildToolbars(*desk);
+ PVViewer_GUIElements * guiElements = PVViewer_GUIElements::GetInstance(desk);
+ guiElements->setToolBarVisible(true);
}
/*!