Salome HOME
Imported sources
[modules/paravis.git] / src / PVGUI / PVGUI_ProcessModuleHelper.cxx
1 // File:        PVGUI_ProcessModuleHelper.cxx
2 // Created:     Tue Nov 11 13:03:19 2008
3 // Author:      Sergey ANIKIN
4 //              <san@portrex.nnov.opencascade.com>
5
6
7 #include "PVGUI_ProcessModuleHelper.h"
8
9 //#include <pqApplicationCore.h>
10 #include <vtkObjectFactory.h>
11 //#include <vtkPVConfig.h>
12
13 vtkStandardNewMacro(PVGUI_ProcessModuleHelper);
14 vtkCxxRevisionMacro(PVGUI_ProcessModuleHelper, "$Revision$");
15
16 //-----------------------------------------------------------------------------
17 PVGUI_ProcessModuleHelper::PVGUI_ProcessModuleHelper()
18 {
19 }
20
21 //-----------------------------------------------------------------------------
22 PVGUI_ProcessModuleHelper::~PVGUI_ProcessModuleHelper()
23 {
24 }
25
26 //-----------------------------------------------------------------------------
27 void PVGUI_ProcessModuleHelper::PrintSelf(ostream& os, vtkIndent indent)
28 {
29   this->Superclass::PrintSelf(os, indent);
30 }
31
32 //-----------------------------------------------------------------------------
33 bool PVGUI_ProcessModuleHelper::compareView(const QString& ReferenceImage,
34   double Threshold, ostream& Output, const QString& TempDirectory)
35 {
36   // TODO: to be implemented...
37   //if(MainWindow* const main_window = qobject_cast<MainWindow*>(this->GetMainWindow()))
38   //{
39   //  return main_window->compareView(ReferenceImage, Threshold, Output, TempDirectory);
40   //}
41   
42   return false;
43 }
44
45 //-----------------------------------------------------------------------------
46 void PVGUI_ProcessModuleHelper::showOutputWindow()
47 {
48   // Do nothing here
49 }
50
51 //-----------------------------------------------------------------------------
52 void PVGUI_ProcessModuleHelper::showWindow()
53 {
54 }
55
56 //-----------------------------------------------------------------------------
57 void PVGUI_ProcessModuleHelper::hideWindow()
58 {
59 }
60
61 //-----------------------------------------------------------------------------
62 int PVGUI_ProcessModuleHelper::InitializeApplication(int argc, char** argv)
63 {
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);*/
77   }
78
79   return 1;
80 }
81
82 //-----------------------------------------------------------------------------
83 int PVGUI_ProcessModuleHelper::appExec()
84 {
85   return 0;
86 }
87
88 //-----------------------------------------------------------------------------
89 int PVGUI_ProcessModuleHelper::postAppExec()
90 {
91   return 0;
92 }
93
94 //-----------------------------------------------------------------------------
95 QWidget* PVGUI_ProcessModuleHelper::CreateMainWindow()
96 {
97   return 0;
98 }
99
100 //-----------------------------------------------------------------------------
101 void PVGUI_ProcessModuleHelper::ExitApplication()
102 {
103   // Cannot exit here, so do nothing
104 }