#include "PVViewer_Behaviors.h"
-#include <SUIT_Desktop.h>
+#include <QMainWindow>
#include <pqInterfaceTracker.h>
#include <pqApplicationCore.h>
int PVViewer_Behaviors::BehaviorLoadingLevel = 0;
-PVViewer_Behaviors::PVViewer_Behaviors(SUIT_Desktop * parent)
- : QObject(static_cast<QObject *>(parent))
+PVViewer_Behaviors::PVViewer_Behaviors(QMainWindow * parent)
+ : QObject(parent)
{
}
* This method should be updated at each new version of ParaView with what is found in
* Qt/ApplicationComponents/pqParaViewBehaviors.cxx
*/
-void PVViewer_Behaviors::instanciateMinimalBehaviors(SUIT_Desktop * desk)
+void PVViewer_Behaviors::instanciateMinimalBehaviors(QMainWindow * desk)
{
if (BehaviorLoadingLevel < 1)
{
* This method should be updated at each new version of ParaView with what is found in
* Qt/ApplicationComponents/pqParaViewBehaviors.cxx
*/
-void PVViewer_Behaviors::instanciateAllBehaviors(SUIT_Desktop * desk)
+void PVViewer_Behaviors::instanciateAllBehaviors(QMainWindow * desk)
{
// "new pqParaViewBehaviors(anApp->desktop(), this);"
// -> (which loads all standard ParaView behaviors at once) has to be replaced in order to
#include <QObject>
-class SalomeApp_Module;
-class SUIT_Desktop;
+class QMainWindow;
class pqPropertiesPanel;
/**!
Q_OBJECT
public:
- PVViewer_Behaviors(SUIT_Desktop * parent);
+ PVViewer_Behaviors(QMainWindow * parent);
- void instanciateMinimalBehaviors(SUIT_Desktop * desk);
- void instanciateAllBehaviors(SUIT_Desktop * desk);
+ void instanciateMinimalBehaviors(QMainWindow * desk);
+ void instanciateAllBehaviors(QMainWindow * desk);
virtual ~PVViewer_Behaviors() {}
// Author: Adrien Bruneton (CEA)
#include "PVViewer_GUIElements.h"
-#include "SUIT_Desktop.h"
#include <pqPropertiesPanel.h>
#include <pqPipelineBrowserWidget.h>
#include <pqPythonManager.h>
#include <pqApplicationCore.h>
+#include <QMainWindow>
#include <QMenu>
#include <QList>
#include <QAction>
PVViewer_GUIElements * PVViewer_GUIElements::theInstance = 0;
-PVViewer_GUIElements::PVViewer_GUIElements(SUIT_Desktop* desk) :
+PVViewer_GUIElements::PVViewer_GUIElements(QMainWindow* desk) :
propertiesPanel(0), pipelineBrowserWidget(0),
sourcesMenu(0)
{
myBuildToolbars(desk);
}
-PVViewer_GUIElements * PVViewer_GUIElements::GetInstance(SUIT_Desktop* desk)
+PVViewer_GUIElements * PVViewer_GUIElements::GetInstance(QMainWindow* desk)
{
if (! theInstance)
theInstance = new PVViewer_GUIElements(desk);
* See ParaView source code: pqParaViewMenuBuilders::buildToolbars()
* to keep this function up to date:
*/
-void PVViewer_GUIElements::myBuildToolbars(SUIT_Desktop* mainWindow)
+void PVViewer_GUIElements::myBuildToolbars(QMainWindow* mainWindow)
{
mainToolBar = new pqMainControlsToolbar(mainWindow)
<< pqSetName("MainControlsToolbar");
dataAction->trigger();
}
-void PVViewer_GUIElements::addToolbars(SUIT_Desktop* desk)
+void PVViewer_GUIElements::addToolbars(QMainWindow* desk)
{
desk->addToolBar(Qt::TopToolBarArea, mainToolBar);
desk->addToolBar(Qt::TopToolBarArea, vcrToolbar);
class pqPropertiesPanel;
class pqPipelineBrowserWidget;
-class SUIT_Desktop;
+class QMainWindow;
class QMenu;
class QToolBar;
class QAction;
Q_OBJECT
public:
- static PVViewer_GUIElements * GetInstance(SUIT_Desktop* desk);
+ static PVViewer_GUIElements * GetInstance(QMainWindow * desk);
pqPropertiesPanel * getPropertiesPanel() { return propertiesPanel; }
pqPipelineBrowserWidget * getPipelineBrowserWidget() { return pipelineBrowserWidget; }
pqVCRToolbar* getVCRToolbar() { return vcrToolbar; }
pqAnimationTimeToolbar* getTimeToolbar() { return timeToolbar; }
- void myBuildToolbars(SUIT_Desktop* desk);
- void addToolbars(SUIT_Desktop* desk);
+ void myBuildToolbars(QMainWindow* desk);
+ void addToolbars(QMainWindow* desk);
void setToolBarVisible(bool show);
void setToolBarEnabled(bool enabled);
QList<QToolBar*> getToolbars();
void onEmulateApply(); // better use the slot from PVViewer_ViewManager if you want to trigger "Apply"
private:
- PVViewer_GUIElements(SUIT_Desktop* desk);
+ PVViewer_GUIElements(QMainWindow* desk);
virtual ~PVViewer_GUIElements() {}
static PVViewer_GUIElements* theInstance;