1 // File: PVGUI_ProcessModuleHelper.cxx
2 // Created: Tue Nov 11 13:03:19 2008
3 // Author: Sergey ANIKIN
4 // <san@portrex.nnov.opencascade.com>
7 #include "PVGUI_ProcessModuleHelper.h"
9 //#include <pqApplicationCore.h>
10 #include <vtkObjectFactory.h>
11 //#include <vtkPVConfig.h>
13 vtkStandardNewMacro(PVGUI_ProcessModuleHelper);
14 vtkCxxRevisionMacro(PVGUI_ProcessModuleHelper, "$Revision$");
16 //-----------------------------------------------------------------------------
17 PVGUI_ProcessModuleHelper::PVGUI_ProcessModuleHelper()
21 //-----------------------------------------------------------------------------
22 PVGUI_ProcessModuleHelper::~PVGUI_ProcessModuleHelper()
26 //-----------------------------------------------------------------------------
27 void PVGUI_ProcessModuleHelper::PrintSelf(ostream& os, vtkIndent indent)
29 this->Superclass::PrintSelf(os, indent);
32 //-----------------------------------------------------------------------------
33 bool PVGUI_ProcessModuleHelper::compareView(const QString& ReferenceImage,
34 double Threshold, ostream& Output, const QString& TempDirectory)
36 // TODO: to be implemented...
37 //if(MainWindow* const main_window = qobject_cast<MainWindow*>(this->GetMainWindow()))
39 // return main_window->compareView(ReferenceImage, Threshold, Output, TempDirectory);
45 //-----------------------------------------------------------------------------
46 void PVGUI_ProcessModuleHelper::showOutputWindow()
51 //-----------------------------------------------------------------------------
52 void PVGUI_ProcessModuleHelper::showWindow()
56 //-----------------------------------------------------------------------------
57 void PVGUI_ProcessModuleHelper::hideWindow()
61 //-----------------------------------------------------------------------------
62 int PVGUI_ProcessModuleHelper::InitializeApplication(int argc, char** argv)
64 if ( pqProcessModuleGUIHelper::InitializeApplication( argc, argv ) ){
65 // TODO: Redirect VTK debug output to SALOME GUI message console ...
66 /*this->Implementation->OutputWindow = new pqOutputWindow(0);
67 this->Implementation->OutputWindow->setAttribute(Qt::WA_QuitOnClose, false);
68 this->Implementation->OutputWindow->connect(this->Implementation->OutputWindowAdapter,
69 SIGNAL(displayText(const QString&)), SLOT(onDisplayText(const QString&)));
70 this->Implementation->OutputWindow->connect(this->Implementation->OutputWindowAdapter,
71 SIGNAL(displayErrorText(const QString&)), SLOT(onDisplayErrorText(const QString&)));
72 this->Implementation->OutputWindow->connect(this->Implementation->OutputWindowAdapter,
73 SIGNAL(displayWarningText(const QString&)), SLOT(onDisplayWarningText(const QString&)));
74 this->Implementation->OutputWindow->connect(this->Implementation->OutputWindowAdapter,
75 SIGNAL(displayGenericWarningText(const QString&)), SLOT(onDisplayGenericWarningText(const QString&)));
76 vtkOutputWindow::SetInstance(Implementation->OutputWindowAdapter);*/
82 //-----------------------------------------------------------------------------
83 int PVGUI_ProcessModuleHelper::appExec()
88 //-----------------------------------------------------------------------------
89 int PVGUI_ProcessModuleHelper::postAppExec()
94 //-----------------------------------------------------------------------------
95 QWidget* PVGUI_ProcessModuleHelper::CreateMainWindow()
100 //-----------------------------------------------------------------------------
101 void PVGUI_ProcessModuleHelper::ExitApplication()
103 // Cannot exit here, so do nothing